@@ -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 |
@@ -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 | } |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | return; |
329 | 329 | } |
330 | 330 | |
331 | - $this->$method($input,$output); |
|
331 | + $this->$method($input, $output); |
|
332 | 332 | } |
333 | 333 | |
334 | 334 | /** |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define ("GITHUB_PASSWORD","bImhappyplatanito"); |
|
4 | 3 | \ No newline at end of file |
4 | +define("GITHUB_PASSWORD", "bImhappyplatanito"); |
|
5 | 5 | \ No newline at end of file |