Completed
Push — master ( 553351...4fb6aa )
by juan
02:20
created
src/Juanber84/Services/GitHubService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Juanber84/Console/Command/SelfUpdateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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>');
Please login to merge, or discard this patch.
src/Juanber84/Console/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
compiler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Juanber84/Texts/ShowProjectsCommandText.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,5 +4,5 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Juanber84/Console/Command/ShowProjectsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Juanber84/Services/DownloadService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Juanber84/Console/Command/AddProjectsCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@
 block discarded – undo
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>');
Please login to merge, or discard this patch.