Annotate type
Otherwise static code scanners will complain about this.
This commit is contained in:
parent
ebc52300e7
commit
26c3fa7911
|
@ -39,17 +39,19 @@
|
||||||
* Class for basic image manipulation
|
* Class for basic image manipulation
|
||||||
*/
|
*/
|
||||||
class OC_Image implements \OCP\IImage {
|
class OC_Image implements \OCP\IImage {
|
||||||
|
/** @var false|resource */
|
||||||
protected $resource = false; // tmp resource.
|
protected $resource = false; // tmp resource.
|
||||||
|
/** @var int */
|
||||||
protected $imageType = IMAGETYPE_PNG; // Default to png if file type isn't evident.
|
protected $imageType = IMAGETYPE_PNG; // Default to png if file type isn't evident.
|
||||||
protected $mimeType = "image/png"; // Default to png
|
/** @var string */
|
||||||
|
protected $mimeType = 'image/png'; // Default to png
|
||||||
|
/** @var int */
|
||||||
protected $bitDepth = 24;
|
protected $bitDepth = 24;
|
||||||
|
/** @var null|string */
|
||||||
protected $filePath = null;
|
protected $filePath = null;
|
||||||
|
/** @var finfo */
|
||||||
private $fileInfo;
|
private $fileInfo;
|
||||||
|
/** @var \OCP\ILogger */
|
||||||
/**
|
|
||||||
* @var \OCP\ILogger
|
|
||||||
*/
|
|
||||||
private $logger;
|
private $logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue