Passed
Push — develop ( cf7a10...c36f9a )
by Jens
02:32
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/cc/Application.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,6 +83,9 @@  discard block
 block discarded – undo
83 83
             $this->storage = new Storage($this->config->rootDir . DIRECTORY_SEPARATOR . $this->config->storageDir, $this->config->imagesDir, $this->config->filesDir);
84 84
         }
85 85
 
86
+        /**
87
+         * @param Request $request
88
+         */
86 89
         private function redirectMatching($request)
87 90
         {
88 91
             $redirects = $this->storage->getRedirects()->getRedirects();
@@ -112,7 +115,7 @@  discard block
 block discarded – undo
112 115
          * Loop through sitemap items and see if one matches the requestUri.
113 116
          * If it does, add it tot the matchedSitemapItems array
114 117
          *
115
-         * @param $request
118
+         * @param Request $request
116 119
          */
117 120
         private function sitemapMatching($request)
118 121
         {
@@ -177,7 +180,7 @@  discard block
 block discarded – undo
177 180
          * @param array $parameters
178 181
          * @param \stdClass|null $matchedSitemapItem
179 182
          *
180
-         * @return mixed
183
+         * @return Component
181 184
          * @throws \Exception
182 185
          */
183 186
         private function getComponentObject($class = '', $template = '', $parameters = array(), $matchedSitemapItem)
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.