@@ -13,7 +13,7 @@ |
||
13 | 13 | curl_setopt($ch, CURLOPT_URL, self::URL); |
14 | 14 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
15 | 15 | curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); |
16 | - curl_setopt($ch,CURLOPT_USERAGENT,'Awesome-Octocat-App'); |
|
16 | + curl_setopt($ch, CURLOPT_USERAGENT, 'Awesome-Octocat-App'); |
|
17 | 17 | $data = curl_exec($ch); |
18 | 18 | curl_close($ch); |
19 | 19 |
@@ -51,7 +51,7 @@ |
||
51 | 51 | return; |
52 | 52 | } |
53 | 53 | |
54 | - if ($this->downloadService->download($this->gitHubService->latestBrowserDownloadUrl())){ |
|
54 | + if ($this->downloadService->download($this->gitHubService->latestBrowserDownloadUrl())) { |
|
55 | 55 | $output->writeln('<info> '.SelfUpdateCommandText::OK_INSTALLED.'</info>'); |
56 | 56 | } else { |
57 | 57 | $output->writeln('<info> '.SelfUpdateCommandText::KO_INSTALLED.'</info>'); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | public function getHelp() |
44 | 44 | { |
45 | - return self::$logo . parent::getHelp(); |
|
45 | + return self::$logo.parent::getHelp(); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | public function getLongVersion() |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $message .= "\n <bg=yellow;fg=black;options=bold>".self::MESSAGE_UPDATE." ".SelfUpdateCommand::COMMAND_NAME." to install.</>\n"; |
56 | 56 | } |
57 | 57 | |
58 | - $message .="\n <info>".self::MESSAGE_NAME." </info>".$actualVersion; |
|
58 | + $message .= "\n <info>".self::MESSAGE_NAME." </info>".$actualVersion; |
|
59 | 59 | |
60 | 60 | return $message; |
61 | 61 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require __DIR__ . '/vendor/autoload.php'; |
|
3 | +require __DIR__.'/vendor/autoload.php'; |
|
4 | 4 | |
5 | 5 | date_default_timezone_set('UTC'); |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require __DIR__ . '/vendor/autoload.php'; |
|
3 | +require __DIR__.'/vendor/autoload.php'; |
|
4 | 4 | |
5 | 5 | date_default_timezone_set('UTC'); |
6 | 6 |
@@ -4,5 +4,5 @@ |
||
4 | 4 | |
5 | 5 | class ShowProjectsCommandText |
6 | 6 | { |
7 | - const OK_0_PROJECTS = "0 projects configurated"; |
|
7 | + const OK_0_PROJECTS = "0 projects configurated"; |
|
8 | 8 | } |
9 | 9 | \ No newline at end of file |
@@ -39,7 +39,7 @@ |
||
39 | 39 | } else { |
40 | 40 | $tableData = []; |
41 | 41 | foreach ($jsonDb as $k =>$v) { |
42 | - $tableData[] = [$k,$v]; |
|
42 | + $tableData[] = [$k, $v]; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | $table = new Table($output); |
@@ -15,8 +15,8 @@ |
||
15 | 15 | $content = file_get_contents($pathExec."/newdep"); |
16 | 16 | file_put_contents($pathExec."/dep", $content); |
17 | 17 | unlink($pathExec.'/newdep'); |
18 | - chmod($pathExec."/dep",0755); |
|
19 | - } catch (\Exception $e){ |
|
18 | + chmod($pathExec."/dep", 0755); |
|
19 | + } catch (\Exception $e) { |
|
20 | 20 | return false; |
21 | 21 | } |
22 | 22 |
@@ -48,14 +48,14 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | $jsonDb = $this->databaseService->getProjects(); |
51 | - if (array_key_exists($nameOfProject,$jsonDb)) { |
|
51 | + if (array_key_exists($nameOfProject, $jsonDb)) { |
|
52 | 52 | $question = new ConfirmationQuestion('<error>This project exist. Do you want override it?</error> <info>Y/n</info> ', false); |
53 | 53 | if (!$helper->ask($input, $output, $question)) { |
54 | 54 | return; |
55 | 55 | } |
56 | 56 | } |
57 | 57 | |
58 | - if ($this->databaseService->addProject($nameOfProject, getcwd())){ |
|
58 | + if ($this->databaseService->addProject($nameOfProject, getcwd())) { |
|
59 | 59 | $output->writeln('<info>OK. Project added.</info>'); |
60 | 60 | } else { |
61 | 61 | $output->writeln('<error>KO. Error</error>'); |