Fix docs generation, PSR-12 type compliance (#790)

* Correct docs generation, fixes #774

* Standardise on unaliased int and bool types, as per PSR-12 section 2.5
This commit is contained in:
Marcus Bointon 2021-03-02 15:39:45 +01:00 committed by GitHub
commit 8f7575b076
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 58 additions and 60 deletions

View file

@ -47,7 +47,7 @@ class ComplexFilterContainer implements ComplexFilterInterface
/**
* Returns the priority of the filter.
*
* @return integer
* @return int
*/
public function getPriority()
{

View file

@ -18,7 +18,7 @@ class AudioResamplableFilter implements AudioFilterInterface
{
/** @var string */
private $rate;
/** @var integer */
/** @var int */
private $priority;
public function __construct($rate, $priority = 0)

View file

@ -17,7 +17,7 @@ class CustomFilter implements AudioFilterInterface
{
/** @var string */
private $filter;
/** @var integer */
/** @var int */
private $priority;
/**

View file

@ -16,7 +16,7 @@ interface FilterInterface
/**
* Returns the priority of the filter.
*
* @return integer
* @return int
*/
public function getPriority();
}

View file

@ -18,7 +18,7 @@ class CustomFrameFilter implements FrameFilterInterface
{
/** @var string */
private $filter;
/** @var integer */
/** @var int */
private $priority;
/**

View file

@ -16,7 +16,7 @@ use FFMpeg\Media\Frame;
class DisplayRatioFixerFilter implements FrameFilterInterface
{
/** @var integer */
/** @var int */
private $priority;
public function __construct($priority = 0)

View file

@ -21,7 +21,7 @@ class ClipFilter implements VideoFilterInterface
private $start;
/** @var TimeCode */
private $duration;
/** @var integer */
/** @var int */
private $priority;
public function __construct(TimeCode $start, TimeCode $duration = null, $priority = 0)

View file

@ -17,7 +17,7 @@ use FFMpeg\Media\Video;
class CropFilter implements VideoFilterInterface
{
/** @var integer */
/** @var int */
protected $priority;
/** @var Dimension */
protected $dimension;

View file

@ -17,7 +17,7 @@ class CustomFilter implements VideoFilterInterface
{
/** @var string */
private $filter;
/** @var integer */
/** @var int */
private $priority;
/**

View file

@ -21,7 +21,7 @@ class PadFilter implements VideoFilterInterface, ComplexCompatibleFilter
{
/** @var Dimension */
private $dimension;
/** @var integer */
/** @var int */
private $priority;
public function __construct(Dimension $dimension, $priority = 0)

View file

@ -33,7 +33,7 @@ class ResizeFilter implements VideoFilterInterface
private $mode;
/** @var bool */
private $forceStandards;
/** @var integer */
/** @var int */
private $priority;
public function __construct(Dimension $dimension, $mode = self::RESIZEMODE_FIT, $forceStandards = true, $priority = 0)

View file

@ -24,7 +24,7 @@ class RotateFilter implements VideoFilterInterface
/** @var string */
private $angle;
/** @var integer */
/** @var int */
private $priority;
public function __construct($angle, $priority = 0)

View file

@ -23,7 +23,7 @@ class WatermarkFilter implements VideoFilterInterface, ComplexCompatibleFilter
private $watermarkPath;
/** @var array */
private $coordinates;
/** @var integer */
/** @var int */
private $priority;
public function __construct($watermarkPath, array $coordinates = array(), $priority = 0)

View file

@ -17,9 +17,9 @@ use FFMpeg\Media\Waveform;
class WaveformDownmixFilter implements WaveformFilterInterface
{
/** @var boolean */
/** @var bool */
private $downmix;
/** @var integer */
/** @var int */
private $priority;
// By default, the downmix value is set to FALSE.