Test Setup Failed
Branch master (d474d9)
by Àlex
09:29
created
PHPCI/Plugin/Sqlite.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
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     {
68 68
         try {
69 69
             $opts = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION);
70
-            $pdo = new PDO('sqlite:' . $this->path, $opts);
70
+            $pdo = new PDO('sqlite:'.$this->path, $opts);
71 71
 
72 72
             foreach ($this->queries as $query) {
73 73
                 $pdo->query($this->phpci->interpolate($query));
Please login to merge, or discard this patch.
PHPCI/Plugin/SlackNotify.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP
4
- * @copyright    Copyright 2014, Block 8 Limited.
5
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
6
- * @link         https://www.phptesting.org/
7
- */
3
+     * PHPCI - Continuous Integration for PHP
4
+     * @copyright    Copyright 2014, Block 8 Limited.
5
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
6
+     * @link         https://www.phptesting.org/
7
+     */
8 8
 
9 9
 namespace PHPCI\Plugin;
10 10
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             }
63 63
 
64 64
             if (isset($options['show_status'])) {
65
-                $this->show_status = (bool) $options['show_status'];
65
+                $this->show_status = (bool)$options['show_status'];
66 66
             } else {
67 67
                 $this->show_status = true;
68 68
             }
Please login to merge, or discard this patch.
PHPCI/Plugin/Shell.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.
PHPCI/Plugin/FlowdockNotify.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP
4
- * @copyright    Copyright 2014, Block 8 Limited.
5
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
6
- * @link         https://www.phptesting.org/
7
- */
3
+     * PHPCI - Continuous Integration for PHP
4
+     * @copyright    Copyright 2014, Block 8 Limited.
5
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
6
+     * @link         https://www.phptesting.org/
7
+     */
8 8
 
9 9
 namespace PHPCI\Plugin;
10 10
 
Please login to merge, or discard this patch.
PHPCI/Plugin/Env.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
 
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-    * Adds the specified environment variables to the builder environment
43
-    */
42
+     * Adds the specified environment variables to the builder environment
43
+     */
44 44
     public function execute()
45 45
     {
46 46
         $success = true;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         foreach ($this->env_vars as $key => $value) {
48 48
             if (is_numeric($key)) {
49 49
                 // This allows the developer to specify env vars like " - FOO=bar" or " - FOO: bar"
50
-                $env_var = is_array($value)? key($value).'='.current($value): $value;
50
+                $env_var = is_array($value) ? key($value).'='.current($value) : $value;
51 51
             } else {
52 52
                 // This allows the standard syntax: "FOO: bar"
53 53
                 $env_var = "$key=$value";
Please login to merge, or discard this patch.
PHPCI/Plugin/Xmpp.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
 
@@ -145,8 +145,8 @@  discard block
 block discarded – undo
145 145
     }
146 146
 
147 147
     /**
148
-    * Send notification message.
149
-    */
148
+     * Send notification message.
149
+     */
150 150
     public function execute()
151 151
     {
152 152
         $sendxmpp = $this->phpci->findBinary('sendxmpp');
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function findConfigFile()
134 134
     {
135
-        if (file_exists($this->phpci->buildPath . DIRECTORY_SEPARATOR . '.sendxmpprc')) {
136
-            if (md5(file_get_contents($this->phpci->buildPath . DIRECTORY_SEPARATOR . '.sendxmpprc'))
135
+        if (file_exists($this->phpci->buildPath.DIRECTORY_SEPARATOR.'.sendxmpprc')) {
136
+            if (md5(file_get_contents($this->phpci->buildPath.DIRECTORY_SEPARATOR.'.sendxmpprc'))
137 137
                 !== md5($this->getConfigFormat())) {
138 138
                 return null;
139 139
             }
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         /*
162 162
          * Try to build conf file
163 163
          */
164
-        $config_file = $this->phpci->buildPath . DIRECTORY_SEPARATOR . '.sendxmpprc';
164
+        $config_file = $this->phpci->buildPath.DIRECTORY_SEPARATOR.'.sendxmpprc';
165 165
         if (is_null($this->findConfigFile())) {
166 166
             file_put_contents($config_file, $this->getConfigFormat());
167 167
             chmod($config_file, 0600);
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
             $tls = ' -t';
176 176
         }
177 177
 
178
-        $message_file = $this->phpci->buildPath . DIRECTORY_SEPARATOR . uniqid('xmppmessage');
178
+        $message_file = $this->phpci->buildPath.DIRECTORY_SEPARATOR.uniqid('xmppmessage');
179 179
         if ($this->buildMessage($message_file) === false) {
180 180
             return false;
181 181
         }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         /*
184 184
          * Send XMPP notification for all recipients
185 185
          */
186
-        $cmd = $sendxmpp . "%s -f %s -m %s %s";
186
+        $cmd = $sendxmpp."%s -f %s -m %s %s";
187 187
         $recipients = implode(' ', $this->recipients);
188 188
 
189 189
         $success = $this->phpci->executeCommand($cmd, $tls, $config_file, $message_file, $recipients);
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
205 205
     protected function buildMessage($message_file)
206 206
     {
207 207
         if ($this->build->isSuccessful()) {
208
-            $message = "✔ [".$this->build->getProjectTitle()."] Build #" . $this->build->getId()." successful";
208
+            $message = "✔ [".$this->build->getProjectTitle()."] Build #".$this->build->getId()." successful";
209 209
         } else {
210
-            $message = "✘ [".$this->build->getProjectTitle()."] Build #" . $this->build->getId()." failure";
210
+            $message = "✘ [".$this->build->getProjectTitle()."] Build #".$this->build->getId()." failure";
211 211
         }
212 212
 
213 213
         $message .= ' ('.strftime($this->date_format).')';
Please login to merge, or discard this patch.
PHPCI/Plugin/PackageBuild.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
 
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-    * Executes Composer and runs a specified command (e.g. install / update)
46
-    */
45
+     * Executes Composer and runs a specified command (e.g. install / update)
46
+     */
47 47
     public function execute()
48 48
     {
49 49
         $path  = $this->phpci->buildPath;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $this->phpci     = $phpci;
39 39
         $this->directory = isset($options['directory']) ? $options['directory'] : $path;
40 40
         $this->filename  = isset($options['filename']) ? $options['filename'] : 'build';
41
-        $this->format    = isset($options['format']) ?  $options['format'] : 'zip';
41
+        $this->format    = isset($options['format']) ? $options['format'] : 'zip';
42 42
     }
43 43
 
44 44
     /**
Please login to merge, or discard this patch.
PHPCI/Plugin/PhpTalLint.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   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             if (!$this->lintFile($itemPath)) {
156 156
                 $success = false;
157 157
             }
158
-        } elseif ($item->isDir() && $this->recursive && !$this->lintDirectory($itemPath . DIRECTORY_SEPARATOR)) {
158
+        } elseif ($item->isDir() && $this->recursive && !$this->lintDirectory($itemPath.DIRECTORY_SEPARATOR)) {
159 159
             $success = false;
160 160
         }
161 161
 
@@ -170,14 +170,14 @@  discard block
 block discarded – undo
170 170
     protected function lintDirectory($path)
171 171
     {
172 172
         $success = true;
173
-        $directory = new \DirectoryIterator($this->phpci->buildPath . $path);
173
+        $directory = new \DirectoryIterator($this->phpci->buildPath.$path);
174 174
 
175 175
         foreach ($directory as $item) {
176 176
             if ($item->isDot()) {
177 177
                 continue;
178 178
             }
179 179
 
180
-            $itemPath = $path . $item->getFilename();
180
+            $itemPath = $path.$item->getFilename();
181 181
 
182 182
             if (in_array($itemPath, $this->ignore)) {
183 183
                 continue;
@@ -202,12 +202,12 @@  discard block
 block discarded – undo
202 202
 
203 203
         list($suffixes, $tales) = $this->getFlags();
204 204
 
205
-        $lint  = dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR;
206
-        $lint .= 'vendor' . DIRECTORY_SEPARATOR . 'phptal' . DIRECTORY_SEPARATOR . 'phptal' . DIRECTORY_SEPARATOR;
207
-        $lint .= 'tools' . DIRECTORY_SEPARATOR . 'phptal_lint.php';
208
-        $cmd = '/usr/bin/env php ' . $lint . ' %s %s "%s"';
205
+        $lint  = dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR;
206
+        $lint .= 'vendor'.DIRECTORY_SEPARATOR.'phptal'.DIRECTORY_SEPARATOR.'phptal'.DIRECTORY_SEPARATOR;
207
+        $lint .= 'tools'.DIRECTORY_SEPARATOR.'phptal_lint.php';
208
+        $cmd = '/usr/bin/env php '.$lint.' %s %s "%s"';
209 209
 
210
-        $this->phpci->executeCommand($cmd, $suffixes, $tales, $this->phpci->buildPath . $path);
210
+        $this->phpci->executeCommand($cmd, $suffixes, $tales, $this->phpci->buildPath.$path);
211 211
 
212 212
         $output = $this->phpci->getLastOutput();
213 213
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                 $name = basename($path);
224 224
 
225 225
                 $row = str_replace('(use -i to include your custom modifier functions)', '', $row);
226
-                $message = str_replace($name . ': ', '', $row);
226
+                $message = str_replace($name.': ', '', $row);
227 227
 
228 228
                 $parts = explode(' (line ', $message);
229 229
 
@@ -252,12 +252,12 @@  discard block
 block discarded – undo
252 252
     {
253 253
         $tales = '';
254 254
         if (!empty($this->tales)) {
255
-            $tales = ' -i ' . $this->phpci->buildPath . $this->tales;
255
+            $tales = ' -i '.$this->phpci->buildPath.$this->tales;
256 256
         }
257 257
 
258 258
         $suffixes = '';
259 259
         if (count($this->suffixes)) {
260
-            $suffixes = ' -e ' . implode(',', $this->suffixes);
260
+            $suffixes = ' -e '.implode(',', $this->suffixes);
261 261
         }
262 262
 
263 263
         return array($suffixes, $tales);
Please login to merge, or discard this patch.
PHPCI/Plugin/Behat.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
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             return false;
72 72
         }
73 73
 
74
-        $success = $this->phpci->executeCommand($behat . ' %s', $this->features);
74
+        $success = $this->phpci->executeCommand($behat.' %s', $this->features);
75 75
         chdir($curdir);
76 76
 
77 77
         list($errorCount, $data) = $this->parseBehatOutput();
Please login to merge, or discard this patch.