@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function services() |
| 14 | 14 | { |
| 15 | - $this->registry->add('db', function () { |
|
| 15 | + $this->registry->add('db', function() { |
|
| 16 | 16 | |
| 17 | 17 | $config = $this->registry->make('config')->get('database'); |
| 18 | 18 | |
@@ -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 | */ |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | $instance = clone $this; |
| 122 | - $instance->headers[$name] = array_filter((array)$value); |
|
| 122 | + $instance->headers[$name] = array_filter((array) $value); |
|
| 123 | 123 | return $instance; |
| 124 | 124 | } |
| 125 | 125 | |
@@ -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() |