diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-01-04 14:18:01 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-01-04 14:18:01 +0100 |
commit | 26c3fa7911484e460565ca20980dfa75ec4032f2 (patch) | |
tree | 607461aef466ce30a974e1dfc595c5c4e8ccaa53 | |
parent | ebc52300e752c68b3f6dcc822894ad1ab85f0999 (diff) | |
download | nextcloud-server-26c3fa7911484e460565ca20980dfa75ec4032f2.tar.gz nextcloud-server-26c3fa7911484e460565ca20980dfa75ec4032f2.zip |
Annotate type
Otherwise static code scanners will complain about this.
-rw-r--r-- | lib/private/image.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/private/image.php b/lib/private/image.php index 4ca9b811100..a5de7e86b94 100644 --- a/lib/private/image.php +++ b/lib/private/image.php @@ -39,17 +39,19 @@ * Class for basic image manipulation */ class OC_Image implements \OCP\IImage { + /** @var false|resource */ protected $resource = false; // tmp resource. + /** @var int */ 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; + /** @var null|string */ protected $filePath = null; - + /** @var finfo */ private $fileInfo; - - /** - * @var \OCP\ILogger - */ + /** @var \OCP\ILogger */ private $logger; /** |