Test Setup Failed
Branch master (d474d9)
by Àlex
09:29
created
PHPCI/Plugin/Gulp.php 2 patches
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\Plugin;
11 11
 
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     }
70 70
 
71 71
     /**
72
-    * Executes gulp and runs a specified command (e.g. install / update)
73
-    */
72
+     * Executes gulp and runs a specified command (e.g. install / update)
73
+     */
74 74
     public function execute()
75 75
     {
76 76
         // if npm does not work, we cannot use gulp, so we return false
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         // Handle options:
54 54
         if (isset($options['directory'])) {
55
-            $this->directory = $path . DIRECTORY_SEPARATOR . $options['directory'];
55
+            $this->directory = $path.DIRECTORY_SEPARATOR.$options['directory'];
56 56
         }
57 57
 
58 58
         if (isset($options['task'])) {
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
         }
84 84
 
85 85
         // build the gulp command
86
-        $cmd = 'cd %s && ' . $this->gulp;
86
+        $cmd = 'cd %s && '.$this->gulp;
87 87
         if (IS_WIN) {
88
-            $cmd = 'cd /d %s && ' . $this->gulp;
88
+            $cmd = 'cd /d %s && '.$this->gulp;
89 89
         }
90 90
         $cmd .= ' --no-color';
91 91
         $cmd .= ' --gulpfile %s';
Please login to merge, or discard this patch.
PHPCI/Plugin/PhpDocblockChecker.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\Plugin;
11 11
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         // Build ignore string:
108 108
         $ignore = '';
109 109
         if (count($this->ignore)) {
110
-            $ignore = ' --exclude="' . implode(',', $this->ignore) . '"';
110
+            $ignore = ' --exclude="'.implode(',', $this->ignore).'"';
111 111
         }
112 112
 
113 113
         // Are we skipping any checks?
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
         }
122 122
 
123 123
         // Build command string:
124
-        $path = $this->phpci->buildPath . $this->path;
125
-        $cmd = $checker . ' --json --directory="%s"%s%s';
124
+        $path = $this->phpci->buildPath.$this->path;
125
+        $cmd = $checker.' --json --directory="%s"%s%s';
126 126
 
127 127
         // Disable exec output logging, as we don't want the XML report in the log:
128 128
         $this->phpci->logExecOutput(false);
@@ -159,11 +159,11 @@  discard block
 block discarded – undo
159 159
     protected function reportErrors($output)
