]> source.dussan.org Git - nextcloud-server.git/commitdiff
Annotate type
authorLukas Reschke <lukas@owncloud.com>
Mon, 4 Jan 2016 13:18:01 +0000 (14:18 +0100)
committerLukas Reschke <lukas@owncloud.com>
Mon, 4 Jan 2016 13:18:01 +0000 (14:18 +0100)
Otherwise static code scanners will complain about this.

lib/private/image.php

index 4ca9b8111003876f59886885f5dac7613cb59fbb..a5de7e86b942b6e4ae45f547197cbab0ca1e21c8 100644 (file)
  * 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;
 
        /**