@@ -124,7 +124,7 @@ |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * @return Session|null |
|
| 127 | + * @return Session |
|
| 128 | 128 | */ |
| 129 | 129 | public function getSession() |
| 130 | 130 | { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | - * @return Session|null |
|
| 113 | + * @return Session |
|
| 114 | 114 | */ |
| 115 | 115 | public function getSession() |
| 116 | 116 | { |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | /** |
| 387 | 387 | * Gets the body of the message. |
| 388 | 388 | * |
| 389 | - * @return StreamableInterface|null Returns the body, or null if not set. |
|
| 389 | + * @return StreamableInterface Returns the body, or null if not set. |
|
| 390 | 390 | */ |
| 391 | 391 | public function getBody() |
| 392 | 392 | { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @return \Psr\Log\LoggerInterface|null |
|
| 36 | + * @return \Psr\Log\LoggerInterface |
|
| 37 | 37 | */ |
| 38 | 38 | public function getLogger() |
| 39 | 39 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | - * @return IResponseDecorator|null |
|
| 65 | + * @return IResponseDecorator |
|
| 66 | 66 | */ |
| 67 | 67 | public function getResponseDecorator() |
| 68 | 68 | { |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | /** |
| 228 | 228 | * @param \ReflectionClass $expectedClass |
| 229 | - * @return Object|null |
|
| 229 | + * @return Controller|null |
|
| 230 | 230 | */ |
| 231 | 231 | protected function injectObjectByClass(\ReflectionClass $expectedClass) |
| 232 | 232 | { |
@@ -238,8 +238,8 @@ |
||
| 238 | 238 | * |
| 239 | 239 | * @param $pattern |
| 240 | 240 | * @param $uri |
| 241 | - * @param array $params |
|
| 242 | - * @return bool|string |
|
| 241 | + * @param string[] $params |
|
| 242 | + * @return false|string |
|
| 243 | 243 | */ |
| 244 | 244 | protected static function _IsMatch($pattern, $uri, &$params = array()) |
| 245 | 245 | { |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | |
| 249 | 249 | while ($pattern) { |
| 250 | 250 | if (preg_match('/^' . self::URL_VARIABLE_PATTERN . '/', $pattern, $matches)) { |
| 251 | - list($part, , $reg, $key) = $matches; |
|
| 251 | + list($part,, $reg, $key) = $matches; |
|
| 252 | 252 | |
| 253 | 253 | $uri_pattern = $reg ? $reg : self::DEFAULT_REGEX; |
| 254 | 254 | |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | $Parsed[$index = $rule] = []; |
| 355 | 355 | while ($index) { |
| 356 | 356 | if (preg_match('/^' . self::URL_VARIABLE_PATTERN . '/', $index, $matches)) { |
| 357 | - list($part, , , $key) = $matches; |
|
| 357 | + list($part,,, $key) = $matches; |
|
| 358 | 358 | |
| 359 | 359 | $Parsed[$rule][] = [1, $key]; |
| 360 | 360 | $index = substr($index, strlen($part)); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * |
| 46 | 46 | * @throws \RuntimeException If something goes wrong starting the session. |
| 47 | 47 | * @param $id |
| 48 | - * @return bool True if started. |
|
| 48 | + * @return boolean|null True if started. |
|
| 49 | 49 | */ |
| 50 | 50 | public function start($id) |
| 51 | 51 | { |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * Check session property exists |
| 120 | 120 | * |
| 121 | 121 | * @param $key |
| 122 | - * @return mixed |
|
| 122 | + * @return boolean |
|
| 123 | 123 | */ |
| 124 | 124 | public function has($key) |
| 125 | 125 | { |
@@ -45,9 +45,9 @@ |
||
| 45 | 45 | |
| 46 | 46 | if (is_callable($test)) { |
| 47 | 47 | $i = 1; $base = $value; |
| 48 | - while(call_user_func($test, $value)) { |
|
| 49 | - $i+=rand(1, 99); |
|
| 50 | - $value = $base.'-'.$i; |
|
| 48 | + while (call_user_func($test, $value)) { |
|
| 49 | + $i += rand(1, 99); |
|
| 50 | + $value = $base . '-' . $i; |
|
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | |