Test Setup Failed
Branch master (d474d9)
by Àlex
09:29
created
PHPCI/Command/DaemoniseCommand.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- * @link         https://www.phptesting.org/
8
- */
3
+     * PHPCI - Continuous Integration for PHP
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     * @link         https://www.phptesting.org/
8
+     */
9 9
 
10 10
 namespace PHPCI\Command;
11 11
 
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-    * Loops through running.
65
-    */
64
+     * Loops through running.
65
+     */
66 66
     protected function execute(InputInterface $input, OutputInterface $output)
67 67
     {
68 68
         $cmd = "echo %s > '%s/daemon/daemon.pid'";
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
     }
101 101
 
102 102
     /**
103
-    * Called when log entries are made in Builder / the plugins.
104
-    * @see \PHPCI\Builder::log()
105
-    */
103
+     * Called when log entries are made in Builder / the plugins.
104
+     * @see \PHPCI\Builder::log()
105
+     */
106 106
     public function logCallback($log)
107 107
     {
108 108
         $this->output->writeln($log);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
             try {
86 86
                 $buildCount = $runner->run($emptyInput, $output);
87 87
             } catch (\Exception $e) {
88
-                $output->writeln('<error>Exception: ' . $e->getMessage() . '</error>');
89
-                $output->writeln('<error>Line: ' . $e->getLine() . ' - File: ' . $e->getFile() . '</error>');
88
+                $output->writeln('<error>Exception: '.$e->getMessage().'</error>');
89
+                $output->writeln('<error>Line: '.$e->getLine().' - File: '.$e->getFile().'</error>');
90 90
             }
91 91
 
92 92
             if (0 == $buildCount && $this->sleep < 15) {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             } elseif (1 < $this->sleep) {
95 95
                 $this->sleep--;
96 96
             }
97
-            echo '.'.(0 === $buildCount?'':'build');
97
+            echo '.'.(0 === $buildCount ? '' : 'build');
98 98
             sleep($this->sleep);
99 99
         }
100 100
     }
Please login to merge, or discard this patch.
PHPCI/Command/DaemonCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
 
193 193
         $pid = intval(trim(file_get_contents($this->pidFilePath)));
194 194
 
195
-        if($this->processControl->isRunning($pid, true)) {
195
+        if ($this->processControl->isRunning($pid, true)) {
196 196
             return $pid;
197 197
         }
198 198
 
Please login to merge, or discard this patch.
PHPCI/Command/UpdateCommand.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- * @link         https://www.phptesting.org/
8
- */
3
+     * PHPCI - Continuous Integration for PHP
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     * @link         https://www.phptesting.org/
8
+     */
9 9
 
10 10
 namespace PHPCI\Command;
11 11
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
         $output->write(Lang::get('updating_phpci'));
55 55
 
56
-        shell_exec(PHPCI_DIR . 'vendor/bin/phinx migrate -c "' . PHPCI_DIR . 'phinx.php"');
56
+        shell_exec(PHPCI_DIR.'vendor/bin/phinx migrate -c "'.PHPCI_DIR.'phinx.php"');
57 57
 
58 58
         $output->writeln('<info>'.Lang::get('ok').'</info>');
59 59
     }
Please login to merge, or discard this patch.
PHPCI/Command/RebuildCommand.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- * @link         https://www.phptesting.org/
8
- */
3
+     * PHPCI - Continuous Integration for PHP
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     * @link         https://www.phptesting.org/
8
+     */
9 9
 
10 10
 namespace PHPCI\Command;
11 11
 
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-    * Loops through running.
67
-    */
66
+     * Loops through running.
67
+     */
68 68
     protected function execute(InputInterface $input, OutputInterface $output)
69 69
     {
70 70
         $runner = new RunCommand($this->logger);
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
     }
84 84
 
85 85
     /**
86
-    * Called when log entries are made in Builder / the plugins.
87
-    * @see \PHPCI\Builder::log()
88
-    */
86
+     * Called when log entries are made in Builder / the plugins.
87
+     * @see \PHPCI\Builder::log()
88
+     */
89 89
     public function logCallback($log)
