@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function services() |
| 26 | 26 | { |
| 27 | - $this->registry->add('toolbar', function ($app) { |
|
| 27 | + $this->registry->add('toolbar', function($app) { |
|
| 28 | 28 | |
| 29 | 29 | $toolbar = new Toolbar(); |
| 30 | 30 | $collectors = []; |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function services() |
| 13 | 13 | { |
| 14 | - $this->registry->add('emitter', function ($app) { |
|
| 14 | + $this->registry->add('emitter', function($app) { |
|
| 15 | 15 | |
| 16 | 16 | return (new Emitter()) |
| 17 | 17 | ->setLogger($app->make('logger')); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | if ($config['log_errors'] === true) { |
| 17 | 17 | |
| 18 | - $this->registry->add('logger', function () use ($config) { |
|
| 18 | + $this->registry->add('logger', function() use ($config) { |
|
| 19 | 19 | return new BaseLogger($config['log_prefix']); |
| 20 | 20 | }); |
| 21 | 21 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | |
| 64 | 64 | $route = preg_replace('/{([a-z0-9_-]+)}/i', '(?P<$1>[^/]+)', $route); |
| 65 | 65 | |
| 66 | - if(substr($route, -1) === '/') { |
|
| 66 | + if (substr($route, -1) === '/') { |
|
| 67 | 67 | $route .= '?'; |
| 68 | 68 | } |
| 69 | 69 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: matthew |
|
| 5 | - * Date: 12/1/15 |
|
| 6 | - * Time: 11:40 AM |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: matthew |
|
| 5 | + * Date: 12/1/15 |
|
| 6 | + * Time: 11:40 AM |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Fyuze\File\Iterators; |
| 10 | 10 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: matthew |
|
| 5 | - * Date: 12/1/15 |
|
| 6 | - * Time: 11:40 AM |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: matthew |
|
| 5 | + * Date: 12/1/15 |
|
| 6 | + * Time: 11:40 AM |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace Fyuze\File\Iterators; |
| 10 | 10 | |
@@ -210,7 +210,7 @@ |
||
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | /** |
| 213 | - * @param $key |
|
| 213 | + * @param string $key |
|
| 214 | 214 | * @param null $value |
| 215 | 215 | * @return null |
| 216 | 216 | */ |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | $headers = []; |
| 64 | 64 | |
| 65 | - foreach($this->headers as $name => $values) { |
|
| 65 | + foreach ($this->headers as $name => $values) { |
|
| 66 | 66 | $headers[strtolower($name)] = $values; |
| 67 | 67 | } |
| 68 | 68 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | $instance = clone $this; |
| 131 | - $instance->headers[$name] = array_filter((array)$value); |
|
| 131 | + $instance->headers[$name] = array_filter((array) $value); |
|
| 132 | 132 | return $instance; |
| 133 | 133 | } |
| 134 | 134 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | /** |
| 132 | 132 | * {@inheritdoc} |
| 133 | 133 | * |
| 134 | - * @return int|null The file size in bytes or null if unknown. |
|
| 134 | + * @return integer The file size in bytes or null if unknown. |
|
| 135 | 135 | */ |
| 136 | 136 | public function getSize() |
| 137 | 137 | { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | /** |
| 153 | 153 | * {@inheritdoc} |
| 154 | 154 | * |
| 155 | - * @return string|null The filename sent by the client or null if none |
|
| 155 | + * @return string The filename sent by the client or null if none |
|
| 156 | 156 | * was provided. |
| 157 | 157 | */ |
| 158 | 158 | public function getClientFilename() |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | /** |
| 164 | 164 | * {@inheritdoc} |
| 165 | 165 | * |
| 166 | - * @return string|null The media type sent by the client or null if none |
|
| 166 | + * @return string The media type sent by the client or null if none |
|
| 167 | 167 | * was provided. |
| 168 | 168 | */ |
| 169 | 169 | public function getClientMediaType() |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | /** |
| 134 | 134 | * {@inheritdoc} |
| 135 | 135 | * |
| 136 | - * @return null|int The URI port. |
|
| 136 | + * @return integer The URI port. |
|
| 137 | 137 | */ |
| 138 | 138 | public function getPort() |
| 139 | 139 | { |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | } |
| 311 | 311 | |
| 312 | 312 | /** |
| 313 | - * @param $uri |
|
| 313 | + * @param string $uri |
|
| 314 | 314 | */ |
| 315 | 315 | protected function format($uri) |
| 316 | 316 | { |
@@ -371,8 +371,8 @@ discard block |
||
| 371 | 371 | } |
| 372 | 372 | |
| 373 | 373 | /** |
| 374 | - * @param $scheme |
|
| 375 | - * @param $port |
|
| 374 | + * @param string $scheme |
|
| 375 | + * @param integer $port |
|
| 376 | 376 | * @return bool |
| 377 | 377 | */ |
| 378 | 378 | protected function isStandardPort($scheme, $port) |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | } |
| 392 | 392 | |
| 393 | 393 | /** |
| 394 | - * @param $key |
|
| 394 | + * @param string $key |
|
| 395 | 395 | * @param $value |
| 396 | 396 | * @return static |
| 397 | 397 | */ |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | */ |
| 187 | 187 | public function withScheme($scheme) |
| 188 | 188 | { |
| 189 | - $scheme = str_replace('://', '', strtolower((string)$scheme)); |
|
| 189 | + $scheme = str_replace('://', '', strtolower((string) $scheme)); |
|
| 190 | 190 | |
| 191 | 191 | if (!empty($scheme) && !array_key_exists($scheme, $this->schemes)) { |
| 192 | 192 | throw new InvalidArgumentException('Invalid scheme provided.'); |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | throw new InvalidArgumentException('Invalid port specified'); |
| 239 | 239 | } |
| 240 | 240 | |
| 241 | - return $this->_clone('port', (int)$port); |
|
| 241 | + return $this->_clone('port', (int) $port); |
|
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | /** |