@@ -115,10 +115,10 @@ |
||
| 115 | 115 | /** |
| 116 | 116 | * Insert file into file using mountpoint. |
| 117 | 117 | * |
| 118 | - * @param $mountpoint |
|
| 118 | + * @param string $mountpoint |
|
| 119 | 119 | * @param $fileToInsert |
| 120 | 120 | * |
| 121 | - * @return mixed |
|
| 121 | + * @return integer|null |
|
| 122 | 122 | */ |
| 123 | 123 | private function addFileIntoMountPoint($mountpoint, $fileToInsert, $outputFile = null) |
| 124 | 124 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $this->runGitAdd(); |
| 77 | 77 | $this->runGitCommit(); |
| 78 | 78 | $this->runGitCreateRepo(); |
| 79 | - $this->runGitRemoteAddOrigin($this->getRepoURL($input,$output)); |
|
| 79 | + $this->runGitRemoteAddOrigin($this->getRepoURL($input, $output)); |
|
| 80 | 80 | $this->runGitPull(); |
| 81 | 81 | $this->runGitPush(); |
| 82 | 82 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | public function getRepoURL(InputInterface $input, OutputInterface $output) |
| 93 | 93 | { |
| 94 | - return '[email protected]:' . $this->gitHubUsername($input,$output) . '/' . $this->repoName($input) . '.git'; |
|
| 94 | + return '[email protected]:'.$this->gitHubUsername($input, $output).'/'.$this->repoName($input).'.git'; |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | { |
| 130 | 130 | $username = $this->parser->getGitHubUsername(); |
| 131 | 131 | if (is_null($username)) { |
| 132 | - $this->showErrorRunLlumInitFirst($output,'username'); |
|
| 132 | + $this->showErrorRunLlumInitFirst($output, 'username'); |
|
| 133 | 133 | } |
| 134 | 134 | return $username; |
| 135 | 135 | } |
@@ -137,24 +137,24 @@ discard block |
||
| 137 | 137 | /** |
| 138 | 138 | * Run git init command. |
| 139 | 139 | */ |
| 140 | - protected function runGitInit(){ |
|
| 141 | - $this->showMessageRunningCommand($this->output,'git init'); |
|
| 140 | + protected function runGitInit() { |
|
| 141 | + $this->showMessageRunningCommand($this->output, 'git init'); |
|
| 142 | 142 | passthru('git init'); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | 146 | * Run git add command. |
| 147 | 147 | */ |
| 148 | - protected function runGitAdd(){ |
|
| 149 | - $this->showMessageRunningCommand($this->output,'git add .'); |
|
| 148 | + protected function runGitAdd() { |
|
| 149 | + $this->showMessageRunningCommand($this->output, 'git add .'); |
|
| 150 | 150 | passthru('git add .'); |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | 154 | * Run git commit command. |
| 155 | 155 | */ |
| 156 | - protected function runGitCommit(){ |
|
| 157 | - $this->showMessageRunningCommand($this->output,'git commit -a -m "Initial version"'); |
|
| 156 | + protected function runGitCommit() { |
|
| 157 | + $this->showMessageRunningCommand($this->output, 'git commit -a -m "Initial version"'); |
|
| 158 | 158 | passthru('git commit -a -m "Initial version"'); |
| 159 | 159 | } |
| 160 | 160 | |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | */ |
| 164 | 164 | protected function runGitCreateRepo() |
| 165 | 165 | { |
| 166 | - $this->showMessageRunningCommand($this->output,'llum github:repo'); |
|
| 166 | + $this->showMessageRunningCommand($this->output, 'llum github:repo'); |
|
| 167 | 167 | passthru('llum github:repo'); |
| 168 | 168 | } |
| 169 | 169 | |
@@ -172,24 +172,24 @@ discard block |
||
| 172 | 172 | * |
| 173 | 173 | * @param $url |
| 174 | 174 | */ |
| 175 | - protected function runGitRemoteAddOrigin($url){ |
|
| 176 | - $this->showMessageRunningCommand($this->output,'git remote add origin ' . $url); |
|
| 177 | - passthru('git remote add origin ' . $url); |
|
| 175 | + protected function runGitRemoteAddOrigin($url) { |
|
| 176 | + $this->showMessageRunningCommand($this->output, 'git remote add origin '.$url); |
|
| 177 | + passthru('git remote add origin '.$url); |
|
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * Run git pull. |
| 182 | 182 | */ |
| 183 | - protected function runGitPull(){ |
|
| 184 | - $this->showMessageRunningCommand($this->output,'git pull origin master'); |
|
| 183 | + protected function runGitPull() { |
|
| 184 | + $this->showMessageRunningCommand($this->output, 'git pull origin master'); |
|
| 185 | 185 | passthru('git pull origin master'); |
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | 189 | * Run git push. |
| 190 | 190 | */ |
| 191 | - protected function runGitPush(){ |
|
| 192 | - $this->showMessageRunningCommand($this->output,'git push origin master'); |
|
| 191 | + protected function runGitPush() { |
|
| 192 | + $this->showMessageRunningCommand($this->output, 'git push origin master'); |
|
| 193 | 193 | passthru('git push origin master'); |
| 194 | 194 | } |
| 195 | 195 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * @return string |
| 81 | 81 | */ |
| 82 | 82 | protected function getStubPath() { |
| 83 | - return __DIR__ . '/stubs/llumrc.stub'; |
|
| 83 | + return __DIR__.'/stubs/llumrc.stub'; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | public function init(InputInterface $input, OutputInterface $output) |
| 106 | 106 | { |
| 107 | 107 | try { |
| 108 | - $this->executeWizard($input,$output); |
|
| 108 | + $this->executeWizard($input, $output); |
|
| 109 | 109 | $this->filesystem->overwrite( |
| 110 | 110 | (new LlumRCFile())->path(), |
| 111 | 111 | $this->compiler->compile( |
@@ -122,10 +122,10 @@ discard block |
||
| 122 | 122 | * @param InputInterface $input |
| 123 | 123 | * @param OutputInterface $output |
| 124 | 124 | */ |
| 125 | - protected function executeWizard(InputInterface $input, OutputInterface $output){ |
|
| 125 | + protected function executeWizard(InputInterface $input, OutputInterface $output) { |
|
| 126 | 126 | |
| 127 | - $this->askGithubUsername($input,$output); |
|
| 128 | - $this->askGithubToken($input,$output); |
|
| 127 | + $this->askGithubUsername($input, $output); |
|
| 128 | + $this->askGithubToken($input, $output); |
|
| 129 | 129 | |
| 130 | 130 | $this->data = [ |
| 131 | 131 | "GITHUB_USERNAME" => $this->github_username, |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | public function askGithubUsername(InputInterface $input, OutputInterface $output) |
| 142 | 142 | { |
| 143 | 143 | $defaultusername = $this->defaultUsername(); |
| 144 | - $question = new Question('<info>Please enter your github username (' . $defaultusername . ') ? </info>', $defaultusername); |
|
| 144 | + $question = new Question('<info>Please enter your github username ('.$defaultusername.') ? </info>', $defaultusername); |
|
| 145 | 145 | $this->github_username = $this->getHelper('question')->ask($input, $output, $question); |
| 146 | 146 | } |
| 147 | 147 | |
@@ -161,9 +161,9 @@ discard block |
||
| 161 | 161 | { |
| 162 | 162 | $question = new ConfirmationQuestion('<info>Do you want to use our assistant to obtain token via Github API (Y/n)? </info>', true); |
| 163 | 163 | if ($this->getHelper('question')->ask($input, $output, $question)) { |
| 164 | - $this->github_token =$this->api->getPersonalToken( |
|
| 164 | + $this->github_token = $this->api->getPersonalToken( |
|
| 165 | 165 | $this->github_username, |
| 166 | - $this->askGithubPassword($input,$output)); |
|
| 166 | + $this->askGithubPassword($input, $output)); |
|
| 167 | 167 | } |
| 168 | 168 | } |
| 169 | 169 | |
@@ -13,74 +13,74 @@ discard block |
||
| 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 | 'AdminLTEVendorPublishDontForce' => [ |
| 38 | 38 | 'name' => 'acacha/admin-lte-template-laravel', |
| 39 | - 'providers' => ['Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class'], |
|
| 40 | - 'aliases' => ['AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class'], |
|
| 39 | + 'providers' => [ 'Acacha\AdminLTETemplateLaravel\Providers\AdminLTETemplateServiceProvider::class' ], |
|
| 40 | + 'aliases' => [ 'AdminLTE' => 'Acacha\AdminLTETemplateLaravel\Facades\AdminLTE::class' ], |
|
| 41 | 41 | 'after' => 'php artisan vendor:publish --tag=adminlte', |
| 42 | 42 | ], |
| 43 | 43 | |
| 44 | 44 | 'LaravelDebugbar' => [ |
| 45 | 45 | 'name' => 'barryvdh/laravel-debugbar', |
| 46 | - 'providers' => ['Barryvdh\Debugbar\ServiceProvider::class'], |
|
| 47 | - 'aliases' => ['Debugbar' => 'Barryvdh\Debugbar\Facade::class'], |
|
| 46 | + 'providers' => [ 'Barryvdh\Debugbar\ServiceProvider::class' ], |
|
| 47 | + 'aliases' => [ 'Debugbar' => 'Barryvdh\Debugbar\Facade::class' ], |
|
| 48 | 48 | 'after' => 'php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"', |
| 49 | 49 | ], |
| 50 | 50 | |
| 51 | 51 | 'LaravelIdeHelper' => [ |
| 52 | 52 | 'name' => 'barryvdh/laravel-ide-helper', |
| 53 | - 'providers' => ['Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class'], |
|
| 53 | + 'providers' => [ 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class' ], |
|
| 54 | 54 | 'after' => 'php artisan ide-helper:generate', |
| 55 | 55 | ], |
| 56 | 56 | |
| 57 | 57 | 'Socialite' => [ |
| 58 | 58 | 'name' => 'laravel/socialite', |
| 59 | - 'providers' => ['Laravel\Socialite\SocialiteServiceProvider::class'], |
|
| 60 | - 'aliases' => ['Socialite' => 'Laravel\Socialite\Facades\Socialite::class'], |
|
| 59 | + 'providers' => [ 'Laravel\Socialite\SocialiteServiceProvider::class' ], |
|
| 60 | + 'aliases' => [ 'Socialite' => 'Laravel\Socialite\Facades\Socialite::class' ], |
|
| 61 | 61 | ], |
| 62 | 62 | |
| 63 | 63 | 'AcachaSocialite' => [ |
| 64 | 64 | 'name' => 'acacha/acacha-socialite', |
| 65 | - 'providers' => ['Acacha\Socialite\Providers\AcachaSocialiteServiceProvider::class'], |
|
| 65 | + 'providers' => [ 'Acacha\Socialite\Providers\AcachaSocialiteServiceProvider::class' ], |
|
| 66 | 66 | 'after' => 'php artisan vendor:publish --tag=acachasocialite --force', |
| 67 | 67 | ], |
| 68 | 68 | |
| 69 | 69 | 'LaravelPassport' => [ |
| 70 | 70 | 'name' => 'laravel/passport', |
| 71 | - 'providers' => ['Laravel\Passport\PassportServiceProvider::class'], |
|
| 71 | + 'providers' => [ 'Laravel\Passport\PassportServiceProvider::class' ], |
|
| 72 | 72 | 'after' => 'php artisan migrate;php artisan passport:install', |
| 73 | 73 | ], |
| 74 | 74 | |
| 75 | 75 | 'Passport' => [ |
| 76 | 76 | 'name' => 'laravel/passport', |
| 77 | - 'providers' => ['Laravel\Passport\PassportServiceProvider::class'], |
|
| 77 | + 'providers' => [ 'Laravel\Passport\PassportServiceProvider::class' ], |
|
| 78 | 78 | 'after' => 'php artisan migrate;php artisan passport:install', |
| 79 | 79 | ], |
| 80 | 80 | |
| 81 | 81 | 'Menu' => [ |
| 82 | 82 | 'name' => 'spatie/laravel-menu', |
| 83 | - 'providers' => ['Spatie\Menu\Laravel\MenuServiceProvider::class'], |
|
| 83 | + 'providers' => [ 'Spatie\Menu\Laravel\MenuServiceProvider::class' ], |
|
| 84 | 84 | 'aliases' => [ |
| 85 | 85 | 'Menu' => 'Spatie\Menu\Laravel\MenuFacade::class', |
| 86 | 86 | 'Link' => 'Spatie\Menu\Laravel\Link::class', |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | 'laravel-menu' => [ |
| 92 | 92 | 'name' => 'spatie/laravel-menu', |
| 93 | - 'providers' => ['Spatie\Menu\Laravel\MenuServiceProvider::class'], |
|
| 93 | + 'providers' => [ 'Spatie\Menu\Laravel\MenuServiceProvider::class' ], |
|
| 94 | 94 | 'aliases' => [ |
| 95 | 95 | 'Menu' => 'Spatie\Menu\Laravel\MenuFacade::class', |
| 96 | 96 | 'Link' => 'Spatie\Menu\Laravel\Link::class', |