90 90
     {
91 91
         $this->output->writeln($log);
Please login to merge, or discard this patch.
PHPCI/Command/GenerateCommand.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- * @link         https://www.phptesting.org/
8
- */
3
+     * PHPCI - Continuous Integration for PHP
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     * @link         https://www.phptesting.org/
8
+     */
9 9
 
10 10
 namespace PHPCI\Command;
11 11
 
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
     }
32 32
 
33 33
     /**
34
-    * Generates Model and Store classes by reading database meta data.
35
-    */
34
+     * Generates Model and Store classes by reading database meta data.
35
+     */
36 36
     protected function execute(InputInterface $input, OutputInterface $output)
37 37
     {
38 38
         $gen = new CodeGenerator(
Please login to merge, or discard this patch.
PHPCI/Command/WorkerCommand.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP
4
- *
5
- * @copyright    Copyright 2015, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- * @link         https://www.phptesting.org/
8
- */
3
+     * PHPCI - Continuous Integration for PHP
4
+     *
5
+     * @copyright    Copyright 2015, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     * @link         https://www.phptesting.org/
8
+     */
9 9
 
10 10
 namespace PHPCI\Command;
11 11
 
Please login to merge, or discard this patch.
PHPCI/Command/PollCommand.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- * @link         https://www.phptesting.org/
8
- */
3
+     * PHPCI - Continuous Integration for PHP
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     * @link         https://www.phptesting.org/
8
+     */
9 9
 
10 10
 namespace PHPCI\Command;
11 11
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                 $build->setStatus(Build::STATUS_NEW);
90 90
                 $build->setBranch($project->getBranch());
91 91
                 $build->setCreated(new \DateTime());
92
-		$build->setCommitMessage($message);
92
+        $build->setCommitMessage($message);
93 93
                 if (!empty($last_committer)) {
94 94
                     $build->setCommitterEmail($last_committer);
95 95
                 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     protected function execute(InputInterface $input, OutputInterface $output)
52 52
     {
53 53
         $parser = new Parser();
54
-        $yaml = file_get_contents(APPLICATION_PATH . 'PHPCI/config.yml');
54
+        $yaml = file_get_contents(APPLICATION_PATH.'PHPCI/config.yml');
55 55
         $this->settings = $parser->parse($yaml);
56 56
 
57 57
         $token = $this->settings['phpci']['github']['token'];
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         foreach ($result['items'] as $project) {
72 72
             $http = new HttpClient('https://api.github.com');
73
-            $commits = $http->get('/repos/' . $project->getReference() . '/commits', array('access_token' => $token));
73
+            $commits = $http->get('/repos/'.$project->getReference().'/commits', array('access_token' => $token));
74 74
 
75 75
             $last_commit = $commits['body'][0]['sha'];
76 76
             $last_committer = $commits['body'][0]['commit']['committer']['email'];
Please login to merge, or discard this patch.
PHPCI/Command/CreateAdminCommand.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- * @link         https://www.phptesting.org/
8
- */
3
+     * PHPCI - Continuous Integration for PHP
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     * @link         https://www.phptesting.org/
8
+     */
9 9
 
10 10
 namespace PHPCI\Command;
11 11
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $dialog = $this->getHelperSet()->get('dialog');
60 60
 
61 61
         // Function to validate mail address.
62
-        $mailValidator = function ($answer) {
62
+        $mailValidator = function($answer) {
63 63
             if (!filter_var($answer, FILTER_VALIDATE_EMAIL)) {
64 64
                 throw new \InvalidArgumentException(Lang::get('must_be_valid_email'));
65 65
             }
Please login to merge, or discard this patch.
PHPCI/Command/CreateBuildCommand.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- * @link         https://www.phptesting.org/
8
- */
3
+     * PHPCI - Continuous Integration for PHP
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     * @link         https://www.phptesting.org/
8
+     */
9 9
 
10 10
 namespace PHPCI\Command;
11 11
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 
72 72
         $project = $this->projectStore->getById($projectId);
73 73
         if (empty($project)) {
74
-            throw new \InvalidArgumentException('Project does not exist: ' . $projectId);
74
+            throw new \InvalidArgumentException('Project does not exist: '.$projectId);
75 75
         }
76 76
 
77 77
         try {
Please login to merge, or discard this patch.