@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * |
29 | 29 | * @return string |
30 | 30 | */ |
31 | - public function shortenUsing(string $driver, string $url, array $options = []) |
|
31 | + public function shortenUsing(string $driver, string $url, array $options = [ ]) |
|
32 | 32 | { |
33 | 33 | return $this->driver($driver)->shorten($url, $options); |
34 | 34 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * |
43 | 43 | * @return \GuzzleHttp\Promise\PromisorInterface |
44 | 44 | */ |
45 | - public function shortenAsyncUsing(string $driver, string $url, array $options = []) |
|
45 | + public function shortenAsyncUsing(string $driver, string $url, array $options = [ ]) |
|
46 | 46 | { |
47 | 47 | return $this->driver($driver)->shortenAsync($url, $options); |
48 | 48 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | */ |
161 | 161 | public function getDefaultDriver() |
162 | 162 | { |
163 | - return $this->app['config']['url-shortener.default']; |
|
163 | + return $this->app[ 'config' ][ 'url-shortener.default' ]; |
|
164 | 164 | } |
165 | 165 | |
166 | 166 | /** |
@@ -171,6 +171,6 @@ discard block |
||
171 | 171 | */ |
172 | 172 | protected function getDriverConfig(string $name) |
173 | 173 | { |
174 | - return $this->app['config']["url-shortener.drivers.$name"] ?: []; |
|
174 | + return $this->app[ 'config' ][ "url-shortener.drivers.$name" ] ?: [ ]; |
|
175 | 175 | } |
176 | 176 | } |