@@ -105,7 +105,7 @@ |
||
| 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 | { |
@@ -116,7 +116,7 @@ |
||
| 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) ) { |
@@ -149,6 +149,11 @@ |
||
| 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; |
@@ -181,7 +181,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 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 |
||
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | /** |
| 321 | - * @param $form |
|
| 321 | + * @param string|null $form |
|
| 322 | 322 | */ |
| 323 | 323 | private function setFormParameter($form) |
| 324 | 324 | { |
@@ -358,7 +358,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |
@@ -51,7 +51,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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) |