Passed
Push — develop ( fc7043...b7cd40 )
by Jens
02:53
created
cloudcontrol/library/components/LanguageComponent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
     /**
106 106
      * Detect if the language is switched manually
107 107
      *
108
-     * @param $request
108
+     * @param Request $request
109 109
      */
110 110
     private function checkLanguageSwitch($request)
111 111
     {
Please login to merge, or discard this patch.
cloudcontrol/library/cc/cc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
  * @param array  $replace
117 117
  * @param string $delimiter
118 118
  *
119
- * @return mixed|string
119
+ * @return string
120 120
  */
121 121
 function slugify($str, $replace=array(), $delimiter='-') {
122 122
 	if( !empty($replace) ) {
Please login to merge, or discard this patch.
cloudcontrol/library/cc/errorhandler.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -149,6 +149,11 @@
 block discarded – undo
149 149
     }
150 150
 }
151 151
 
152
+/**
153
+ * @param string $message
154
+ * @param string $file
155
+ * @param integer $code
156
+ */
152 157
 function renderCliException($message, $file, $line, $code, $trace, $lines)
153 158
 {
154 159
     echo PHP_EOL;
Please login to merge, or discard this patch.
cloudcontrol/library/components/CmsComponent.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 		}
182 182
 
183 183
 		/**
184
-		 * @param $request
184
+		 * @param \library\cc\Request $request
185 185
 		 *
186 186
 		 * @return mixed|string
187 187
 		 */
@@ -214,6 +214,9 @@  discard block
 block discarded – undo
214 214
 			}
215 215
 		}
216 216
 
217
+		/**
218
+		 * @param \library\cc\Request $request
219
+		 */
217 220
 		private function logOffRouting($request, $relativeCmsUri)
218 221
 		{
219 222
 			if ($relativeCmsUri == '/log-off') {
@@ -307,7 +310,7 @@  discard block
 block discarded – undo
307 310
 		}
308 311
 
309 312
 		/**
310
-		 * @param $crypt
313
+		 * @param Crypt $crypt
311 314
 		 * @param $request
312 315
 		 */
313 316
 		protected function invalidCredentials($crypt, $request)
@@ -319,7 +322,7 @@  discard block
 block discarded – undo
319 322
 
320 323
 		/**
321 324
 		 * @param $user
322
-		 * @param $crypt
325
+		 * @param Crypt $crypt
323 326
 		 * @param $request
324 327
 		 */
325 328
 		protected function checkPassword($user, $crypt, $request)
@@ -338,7 +341,7 @@  discard block
 block discarded – undo
338 341
 		}
339 342
 
340 343
 		/**
341
-		 * @param $request
344
+		 * @param \library\cc\Request $request
342 345
 		 */
343 346
 		protected function checkLoginAttempt($request)
344 347
 		{
Please login to merge, or discard this patch.
cloudcontrol/library/components/FormComponent.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * submitting the form
148 148
 	 *
149 149
 	 * @param $postValues
150
-	 * @param $storage
150
+	 * @param Storage $storage
151 151
 	 */
152 152
 	protected function postSubmit($postValues, $storage)
153 153
 	{
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 	}
319 319
 
320 320
 	/**
321
-	 * @param $form
321
+	 * @param string|null $form
322 322
 	 */
323 323
 	private function setFormParameter($form)
324 324
 	{
Please login to merge, or discard this patch.
cloudcontrol/library/storage/JsonStorage.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
 		/**
359 359
 		 * Convert path to indeces
360 360
 		 *
361
-		 * @param $path
361
+		 * @param string $path
362 362
 		 *
363 363
 		 * @return array
364 364
 		 * @throws \Exception
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 		 *
374 374
 		 * @param $postValues
375 375
 		 *
376
-		 * @return \stdClass
376
+		 * @return Document
377 377
 		 * @throws \Exception
378 378
 		 */
379 379
 		private function createDocumentFolderFromPostValues($postValues)
@@ -666,6 +666,9 @@  discard block
 block discarded – undo
666 666
 			}
667 667
 		}
668 668
 
669
+		/**
670
+		 * @param string $path
671
+		 */
669 672
 		private function validateFilename($filename, $path)
670 673
 		{
671 674
 			$fileParts = explode('.', $filename);
Please login to merge, or discard this patch.
cloudcontrol/library/storage/Repository.php 1 patch
Doc Comments   +16 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     /**
53 53
      * Repository constructor.
54
-     * @param $storagePath
54
+     * @param string $storagePath
55 55
      * @throws \Exception
56 56
      */
57 57
     public function __construct($storagePath)
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * Creates the folder in which to create all storage related files
69 69
      *
70
-     * @param $storagePath
70
+     * @param string $storagePath
71 71
      * @return bool
72 72
      */
73 73
     public static function create($storagePath)
@@ -130,6 +130,9 @@  discard block
 block discarded – undo
130 130
         $this->usersChanges ? $this->saveSubset('users') : null;
131 131
     }
132 132
 
133
+    /**
134
+     * @param string $subset
135
+     */
133 136
     protected function saveSubset($subset)
134 137
     {
135 138
         $json = json_encode($this->$subset);
@@ -149,7 +152,7 @@  discard block
 block discarded – undo
149 152
     }
150 153
 
151 154
     /**
152
-     * @param $contentSqlPath
155
+     * @param string $contentSqlPath
153 156
      */
154 157
     protected function initContentDb($contentSqlPath)
155 158
     {
@@ -159,7 +162,7 @@  discard block
 block discarded – undo
159 162
     }
160 163
 
161 164
     /**
162
-     * @param $storageDefaultPath
165
+     * @param string $storageDefaultPath
163 166
      */
164 167
     protected function initConfigStorage($storageDefaultPath)
165 168
     {
@@ -199,6 +202,9 @@  discard block
 block discarded – undo
199 202
         return $this->getDocumentsByPath('/');
200 203
     }
201 204
 
205
+    /**
206
+     * @param string $folderPath
207
+     */
202 208
     public function getDocumentsByPath($folderPath)
203 209
     {
204 210
         $db = $this->getContentDbHandle();
@@ -267,6 +273,9 @@  discard block
 block discarded – undo
267 273
         return $stmt->fetchAll(\PDO::FETCH_CLASS, '\library\storage\Document');
268 274
     }
269 275
 
276
+    /**
277
+     * @param string $sql
278
+     */
270 279
     protected function fetchDocument($sql)
271 280
     {
272 281
         $stmt = $this->getDbStatement($sql);
@@ -328,6 +337,9 @@  discard block
 block discarded – undo
328 337
         return $result;
329 338
     }
330 339
 
340
+    /**
341
+     * @param string $path
342
+     */
331 343
     public function deleteDocumentByPath($path)
332 344
     {
333 345
         $db = $this->getContentDbHandle();
Please login to merge, or discard this patch.