@@ -12,13 +12,10 @@ |
||
12 | 12 | namespace yolk\app; |
13 | 13 | |
14 | 14 | use yolk\Yolk; |
15 | - |
|
16 | 15 | use yolk\contracts\app\Application; |
17 | -use yolk\contracts\app\Dispatcher; |
|
18 | 16 | use yolk\contracts\app\Request; |
19 | 17 | use yolk\contracts\app\Response; |
20 | 18 | use yolk\contracts\profiler\Profiler; |
21 | - |
|
22 | 19 | use yolk\exceptions\Handler as YolkHandler; |
23 | 20 | |
24 | 21 | /** |
@@ -172,7 +172,7 @@ |
||
172 | 172 | |
173 | 173 | foreach( $this->services['config']->get('modules', []) as $name => $module ) { |
174 | 174 | list($package, $namespace) = $module; |
175 | - $class = $namespace. '\\Module'; |
|
175 | + $class = $namespace . '\\Module'; |
|
176 | 176 | $this->modules[$name] = new $class($this->services); |
177 | 177 | } |
178 | 178 |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace yolk\app; |
13 | 13 | |
14 | 14 | use yolk\contracts\support\Config; |
15 | - |
|
16 | 15 | use yolk\database\DSN; |
17 | 16 | |
18 | 17 | /** |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace yolk\app; |
13 | 13 | |
14 | 14 | use yolk\contracts\support\Config; |
15 | - |
|
16 | 15 | use yolk\database\DSN; |
17 | 16 | |
18 | 17 | /** |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace yolk\app; |
13 | 13 | |
14 | 14 | use yolk\contracts\support\Config; |
15 | - |
|
16 | 15 | use yolk\database\DSN; |
17 | 16 | |
18 | 17 | /** |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | // do geo-ip stuff if we have a valid IP that isn't part of a private network |
171 | 171 | if( $this->ip ) { |
172 | - $this->country_code = function_exists('geoip_country_code_by_name') ? geoip_country_code_by_name($this->ip) : ''; |
|
172 | + $this->country_code = function_exists('geoip_country_code_by_name') ? geoip_country_code_by_name($this->ip) : ''; |
|
173 | 173 | $this->continent = function_exists('geoip_continent_code_by_name') ? geoip_continent_code_by_name($this->ip) : ''; |
174 | 174 | } |
175 | 175 | |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | if( $this->uri == $uri_prefix ) |
221 | 221 | return '/'; |
222 | 222 | else |
223 | - return preg_replace('/^'. preg_quote($uri_prefix, '/'). '/', '', $this->uri); |
|
223 | + return preg_replace('/^' . preg_quote($uri_prefix, '/') . '/', '', $this->uri); |
|
224 | 224 | |
225 | 225 | } |
226 | 226 |
@@ -14,9 +14,9 @@ |
||
14 | 14 | /** |
15 | 15 | * 403 Forbidden Exception |
16 | 16 | */ |
17 | -class ForbiddenException extends \yolk\app\Exception { |
|
17 | +class ForbiddenException extends \yolk\app\Exception { |
|
18 | 18 | |
19 | - public function __construct( $message = 'Forbidden', \Exception $previous = null ) { |
|
19 | + public function __construct( $message = 'Forbidden', \Exception $previous = null ) { |
|
20 | 20 | parent::__construct($message, 403, $previous); |
21 | 21 | } |
22 | 22 |