@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace ElfSundae\Laravel\Support\Services\Optimus; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Illuminate\Console\Command; |
7 | 6 | use Jenssegers\Optimus\Energon; |
8 | 7 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function handle() |
32 | 32 | { |
33 | - $values = array_combine(['prime', 'inverse', 'random'], Energon::generate()); |
|
33 | + $values = array_combine([ 'prime', 'inverse', 'random' ], Energon::generate()); |
|
34 | 34 | |
35 | 35 | if ($this->option('show')) { |
36 | 36 | return $this->printValues($values); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | $this->setValuesInEnvironmentFile($values); |
40 | 40 | |
41 | - $this->laravel['config']['support.optimus'] = $values; |
|
41 | + $this->laravel[ 'config' ][ 'support.optimus' ] = $values; |
|
42 | 42 | |
43 | 43 | $this->printValues($values); |
44 | 44 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | protected function printValues($values) |
54 | 54 | { |
55 | - $this->table(array_keys($values), [array_values($values)]); |
|
55 | + $this->table(array_keys($values), [ array_values($values) ]); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -19,15 +19,15 @@ |
||
19 | 19 | */ |
20 | 20 | public function register() |
21 | 21 | { |
22 | - $this->app->singleton(Optimus::class, function ($app) { |
|
23 | - $config = $app['config']->get('support.optimus'); |
|
22 | + $this->app->singleton(Optimus::class, function($app) { |
|
23 | + $config = $app[ 'config' ]->get('support.optimus'); |
|
24 | 24 | |
25 | - return new Optimus($config['prime'], $config['inverse'], $config['random']); |
|
25 | + return new Optimus($config[ 'prime' ], $config[ 'inverse' ], $config[ 'random' ]); |
|
26 | 26 | }); |
27 | 27 | |
28 | 28 | $this->app->alias(Optimus::class, 'optimus'); |
29 | 29 | |
30 | - $this->app->singleton('command.optimus.generate', function () { |
|
30 | + $this->app->singleton('command.optimus.generate', function() { |
|
31 | 31 | return new GenerateOptimusCommand; |
32 | 32 | }); |
33 | 33 |
@@ -18,13 +18,13 @@ |
||
18 | 18 | */ |
19 | 19 | public function register() |
20 | 20 | { |
21 | - $this->app->singleton(XgPusher::class, function ($app) { |
|
22 | - $config = $app['config']['support.xgpush']; |
|
21 | + $this->app->singleton(XgPusher::class, function($app) { |
|
22 | + $config = $app[ 'config' ][ 'support.xgpush' ]; |
|
23 | 23 | |
24 | - return (new XgPusher($config['key'], $config['secret'])) |
|
25 | - ->setEnvironment($config['environment']) |
|
26 | - ->setCustomKey($config['custom_key']) |
|
27 | - ->setAccountPrefix($config['account_prefix']); |
|
24 | + return (new XgPusher($config[ 'key' ], $config[ 'secret' ])) |
|
25 | + ->setEnvironment($config[ 'environment' ]) |
|
26 | + ->setCustomKey($config[ 'custom_key' ]) |
|
27 | + ->setAccountPrefix($config[ 'account_prefix' ]); |
|
28 | 28 | }); |
29 | 29 | |
30 | 30 | $this->app->alias(XgPusher::class, 'xgpusher'); |