@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | # We overwrite this function with the Laravel 5.8 variant |
42 | 42 | # because it isn't backwards compatible across supported versions |
43 | 43 | |
44 | - if (isset($this->customCreators[$driver])) { |
|
44 | + if (isset($this->customCreators[ $driver ])) { |
|
45 | 45 | return $this->callCustomCreator($driver); |
46 | 46 | } else { |
47 | 47 | $method = 'create' . Str::studly($driver) . 'Driver'; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function getDefaultDriver() |
85 | 85 | { |
86 | - return $this->app['config']['url-shortener.default']; |
|
86 | + return $this->app[ 'config' ][ 'url-shortener.default' ]; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -94,6 +94,6 @@ discard block |
||
94 | 94 | */ |
95 | 95 | protected function getDriverConfig(string $name) |
96 | 96 | { |
97 | - return $this->app['config']["url-shortener.drivers.$name"] ?: []; |
|
97 | + return $this->app[ 'config' ][ "url-shortener.drivers.$name" ] ?: [ ]; |
|
98 | 98 | } |
99 | 99 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $this->app->alias('url.shortener', UrlShortenerManager::class); |
49 | 49 | $this->app->bindIf(ClientInterface::class, Client::class); |
50 | 50 | |
51 | - $this->app->singleton('url.shortener', function ($app) { |
|
51 | + $this->app->singleton('url.shortener', function($app) { |
|
52 | 52 | return new UrlShortenerManager($app); |
53 | 53 | }); |
54 | 54 | } |
@@ -64,15 +64,15 @@ discard block |
||
64 | 64 | return; |
65 | 65 | } |
66 | 66 | |
67 | - UrlGenerator::macro('shorten', function (...$parameters) { |
|
67 | + UrlGenerator::macro('shorten', function(...$parameters) { |
|
68 | 68 | return app('url.shortener')->shorten(...$parameters); |
69 | 69 | }); |
70 | 70 | |
71 | - UrlGenerator::macro('shortenAsync', function (...$parameters) { |
|
71 | + UrlGenerator::macro('shortenAsync', function(...$parameters) { |
|
72 | 72 | return app('url.shortener')->shortenAsync(...$parameters); |
73 | 73 | }); |
74 | 74 | |
75 | - UrlGenerator::macro('shortener', function () { |
|
75 | + UrlGenerator::macro('shortener', function() { |
|
76 | 76 | return app('url.shortener'); |
77 | 77 | }); |
78 | 78 | } |