Completed
Branch master (3cc20e)
by Guido
11:54
created
src/Helpers/routes/RouteManager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 
38 38
     /**
39
-     * @return mixed
39
+     * @return string|boolean
40 40
      */
41 41
     public function getRoute($pathLike)
42 42
     {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     }
127 127
 
128 128
     /**
129
-     * @param $method
129
+     * @param string $method
130 130
      * @return array
131 131
      */
132 132
     private function stripRoutesByHttpMethod($method)
Please login to merge, or discard this patch.
src/Cache/FilesCacheClient.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -20,12 +20,18 @@
 block discarded – undo
20 20
         $this->path = $path;
21 21
     }
22 22
 
23
+    /**
24
+     * @param string $file
25
+     */
23 26
     public function saveToFile($file, $value)
24 27
     {
25 28
         file_put_contents($this->path . $file, serialize($value));
26 29
         return true;
27 30
     }
28 31
 
32
+    /**
33
+     * @param string $file
34
+     */
29 35
     public function loadFromFile($file)
30 36
     {
31 37
         return unserialize(file_get_contents($this->path . $file));
Please login to merge, or discard this patch.
src/Helpers/dependencyInjection/DIContainer.php 1 patch
Doc Comments   +14 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,6 +33,10 @@  discard block
 block discarded – undo
33 33
             "type" => "value"
34 34
         ));
35 35
     }
36
+
37
+    /**
38
+     * @param string $value
39
+     */
36 40
     public function mapClass($key, $value, $arguments = null)
37 41
     {
38 42
         $this->addToMap($key, (object) array(
@@ -41,6 +45,10 @@  discard block
 block discarded – undo
41 45
             "arguments" => $arguments
42 46
         ));
43 47
     }
48
+
49
+    /**
50
+     * @param string $value
51
+     */
44 52
     public function mapClassAsSingleton($key, $value, $arguments = null)
45 53
     {
46 54
         $this->addToMap($key, (object) array(
@@ -219,7 +227,7 @@  discard block
 block discarded – undo
219 227
     }
220 228
 
221 229
     /**
222
-     * @param $reflectionClass
230
+     * @param \ReflectionClass $reflectionClass
223 231
      * @param $className
224 232
      * @param $arguments
225 233
      * @return mixed
@@ -240,13 +248,16 @@  discard block
 block discarded – undo
240 248
         return $reflectionClass->newInstanceArgs($diArguments);
241 249
     }
242 250
 
251
+    /**
252
+     * @param string $id
253
+     */
243 254
     private function checkIfIsSingleton($id)
244 255
     {
245 256
         return self::SINGLETON_CLASS === $this->map->$id->type;
246 257
     }
247 258
 
248 259
     /**
249
-     * @param $id
260
+     * @param string $id
250 261
      * @return mixed
251 262
      */
252 263
     private function getItemInstance($id)
@@ -255,7 +266,7 @@  discard block
 block discarded – undo
255 266
     }
256 267
 
257 268
     /**
258
-     * @param $reflection
269
+     * @param \ReflectionClass $reflection
259 270
      * @param $instance
260 271
      */
261 272
     private function checkInjection($reflection, $instance)
Please login to merge, or discard this patch.
src/Services/TwigService.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
     }
22 22
 
23 23
     /**
24
-     * @param $controllerName
25
-     * @param $controllerMethod
26
-     * @param null $path
24
+     * @param string $controllerName
25
+     * @param string $controllerMethod
26
+     * @param string $path
27 27
      * @return bool
28 28
      */
29 29
     public function needsTwig($controllerName, $controllerMethod, $path = null): bool
Please login to merge, or discard this patch.
src/Cache/FilesCache.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@
 block discarded – undo
35 35
         return self::$instance;
36 36
     }
37 37
 
38
+    /**
39
+     * @param integer $expirationTime
40
+     */
38 41
     public function save($key, $value, $expirationTime = null)
39 42
     {
40 43
         self::$client->saveToFile(self::FILES_CACHE_PREFIX . $key, $value);
Please login to merge, or discard this patch.
src/Gv.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     }
140 140
 
141 141
     /**
142
-     * @param $action
142
+     * @param boolean|string $action
143 143
      * @return bool
144 144
      */
145 145
     private function supportsActionIfApplies($action)
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     }
159 159
 
160 160
     /**
161
-     * @param $scanDirectory
161
+     * @param string $scanDirectory
162 162
      * @return array|mixed|null
163 163
      * In order to bypass the error of trying to load a class with case insensitive (depending on the OS)
164 164
      * The method will check for all the files created under the controllers directory and generate a map of them
Please login to merge, or discard this patch.
src/Helpers/bootstrap/Bootstrap.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,6 @@
 block discarded – undo
96 96
     }
97 97
 
98 98
     /**
99
-     * @param Session $session
100 99
      * @throws \Exception
101 100
      */
102 101
     private function validateThrottling()
Please login to merge, or discard this patch.
src/Helpers/validation/NameValidationStrategy.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
  */
13 13
 class NameValidationStrategy implements ValidationStrategyInterface
14 14
 {
15
+    /**
16
+     * @param string $field
17
+     */
15 18
     public function isValid($field)
16 19
     {
17 20
         return boolval(preg_match("/^[a-zA-Z]*$/", $field));
Please login to merge, or discard this patch.
src/Services/ThrottlingService.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@
 block discarded – undo
51 51
         $this->ip = $ip;
52 52
     }
53 53
     
54
+    /**
55
+     * @param integer $rps
56
+     */
54 57
     public function setAllowedRequestsPerSecond($rps)
55 58
     {
56 59
         $this->allowedRequestsPerSecond = $rps;
Please login to merge, or discard this patch.