Passed
Push — develop ( adf684...03a933 )
by Jens
04:58
created
src/storage/storage/ImagesStorage.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -13,6 +13,10 @@
 block discarded – undo
13 13
 {
14 14
     protected $imagesDir;
15 15
 
16
+    /**
17
+     * @param \CloudControl\Cms\storage\Repository $repository
18
+     * @param string $imagesDir
19
+     */
16 20
     public function __construct($repository, $imagesDir)
17 21
     {
18 22
         parent::__construct($repository);
Please login to merge, or discard this patch.
src/components/cms/FilesRouting.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     }
69 69
 
70 70
     /**
71
-     * @param $request
71
+     * @param Request $request
72 72
      * @param CmsComponent $cmsComponent
73 73
      */
74 74
     private function newRoute($request, $cmsComponent)
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     }
84 84
 
85 85
     /**
86
-     * @param $request
86
+     * @param Request $request
87 87
      * @param CmsComponent $cmsComponent
88 88
      */
89 89
     private function deleteRoute($request, $cmsComponent)
Please login to merge, or discard this patch.
src/images/Image.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
          * @param string $imagePath
77 77
          * @param bool $getExtension
78 78
          *
79
-         * @return bool|int|string
79
+         * @return integer
80 80
          */
81 81
         public function getImageMimeType($imagePath, $getExtension = false)
82 82
         {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         }
150 150
 
151 151
         /**
152
-         * @param $pathToBitmapFile
152
+         * @param string $pathToBitmapFile
153 153
          *
154 154
          * @return string
155 155
          */
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         }
166 166
 
167 167
         /**
168
-         * @param $header
168
+         * @param string $header
169 169
          *
170 170
          * @return array
171 171
          */
@@ -195,14 +195,14 @@  discard block
 block discarded – undo
195 195
          * Loop through the data in the body of the bitmap
196 196
          * file and calculate each individual pixel based on the
197 197
          * bytes
198
-         * @param $bodySize
199
-         * @param $x
198
+         * @param integer $bodySize
199
+         * @param integer $x
200 200
          * @param $width
201
-         * @param $usePadding
202
-         * @param $y
201
+         * @param boolean $usePadding
202
+         * @param integer $y
203 203
          * @param $height
204
-         * @param $body
205
-         * @param $image
204
+         * @param string $body
205
+         * @param resource $image
206 206
          */
207 207
         private function loopThroughBodyAndCalculatePixels($bodySize, $x, $width, $usePadding, $y, $height, $body, $image)
208 208
         {
Please login to merge, or discard this patch.
src/storage/storage/FilesStorage.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,10 @@  discard block
 block discarded – undo
10 10
 {
11 11
     protected $filesDir;
12 12
 
13
+    /**
14
+     * @param \CloudControl\Cms\storage\Repository $repository
15
+     * @param string $filesDir
16
+     */
13 17
     public function __construct($repository, $filesDir)
14 18
     {
15 19
         parent::__construct($repository);
@@ -102,7 +106,7 @@  discard block
 block discarded – undo
102 106
     }
103 107
 
104 108
     /**
105
-     * @return mixed
109
+     * @return string
106 110
      */
107 111
     public function getFilesDir()
108 112
     {
Please login to merge, or discard this patch.
src/components/BaseComponent.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,6 +88,7 @@  discard block
 block discarded – undo
88 88
          *
89 89
          * @param bool $obClean
90 90
          * @param null | Application $application
91
+         * @param Application $application
91 92
          *
92 93
          * @return string
93 94
          * @throws \Exception
@@ -157,7 +158,7 @@  discard block
 block discarded – undo
157 158
         }
158 159
 
159 160
         /**
160
-         * @param $template
161
+         * @param string $template
161 162
          * @param $application
162 163
          * @return string
163 164
          */
Please login to merge, or discard this patch.
src/components/cms/configuration/ApplicationComponentRouting.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-     * @param $request
48
+     * @param Request $request
49 49
      * @param CmsComponent $cmsComponent
50 50
      */
51 51
     private function newRoute($request, $cmsComponent)
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-     * @param $request
63
+     * @param Request $request
64 64
      * @param CmsComponent $cmsComponent
65 65
      */
66 66
     private function editRoute($request, $cmsComponent)
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     }
79 79
 
80 80
     /**
81
-     * @param $request
81
+     * @param Request $request
82 82
      * @param CmsComponent $cmsComponent
83 83
      */
84 84
     private function deleteRoute($request, $cmsComponent)
Please login to merge, or discard this patch.
src/components/cms/configuration/ImageSetRouting.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     }
47 47
 
48 48
     /**
49
-     * @param $request
49
+     * @param Request $request
50 50
      * @param CmsComponent $cmsComponent
51 51
      */
52 52
     private function editRoute($request, $cmsComponent)
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-     * @param $request
66
+     * @param Request $request
67 67
      * @param CmsComponent $cmsComponent
68 68
      */
69 69
     private function newRoute($request, $cmsComponent)
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     }
79 79
 
80 80
     /**
81
-     * @param $request
81
+     * @param Request $request
82 82
      * @param CmsComponent $cmsComponent
83 83
      */
84 84
     private function deleteRoute($request, $cmsComponent)
Please login to merge, or discard this patch.
src/components/cms/configuration/UsersRouting.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @param $request
50
+     * @param Request $request
51 51
      * @param CmsComponent $cmsComponent
52 52
      */
53 53
     private function newRoute($request, $cmsComponent)
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     }
63 63
 
64 64
     /**
65
-     * @param $request
65
+     * @param Request $request
66 66
      * @param CmsComponent $cmsComponent
67 67
      */
68 68
     private function deleteRoute($request, $cmsComponent)
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @param $request
76
+     * @param Request $request
77 77
      * @param CmsComponent $cmsComponent
78 78
      */
79 79
     private function editRoute($request, $cmsComponent)
Please login to merge, or discard this patch.
src/components/CmsComponent.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         }
196 196
 
197 197
         /**
198
-         * @param $request
198
+         * @param \CloudControl\Cms\cc\Request $request
199 199
          *
200 200
          * @return mixed|string
201 201
          */
@@ -228,6 +228,9 @@  discard block
 block discarded – undo
228 228
             }
229 229
         }
230 230
 
231
+        /**
232
+         * @param \CloudControl\Cms\cc\Request $request
233
+         */
231 234
         private function logOffRouting($request, $relativeCmsUri)
232 235
         {
233 236
             if ($relativeCmsUri == '/log-off') {
@@ -327,7 +330,7 @@  discard block
 block discarded – undo
327 330
         }
328 331
 
329 332
         /**
330
-         * @param $crypt
333
+         * @param Crypt $crypt
331 334
          * @param $request
332 335
          */
333 336
         protected function invalidCredentials($crypt, $request)
@@ -339,7 +342,7 @@  discard block
 block discarded – undo
339 342
 
340 343
         /**
341 344
          * @param $user
342
-         * @param $crypt
345
+         * @param Crypt $crypt
343 346
          * @param $request
344 347
          */
345 348
         protected function checkPassword($user, $crypt, $request)
@@ -359,7 +362,7 @@  discard block
 block discarded – undo
359 362
         }
360 363
 
361 364
         /**
362
-         * @param $request
365
+         * @param \CloudControl\Cms\cc\Request $request
363 366
          */
364 367
         protected function checkLoginAttempt($request)
365 368
         {
Please login to merge, or discard this patch.