Passed
Push — develop ( 627810...75d8c1 )
by Jens
02:19
created
src/components/cms/DocumentRouting.php 1 patch
Doc Comments   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
 
34 34
 
35 35
     /**
36
-     * @param $request
37
-     * @param $relativeCmsUri
36
+     * @param Request $request
37
+     * @param string $relativeCmsUri
38 38
      * @param CmsComponent $cmsComponent
39 39
      * @throws \Exception
40 40
      */
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-     * @param $request
58
-     * @param $relativeCmsUri
57
+     * @param Request $request
58
+     * @param string $relativeCmsUri
59 59
      * @param CmsComponent $cmsComponent
60 60
      */
61 61
     private function folderRouting($request, $relativeCmsUri, $cmsComponent)
@@ -69,6 +69,11 @@  discard block
 block discarded – undo
69 69
         }
70 70
     }
71 71
 
72
+    /**
73
+     * @param Request $request
74
+     * @param string $relativeCmsUri
75
+     * @param CmsComponent $cmsComponent
76
+     */
72 77
     private function valuelistsRouting($request, $relativeCmsUri, $cmsComponent)
73 78
     {
74 79
         if ($relativeCmsUri == '/documents/valuelists') {
Please login to merge, or discard this patch.
src/components/cms/SearchRouting.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -60,6 +60,10 @@  discard block
 block discarded – undo
60 60
         $cmsComponent->setParameter(CmsComponent::PARAMETER_RETURN_URL, $returnUrl);
61 61
     }
62 62
 
63
+    /**
64
+     * @param \CloudControl\Cms\cc\Request $request
65
+     * @param CmsComponent $cmsComponent
66
+     */
63 67
     private function ajaxUpdateIndexRoute($request, $cmsComponent)
64 68
     {
65 69
         $cmsComponent->subTemplate = 'search/update-index';
@@ -74,6 +78,9 @@  discard block
 block discarded – undo
74 78
         }
75 79
     }
76 80
 
81
+    /**
82
+     * @param string $obj
83
+     */
77 84
     private function showJson($obj, $httpHeader = 'HTTP/1.0 200 OK')
78 85
     {
79 86
         header($_SERVER['SERVER_PROTOCOL'] . $httpHeader, true);
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.
src/components/FormComponent.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      * submitting the form
150 150
      *
151 151
      * @param $postValues
152
-     * @param $storage
152
+     * @param Storage $storage
153 153
      */
154 154
     protected function postSubmit($postValues, $storage)
155 155
     {
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     }
321 321
 
322 322
     /**
323
-     * @param $form
323
+     * @param string|null $form
324 324
      */
325 325
     private function setFormParameter($form)
326 326
     {
Please login to merge, or discard this patch.
src/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.
src/templates/documents.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@  discard block
 block discarded – undo
20 20
               <a href="<?= $request::$subfolders ?><?= $cmsPrefix ?>/search/update-index?returnUrl=<?=urlencode($request::$subfolders . $cmsPrefix . '/documents')?>" title="Update Index">Update Index</a>
21 21
             <? endif ?>
22 22
         </div>
23
-      <? else : ?>
23
+      <? else {
24
+    : ?>
24 25
         <div class="message valid">
25 26
           <i class="fa fa-check"></i> Search index is in sync with documents.
26 27
         </div>
@@ -52,7 +53,9 @@  discard block
 block discarded – undo
52 53
           <? foreach ($documents as $document) : ?>
53 54
             <li class="grid-container">
54 55
                 <? if ($document->type == 'document') : ?>
55
-                    <? renderDocument($document, $cmsPrefix, '', $request); ?>
56
+                    <? renderDocument($document, $cmsPrefix, '', $request);
57
+}
58
+?>
56 59
                 <? elseif ($document->type == 'folder') : ?>
57 60
                     <? renderFolder($document, $cmsPrefix, '', true, $request); ?>
58 61
                 <? endif ?>
Please login to merge, or discard this patch.