Passed
Push — develop ( aef793...4622da )
by Jens
02:42
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   +8 added lines, -8 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)
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
     /**
150 150
      * Persist subset to disk
151
-     * @param $subset
151
+     * @param string $subset
152 152
      */
153 153
     protected function saveSubset($subset)
154 154
     {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     }
175 175
 
176 176
     /**
177
-     * @param $contentSqlPath
177
+     * @param string $contentSqlPath
178 178
      */
179 179
     protected function initContentDb($contentSqlPath)
180 180
     {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     }
185 185
 
186 186
     /**
187
-     * @param $storageDefaultPath
187
+     * @param string $storageDefaultPath
188 188
      */
189 189
     protected function initConfigStorage($storageDefaultPath)
190 190
     {
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
     /**
232 232
      * Get all documents and folders in a certain path
233
-     * @param $folderPath
233
+     * @param string $folderPath
234 234
      * @return array
235 235
      * @throws \Exception
236 236
      */
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 
311 311
     /**
312 312
      * Return the result of the query as Document
313
-     * @param $sql
313
+     * @param string $sql
314 314
      * @return mixed
315 315
      * @throws \Exception
316 316
      */
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
     /**
386 386
      * Delete the document from the database
387 387
      * If it's a folder, also delete it's contents
388
-     * @param $path
388
+     * @param string $path
389 389
      * @throws \Exception
390 390
      */
391 391
     public function deleteDocumentByPath($path)
Please login to merge, or discard this patch.