@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function handle() |
| 31 | 31 | { |
| 32 | - $driver = $this->laravel['url.shortener']->driver($this->input->getOption('driver')); |
|
| 32 | + $driver = $this->laravel[ 'url.shortener' ]->driver($this->input->getOption('driver')); |
|
| 33 | 33 | |
| 34 | 34 | $shortUrl = $driver->shorten($this->input->getArgument('url')); |
| 35 | 35 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | protected function getArguments() |
| 44 | 44 | { |
| 45 | 45 | return [ |
| 46 | - ['url', InputArgument::REQUIRED, 'The URL to shorten'], |
|
| 46 | + [ 'url', InputArgument::REQUIRED, 'The URL to shorten' ], |
|
| 47 | 47 | ]; |
| 48 | 48 | } |
| 49 | 49 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | protected function getOptions() |
| 54 | 54 | { |
| 55 | 55 | return [ |
| 56 | - ['driver', 'D', InputOption::VALUE_REQUIRED, 'The driver to use for shortening the given URL'], |
|
| 56 | + [ 'driver', 'D', InputOption::VALUE_REQUIRED, 'The driver to use for shortening the given URL' ], |
|
| 57 | 57 | ]; |
| 58 | 58 | } |
| 59 | 59 | } |
@@ -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 | |
@@ -66,15 +66,15 @@ discard block |
||
| 66 | 66 | return; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - UrlGenerator::macro('shorten', function (...$parameters) { |
|
| 69 | + UrlGenerator::macro('shorten', function(...$parameters) { |
|
| 70 | 70 | return app('url.shortener')->shorten(...$parameters); |
| 71 | 71 | }); |
| 72 | 72 | |
| 73 | - UrlGenerator::macro('shortenAsync', function (...$parameters) { |
|
| 73 | + UrlGenerator::macro('shortenAsync', function(...$parameters) { |
|
| 74 | 74 | return app('url.shortener')->shortenAsync(...$parameters); |
| 75 | 75 | }); |
| 76 | 76 | |
| 77 | - UrlGenerator::macro('shortener', function () { |
|
| 77 | + UrlGenerator::macro('shortener', function() { |
|
| 78 | 78 | return app('url.shortener'); |
| 79 | 79 | }); |
| 80 | 80 | } |