@@ -13,28 +13,28 @@ |
||
13 | 13 | |
14 | 14 | 'AdminLTE' => [ |
15 | 15 | 'name' => 'acacha/admin-lte-template-laravel', |
16 | - 'providers' => ['Barryvdh\Debugbar\ServiceProvider::class'], |
|
17 | - 'aliases' => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'], |
|
16 | + 'providers' => [ 'Barryvdh\Debugbar\ServiceProvider::class' ], |
|
17 | + 'aliases' => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ], |
|
18 | 18 | ], |
19 | 19 | |
20 | 20 | 'LaravelDebugbar' => [ |
21 | 21 | 'name' => 'barryvdh/laravel-debugbar', |
22 | - 'providers' => ['Barryvdh\Debugbar\ServiceProvider::class'], |
|
23 | - 'aliases' => ['Debugbar' => 'Barryvdh\Debugbar\Facade::class'], |
|
22 | + 'providers' => [ 'Barryvdh\Debugbar\ServiceProvider::class' ], |
|
23 | + 'aliases' => [ 'Debugbar' => 'Barryvdh\Debugbar\Facade::class' ], |
|
24 | 24 | 'after' => 'php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"', |
25 | 25 | ], |
26 | 26 | |
27 | 27 | 'LaravelIdeHelper' => [ |
28 | 28 | 'name' => 'barryvdh/laravel-ide-helper', |
29 | - 'providers' => ['Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class'], |
|
30 | - 'aliases' => [''], |
|
29 | + 'providers' => [ 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class' ], |
|
30 | + 'aliases' => [ '' ], |
|
31 | 31 | 'after' => 'php artisan ide-helper:generate', |
32 | 32 | ], |
33 | 33 | |
34 | 34 | 'Socialite' => [ |
35 | 35 | 'name' => 'laravel/socialite', |
36 | - 'providers' => ['Laravel\Socialite\SocialiteServiceProvider::class'], |
|
37 | - 'aliases' => ['Socialite' => 'Laravel\Socialite\Facades\Socialite::class'], |
|
36 | + 'providers' => [ 'Laravel\Socialite\SocialiteServiceProvider::class' ], |
|
37 | + 'aliases' => [ 'Socialite' => 'Laravel\Socialite\Facades\Socialite::class' ], |
|
38 | 38 | ], |
39 | 39 | |
40 | 40 | ]; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | protected function check_port($port = 8000, $host = '127.0.0.1', $timeout = 3) |
46 | 46 | { |
47 | 47 | $fp = @fsockopen($host, $port, $errno, $errstr, $timeout); |
48 | - if (! $fp) { |
|
48 | + if (!$fp) { |
|
49 | 49 | return true; |
50 | 50 | } else { |
51 | 51 | fclose($fp); |
@@ -377,7 +377,7 @@ |
||
377 | 377 | /** |
378 | 378 | * Obtain package. |
379 | 379 | * |
380 | - * @param $name |
|
380 | + * @param string $name |
|
381 | 381 | * @return array|int |
382 | 382 | */ |
383 | 383 | private function obtainPackage($name){ |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | private function testLaravelConfigFileExists() |
173 | 173 | { |
174 | - if (! $this->checkIfLaravelConfigFileExists()) { |
|
174 | + if (!$this->checkIfLaravelConfigFileExists()) { |
|
175 | 175 | $this->output->writeln('<error>File '.$this->laravel_config_file.' doesn\'t exists'); |
176 | 176 | |
177 | 177 | return -1; |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | |
266 | 266 | $process = new Process($composer.' require '.$package.'', null, null, null, null); |
267 | 267 | $this->output->writeln('<info>Running composer require '.$package.'</info>'); |
268 | - $process->run(function ($type, $line) { |
|
268 | + $process->run(function($type, $line) { |
|
269 | 269 | $this->output->write($line); |
270 | 270 | }); |
271 | 271 | } |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | |
370 | 370 | $this->requireComposerPackage($name); |
371 | 371 | |
372 | - $this->setupLaravelConfigFile($providers,$aliases); |
|
372 | + $this->setupLaravelConfigFile($providers, $aliases); |
|
373 | 373 | |
374 | 374 | $this->executeScriptAfterPackageInstallation($after); |
375 | 375 | } |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | * @param $name |
381 | 381 | * @return array|int |
382 | 382 | */ |
383 | - private function obtainPackage($name){ |
|
383 | + private function obtainPackage($name) { |
|
384 | 384 | $package = $this->getPackageFromConfig($name); |
385 | 385 | |
386 | 386 | if ($package == null) { |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | * |
397 | 397 | * @param $after |
398 | 398 | */ |
399 | - private function executeScriptAfterPackageInstallation($after){ |
|
399 | + private function executeScriptAfterPackageInstallation($after) { |
|
400 | 400 | if ($after != null) { |
401 | 401 | passthru($after); |
402 | 402 | } |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | $name = $command->name(); |
495 | 495 | $description = $command->description(); |
496 | 496 | |
497 | - if (! is_string($name) || ! is_string($description)) { |
|
497 | + if (!is_string($name) || !is_string($description)) { |
|
498 | 498 | throw new InvalidCommandException; |
499 | 499 | } |
500 | 500 |