Passed
Push — develop ( 08258a...de6037 )
by Jens
02:34
created
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->rootDir . DIRECTORY_SEPARATOR . $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/ValuelistRouting.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@  discard block
 block discarded – undo
32 32
         }
33 33
     }
34 34
 
35
+    /**
36
+     * @param CmsComponent $cmsComponent
37
+     */
35 38
     private function valuelistsRoute($cmsComponent)
36 39
     {
37 40
         $cmsComponent->subTemplate = 'valuelists';
@@ -40,7 +43,7 @@  discard block
 block discarded – undo
40 43
     }
41 44
 
42 45
     /**
43
-     * @param $request
46
+     * @param Request $request
44 47
      * @param CmsComponent $cmsComponent
45 48
      */
46 49
     private function newValuelistRoute($request, $cmsComponent)
@@ -56,6 +59,10 @@  discard block
 block discarded – undo
56 59
         }
57 60
     }
58 61
 
62
+    /**
63
+     * @param Request $request
64
+     * @param CmsComponent $cmsComponent
65
+     */
59 66
     private function editValuelistRoute($request, $cmsComponent)
60 67
     {
61 68
         $cmsComponent->subTemplate = 'valuelists/form';
@@ -73,6 +80,10 @@  discard block
 block discarded – undo
73 80
         $cmsComponent->setParameter(CmsComponent::PARAMETER_VALUELIST, $folder);
74 81
     }
75 82
 
83
+    /**
84
+     * @param Request $request
85
+     * @param CmsComponent $cmsComponent
86
+     */
76 87
     private function deleteValuelistRoute($request, $cmsComponent)
77 88
     {
78 89
         $cmsComponent->storage->getValuelists()->deleteValuelistBySlug($request::$get[CmsComponent::GET_PARAMETER_SLUG]);
Please login to merge, or discard this patch.