160 160
     {
161 161
         foreach ($output as $error) {
162
-            $message = 'Class ' . $error['class'] . ' is missing a docblock.';
162
+            $message = 'Class '.$error['class'].' is missing a docblock.';
163 163
             $severity = PHPCI\Model\BuildError::SEVERITY_LOW;
164 164
 
165 165
             if ($error['type'] == 'method') {
166
-                $message = $error['class'] . '::' . $error['method'] . ' is missing a docblock.';
166
+                $message = $error['class'].'::'.$error['method'].' is missing a docblock.';
167 167
                 $severity = PHPCI\Model\BuildError::SEVERITY_NORMAL;
168 168
             }
169 169
 
Please login to merge, or discard this patch.
PHPCI/Plugin/CopyBuild.php 2 patches
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\Plugin;
11 11
 
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-    * Copies files from the root of the build directory into the target folder
48
-    */
47
+     * Copies files from the root of the build directory into the target folder
48
+     */
49 49
     public function execute()
50 50
     {
51 51
         $build = $this->phpci->buildPath;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
39 39
         $this->phpci     = $phpci;
40 40
         $this->build     = $build;
41 41
         $this->directory = isset($options['directory']) ? $options['directory'] : $path;
42
-        $this->wipe      = isset($options['wipe']) ?  (bool)$options['wipe'] : false;
43
-        $this->ignore    = isset($options['respect_ignore']) ?  (bool)$options['respect_ignore'] : false;
42
+        $this->wipe      = isset($options['wipe']) ? (bool)$options['wipe'] : false;
43
+        $this->ignore    = isset($options['respect_ignore']) ? (bool)$options['respect_ignore'] : false;
44 44
     }
45 45
 
46 46
     /**
Please login to merge, or discard this patch.
PHPCI/Plugin/Pgsql.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\Plugin;
11 11
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     {
81 81
         try {
82 82
             $opts = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION);
83
-            $pdo = new PDO('pgsql:host=' . $this->host, $this->user, $this->pass, $opts);
83
+            $pdo = new PDO('pgsql:host='.$this->host, $this->user, $this->pass, $opts);
84 84
 
85 85
             foreach ($this->queries as $query) {
86 86
                 $pdo->query($this->phpci->interpolate($query));
Please login to merge, or discard this patch.
PHPCI/Plugin/PhpLoc.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\Plugin;
11 11
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
         $ignore = '';
72 72
 
73 73
         if (count($this->phpci->ignore)) {
74
-            $map = function ($item) {
75
-                return ' --exclude ' . rtrim($item, DIRECTORY_SEPARATOR);
74
+            $map = function($item) {
75
+                return ' --exclude '.rtrim($item, DIRECTORY_SEPARATOR);
76 76
             };
77 77
 
78 78
             $ignore = array_map($map, $this->phpci->ignore);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $phploc = $this->phpci->findBinary('phploc');
83 83
 
84
-        $success = $this->phpci->executeCommand($phploc . ' %s "%s"', $ignore, $this->directory);
84
+        $success = $this->phpci->executeCommand($phploc.' %s "%s"', $ignore, $this->directory);
85 85
         $output  = $this->phpci->getLastOutput();
86 86
 
87 87
         if (preg_match_all('/\((LOC|CLOC|NCLOC|LLOC)\)\s+([0-9]+)/', $output, $matches)) {
Please login to merge, or discard this patch.
PHPCI/Plugin/Phar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         $content  = '';
214 214
         $filename = $this->getStub();
215 215
         if ($filename) {
216
-            $content = file_get_contents($this->getPHPCI()->buildPath . DIRECTORY_SEPARATOR . $this->getStub());
216
+            $content = file_get_contents($this->getPHPCI()->buildPath.DIRECTORY_SEPARATOR.$this->getStub());
217 217
         }
218 218
         return $content;
219 219
     }
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         $success = false;
228 228
 
229 229
         try {
230
-            $file = $this->getDirectory() . DIRECTORY_SEPARATOR . $this->getFilename();
230
+            $file = $this->getDirectory().DIRECTORY_SEPARATOR.$this->getFilename();
231 231
             $phar = new PHPPhar($file, 0, $this->getFilename());
232 232
             $phar->buildFromDirectory($this->getPHPCI()->buildPath, $this->getRegExp());
233 233
 
Please login to merge, or discard this patch.
PHPCI/Plugin/PhpSpec.php 2 patches
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\Plugin;
11 11
 
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
     }
51 51
 
52 52
     /**
53
-    * Runs PHP Spec tests.
54
-    */
53
+     * Runs PHP Spec tests.
54
+     */
55 55
     public function execute()
56 56
     {
57 57
         $curdir = getcwd();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $phpspec = $this->phpci->findBinary(array('phpspec', 'phpspec.php'));
61 61
 
62
-        $success = $this->phpci->executeCommand($phpspec . ' --format=junit --no-code-generation run');
62
+        $success = $this->phpci->executeCommand($phpspec.' --format=junit --no-code-generation run');
63 63
         $output = $this->phpci->getLastOutput();
64 64
 
65 65
         chdir($curdir);
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                     'status' => (String)$attr['status'],
116 116
                 );
117 117
 
118
-                if ($case['status']=='failed') {
118
+                if ($case['status'] == 'failed') {
119 119
                     $error = array();
120 120
                     /*
121 121
                      * ok, sad, we had an error
Please login to merge, or discard this patch.
PHPCI/Plugin/PhpParallelLint.php 2 patches
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\Plugin;
11 11
 
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
     }
71 71
 
72 72
     /**
73
-    * Executes parallel lint
74
-    */
73
+     * Executes parallel lint
74
+     */
75 75
     public function execute()
76 76
     {
77 77
         list($ignore) = $this->getFlags();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         $phplint = $this->phpci->findBinary('parallel-lint');
80 80
 
81
-        $cmd = $phplint . ' %s "%s"';
81
+        $cmd = $phplint.' %s "%s"';
82 82
         $success = $this->phpci->executeCommand(
83 83
             $cmd,
84 84
             $ignore,
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $ignoreFlags = array();
105 105
         foreach ($this->ignore as $ignoreDir) {
106
-            $ignoreFlags[] = '--exclude "' . $this->phpci->buildPath . $ignoreDir . '"';
106
+            $ignoreFlags[] = '--exclude "'.$this->phpci->buildPath.$ignoreDir.'"';
107 107
         }
108 108
         $ignore = implode(' ', $ignoreFlags);
109 109
 
Please login to merge, or discard this patch.
PHPCI/Plugin/HipchatNotify.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 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\Plugin;
11 11
 
Please login to merge, or discard this patch.