@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $pattern = '#^https?://'.preg_quote($root, '#').'([\?/].*)?$#'; |
| 42 | 42 | if (preg_match($pattern, $url)) { |
| 43 | 43 | $len = strlen($root); |
| 44 | - if (! isset($length) || $length < $len) { |
|
| 44 | + if (!isset($length) || $length < $len) { |
|
| 45 | 45 | $length = $len; |
| 46 | 46 | $identifier = $id; |
| 47 | 47 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | { |
| 41 | 41 | $this->setupAssets(); |
| 42 | 42 | |
| 43 | - $this->app->rebinding('request', function () { |
|
| 43 | + $this->app->rebinding('request', function() { |
|
| 44 | 44 | AppIdentifier::refresh(); |
| 45 | 45 | }); |
| 46 | 46 | } |
@@ -58,8 +58,8 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | $this->mergeConfigFrom(__DIR__.'/../config/apps.php', 'apps'); |
| 60 | 60 | |
| 61 | - if (! $this->app['config']->has('apps.domain')) { |
|
| 62 | - $this->app['config']['apps.domain'] = array_map(function ($url) { |
|
| 61 | + if (!$this->app['config']->has('apps.domain')) { |
|
| 62 | + $this->app['config']['apps.domain'] = array_map(function($url) { |
|
| 63 | 63 | return parse_url($url, PHP_URL_HOST); |
| 64 | 64 | }, $this->app['config']['apps.url']); |
| 65 | 65 | } |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use ElfSundae\Laravel\Apps\AppIdentifier; |
| 4 | 4 | |
| 5 | -if (! function_exists('app_id')) { |
|
| 5 | +if (!function_exists('app_id')) { |
|
| 6 | 6 | /** |
| 7 | 7 | * Get or check the current application identifier. |
| 8 | 8 | * |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | -if (! function_exists('app_url')) { |
|
| 23 | +if (!function_exists('app_url')) { |
|
| 24 | 24 | /** |
| 25 | 25 | * Generate an absolute URL to the given path. |
| 26 | 26 | * |