@@ -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 | /** |
@@ -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 | |
@@ -12,9 +12,7 @@ |
||
| 12 | 12 | namespace yolk\app; |
| 13 | 13 | |
| 14 | 14 | use yolk\Yolk; |
| 15 | - |
|
| 16 | 15 | use yolk\contracts\support\Config; |
| 17 | - |
|
| 18 | 16 | use yolk\database\DSN; |
| 19 | 17 | |
| 20 | 18 | /** |