@@ -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){ |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | $process = new Process($composer.' require '.$package.'', null, null, null, null); |
112 | 112 | $this->output->writeln('<info>Running composer require '.$package.'</info>'); |
113 | - $process->run(function ($type, $line) { |
|
113 | + $process->run(function($type, $line) { |
|
114 | 114 | $this->output->write($line); |
115 | 115 | }); |
116 | 116 | } |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | $name = $command->name(); |
253 | 253 | $description = $command->description(); |
254 | 254 | |
255 | - if (! is_string($name) || ! is_string($description)) { |
|
255 | + if (!is_string($name) || !is_string($description)) { |
|
256 | 256 | throw new InvalidCommandException; |
257 | 257 | } |
258 | 258 |
@@ -202,7 +202,7 @@ |
||
202 | 202 | */ |
203 | 203 | private function testLaravelConfigFileExists() |
204 | 204 | { |
205 | - if (! $this->checkIfLaravelConfigFileExists()) { |
|
205 | + if (!$this->checkIfLaravelConfigFileExists()) { |
|
206 | 206 | $this->output->writeln('<error>File '.$this->laravel_config_file.' doesn\'t exists'); |
207 | 207 | |
208 | 208 | return -1; |
@@ -112,9 +112,9 @@ |
||
112 | 112 | /** |
113 | 113 | * Insert file into file using mountpoint. |
114 | 114 | * |
115 | - * @param $mountpoint |
|
115 | + * @param string $mountpoint |
|
116 | 116 | * @param $fileToInsert |
117 | - * @return mixed |
|
117 | + * @return integer|null |
|
118 | 118 | */ |
119 | 119 | private function addFileIntoMountPoint($mountpoint, $fileToInsert) |
120 | 120 | { |
@@ -13,33 +13,33 @@ |
||
13 | 13 | |
14 | 14 | 'AdminLTE' => [ |
15 | 15 | 'name' => 'acacha/admin-lte-template-laravel', |
16 | - 'providers' => ['Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class'], |
|
17 | - 'aliases' => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'], |
|
16 | + 'providers' => [ 'Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class' ], |
|
17 | + 'aliases' => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ], |
|
18 | 18 | 'after' => 'php artisan vendor:publish --tag=adminlte --force', |
19 | 19 | ], |
20 | 20 | |
21 | 21 | 'LaravelDebugbar' => [ |
22 | 22 | 'name' => 'barryvdh/laravel-debugbar', |
23 | - 'providers' => ['Barryvdh\Debugbar\ServiceProvider::class'], |
|
24 | - 'aliases' => ['Debugbar' => 'Barryvdh\Debugbar\Facade::class'], |
|
23 | + 'providers' => [ 'Barryvdh\Debugbar\ServiceProvider::class' ], |
|
24 | + 'aliases' => [ 'Debugbar' => 'Barryvdh\Debugbar\Facade::class' ], |
|
25 | 25 | 'after' => 'php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"', |
26 | 26 | ], |
27 | 27 | |
28 | 28 | 'LaravelIdeHelper' => [ |
29 | 29 | 'name' => 'barryvdh/laravel-ide-helper', |
30 | - 'providers' => ['Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class'], |
|
30 | + 'providers' => [ 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class' ], |
|
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 | 'AcachaSocialite' => [ |
41 | 41 | 'name' => 'acacha/acacha-socialite', |
42 | - 'providers' => ['Acacha\Socialite\Providers\AcachaSocialiteServiceProvider::class'], |
|
42 | + 'providers' => [ 'Acacha\Socialite\Providers\AcachaSocialiteServiceProvider::class' ], |
|
43 | 43 | 'after' => 'php artisan vendor:publish --tag=acachasocialite --force', |
44 | 44 | ], |
45 | 45 |