| @@ -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){ | 
| @@ -149,7 +149,7 @@ discard block | ||
| 149 | 149 | $process = new Process($composer.' require '.$package.''.$this->getDevOption(), | 
| 150 | 150 | null, null, null, null); | 
| 151 | 151 |          $this->output->writeln('<info>Running composer require '.$package.$this->getDevOption().'</info>'); | 
| 152 | -        $process->run(function ($type, $line) { | |
| 152 | +        $process->run(function($type, $line) { | |
| 153 | 153 | $this->output->write($line); | 
| 154 | 154 | }); | 
| 155 | 155 | } | 
| @@ -264,7 +264,7 @@ discard block | ||
| 264 | 264 | private function getPackageNameByComposerName($composerPackageName) | 
| 265 | 265 |      { | 
| 266 | 266 |          foreach ($this->config->all() as $key => $configItem) { | 
| 267 | -            if ($configItem['name'] == $composerPackageName) { | |
| 267 | +            if ($configItem[ 'name' ] == $composerPackageName) { | |
| 268 | 268 | return $key; | 
| 269 | 269 | } | 
| 270 | 270 | } | 
| @@ -301,9 +301,9 @@ discard block | ||
| 301 | 301 | $this->setName($name) | 
| 302 | 302 | ->setDescription($description); | 
| 303 | 303 |          if ($command->argument() != null) { | 
| 304 | - $this->addArgument($command->argument()['name'], | |
| 305 | - $command->argument()['type'], | |
| 306 | - $command->argument()['description'] | |
| 304 | + $this->addArgument($command->argument()[ 'name' ], | |
| 305 | + $command->argument()[ 'type' ], | |
| 306 | + $command->argument()[ 'description' ] | |
| 307 | 307 | ); | 
| 308 | 308 | } | 
| 309 | 309 | } | 
| @@ -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 |      { | 
| @@ -48,6 +48,6 @@ | ||
| 48 | 48 | */ | 
| 49 | 49 | private function parsePackageInfo($package) | 
| 50 | 50 |      { | 
| 51 | - return 'Composer name: '.$package['name']; | |
| 51 | + return 'Composer name: '.$package[ 'name' ]; | |
| 52 | 52 | } | 
| 53 | 53 | } | 
| @@ -13,49 +13,49 @@ | ||
| 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 adminlte-laravel:publish --force', | 
| 19 | 19 | ], | 
| 20 | 20 | |
| 21 | 21 | 'AdminLTEDontForce' => [ | 
| 22 | 22 | 'name' => 'acacha/admin-lte-template-laravel', | 
| 23 | - 'providers' => ['Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class'], | |
| 24 | - 'aliases' => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'], | |
| 23 | + 'providers' => [ 'Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class' ], | |
| 24 | + 'aliases' => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ], | |
| 25 | 25 | 'after' => 'php artisan adminlte-laravel:publish', | 
| 26 | - 'aliases' => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'], | |
| 26 | + 'aliases' => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ], | |
| 27 | 27 | 'after' => 'php artisan adminlte-laravel:publish', | 
| 28 | 28 | ], | 
| 29 | 29 | |
| 30 | 30 | 'AdminLTEVendorPublish' => [ | 
| 31 | 31 | 'name' => 'acacha/admin-lte-template-laravel', | 
| 32 | - 'providers' => ['Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class'], | |
| 33 | - 'aliases' => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'], | |
| 32 | + 'providers' => [ 'Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class' ], | |
| 33 | + 'aliases' => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ], | |
| 34 | 34 | 'after' => 'php artisan vendor:publish --tag=adminlte --force', | 
| 35 | 35 | ], | 
| 36 | 36 | |
| 37 | 37 | 'LaravelDebugbar' => [ | 
| 38 | 38 | 'name' => 'barryvdh/laravel-debugbar', | 
| 39 | - 'providers' => ['Barryvdh\Debugbar\ServiceProvider::class'], | |
| 40 | - 'aliases' => ['Debugbar' => 'Barryvdh\Debugbar\Facade::class'], | |
| 39 | + 'providers' => [ 'Barryvdh\Debugbar\ServiceProvider::class' ], | |
| 40 | + 'aliases' => [ 'Debugbar' => 'Barryvdh\Debugbar\Facade::class' ], | |
| 41 | 41 | 'after' => 'php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"', | 
| 42 | 42 | ], | 
| 43 | 43 | |
| 44 | 44 | 'LaravelIdeHelper' => [ | 
| 45 | 45 | 'name' => 'barryvdh/laravel-ide-helper', | 
| 46 | - 'providers' => ['Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class'], | |
| 46 | + 'providers' => [ 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class' ], | |
| 47 | 47 | 'after' => 'php artisan ide-helper:generate', | 
| 48 | 48 | ], | 
| 49 | 49 | |
| 50 | 50 | 'Socialite' => [ | 
| 51 | 51 | 'name' => 'laravel/socialite', | 
| 52 | - 'providers' => ['Laravel\Socialite\SocialiteServiceProvider::class'], | |
| 53 | - 'aliases' => ['Socialite' => 'Laravel\Socialite\Facades\Socialite::class'], | |
| 52 | + 'providers' => [ 'Laravel\Socialite\SocialiteServiceProvider::class' ], | |
| 53 | + 'aliases' => [ 'Socialite' => 'Laravel\Socialite\Facades\Socialite::class' ], | |
| 54 | 54 | ], | 
| 55 | 55 | |
| 56 | 56 | 'AcachaSocialite' => [ | 
| 57 | 57 | 'name' => 'acacha/acacha-socialite', | 
| 58 | - 'providers' => ['Acacha\Socialite\Providers\AcachaSocialiteServiceProvider::class'], | |
| 58 | + 'providers' => [ 'Acacha\Socialite\Providers\AcachaSocialiteServiceProvider::class' ], | |
| 59 | 59 | 'after' => 'php artisan vendor:publish --tag=acachasocialite --force', | 
| 60 | 60 | ], | 
| 61 | 61 | |