@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | public function register() |
45 | 45 | { |
46 | 46 | // Register the service the package provides. |
47 | - $this->app->singleton('safe-urls', function () { |
|
47 | + $this->app->singleton('safe-urls', function() { |
|
48 | 48 | return new SafeUrls(); |
49 | 49 | }); |
50 | 50 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function provides() |
58 | 58 | { |
59 | - return ['safe-urls']; |
|
59 | + return [ 'safe-urls' ]; |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | ], 'safe-urls'); |
73 | 73 | |
74 | 74 | // Registering package commands. |
75 | - $this->commands(['safe-urls']); |
|
75 | + $this->commands([ 'safe-urls' ]); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -85,8 +85,8 @@ discard block |
||
85 | 85 | */ |
86 | 86 | protected function mergeConfigFrom($path, $key) |
87 | 87 | { |
88 | - $config = $this->app['config']->get($key, []); |
|
89 | - $this->app['config']->set($key, $this->mergeConfig($config, require $path)); |
|
88 | + $config = $this->app[ 'config' ]->get($key, [ ]); |
|
89 | + $this->app[ 'config' ]->set($key, $this->mergeConfig($config, require $path)); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | if (is_numeric($key)) { |
111 | 111 | continue; |
112 | 112 | } |
113 | - $array[$key] = $this->mergeConfig($value, $merging[$key]); |
|
113 | + $array[ $key ] = $this->mergeConfig($value, $merging[ $key ]); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | return $array; |