Test Setup Failed
Push — develop ( 4d8ae2...dad829 )
by Àlex
07:22
created
PHPCI/Plugin/Grunt.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 grunt and runs a specified command (e.g. install / update)
73
-    */
72
+     * Executes grunt 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 grunt, 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 grunt command
86
-        $cmd = 'cd %s && ' . $this->grunt;
86
+        $cmd = 'cd %s && '.$this->grunt;
87 87
         if (IS_WIN) {
88
-            $cmd = 'cd /d %s && ' . $this->grunt;
88
+            $cmd = 'cd /d %s && '.$this->grunt;
89 89
         }
90 90
         $cmd .= ' --no-color';
91 91
         $cmd .= ' --gruntfile %s';
Please login to merge, or discard this patch.
PHPCI/Plugin/CleanBuild.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@
 block discarded – undo
53 53
         if (IS_WIN) {
54 54
             $cmd = 'rmdir /S /Q "%s"';
55 55
         }
56
-        $this->phpci->executeCommand($cmd, $this->phpci->buildPath . 'composer.phar');
57
-        $this->phpci->executeCommand($cmd, $this->phpci->buildPath . 'composer.lock');
56
+        $this->phpci->executeCommand($cmd, $this->phpci->buildPath.'composer.phar');
57
+        $this->phpci->executeCommand($cmd, $this->phpci->buildPath.'composer.lock');
58 58
 
59 59
         $success = true;
60 60
 
61 61
         foreach ($this->remove as $file) {
62
-            $ok = $this->phpci->executeCommand($cmd, $this->phpci->buildPath . $file);
62
+            $ok = $this->phpci->executeCommand($cmd, $this->phpci->buildPath.$file);
63 63
 
64 64
             if (!$ok) {
65 65
                 $success = false;
Please login to merge, or discard this 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\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.
PHPCI/Plugin/Util/TestResultParsers/Codeception.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -44,22 +44,22 @@  discard block
 block discarded – undo
44 44
 
45 45
         // calculate total results
46 46
         foreach ($this->results->testsuite as $testsuite) {
47
-            $this->totalTests += (int) $testsuite['tests'];
48
-            $this->totalTimeTaken += (float) $testsuite['time'];
49
-            $this->totalFailures += (int) $testsuite['failures'];
47
+            $this->totalTests += (int)$testsuite['tests'];
48
+            $this->totalTimeTaken += (float)$testsuite['time'];
49
+            $this->totalFailures += (int)$testsuite['failures'];
50 50
 
51 51
             foreach ($testsuite->testcase as $testcase) {
52 52
                 $testresult = array(
53
-                    'suite' => (string) $testsuite['name'],
54
-                    'file' => str_replace($this->phpci->buildPath, '/', (string) $testcase['file']),
55
-                    'name' => (string) $testcase['name'],
56
-                    'feature' => (string) $testcase['feature'],
57
-                    'assertions' => (int) $testcase['assertions'],
58
-                    'time' => (float) $testcase['time']
53
+                    'suite' => (string)$testsuite['name'],
54
+                    'file' => str_replace($this->phpci->buildPath, '/', (string)$testcase['file']),
55
+                    'name' => (string)$testcase['name'],
56
+                    'feature' => (string)$testcase['feature'],
57
+                    'assertions' => (int)$testcase['assertions'],
58
+                    'time' => (float)$testcase['time']
59 59
                 );
60 60
 
61 61
                 if (isset($testcase['class'])) {
62
-                    $testresult['class'] = (string) $testcase['class'];
62
+                    $testresult['class'] = (string)$testcase['class'];
63 63
                 }
64 64
 
65 65
                 // PHPUnit testcases does not have feature field. Use class::method instead
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
                 if (isset($testcase->failure)) {
71 71
                     $testresult['pass'] = false;
72
-                    $testresult['message'] = (string) $testcase->failure;
72
+                    $testresult['message'] = (string)$testcase->failure;
73 73
                 } else {
74 74
                     $testresult['pass'] = true;
75 75
                 }
Please login to merge, or discard this patch.
PHPCI/Plugin/Util/TapParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             $diagnostic = $this->processYamlBlock($matches[1]);
157 157
             $test       = array_pop($this->results);
158 158
             if (isset($test['message'], $diagnostic['message'])) {
159
-                $test['message'] .= PHP_EOL . $diagnostic['message'];
159
+                $test['message'] .= PHP_EOL.$diagnostic['message'];
160 160
                 unset($diagnostic['message']);
161 161
             }
162 162
             $this->results[] = array_replace($test, $diagnostic);
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     protected function processYamlBlock($indent)
237 237
     {
238 238
         $startLine = $this->lineNumber + 1;
239
-        $endLine   = $indent . '...';
239
+        $endLine   = $indent.'...';
240 240
         $yamlLines = array();
241 241
 
242 242
         do {
Please login to merge, or discard this patch.
PHPCI/Plugin/Util/ComposerPluginInformation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function getPluginClasses()
66 66
     {
67 67
         return array_map(
68
-            function (Plugin $plugin) {
68
+            function(Plugin $plugin) {
69 69
                 return $plugin->class;
70 70
             },
71 71
             $this->getInstalledPlugins()
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     ) {
141 141
         $newPlugin = clone $plugin;
142 142
 
143
-        $newPlugin->class = $rootNamespace . $newPlugin->class;
143
+        $newPlugin->class = $rootNamespace.$newPlugin->class;
144 144
 
145 145
         if (!isset($newPlugin->name)) {
146 146
             $newPlugin->name = "";
Please login to merge, or discard this patch.
PHPCI/Plugin/Atoum.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $this->build = $build;
36 36
 
37 37
         if (isset($options['executable'])) {
38
-            $this->executable = $this->phpci->buildPath . DIRECTORY_SEPARATOR.$options['executable'];
38
+            $this->executable = $this->phpci->buildPath.DIRECTORY_SEPARATOR.$options['executable'];
39 39
         } else {
40 40
             $this->executable = $this->phpci->findBinary('atoum');
41 41
         }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $cmd .= " -c '{$this->config}'";
69 69
         }
70 70
         if ($this->directory !== null) {
71
-            $dirPath = $this->phpci->buildPath . DIRECTORY_SEPARATOR . $this->directory;
71
+            $dirPath = $this->phpci->buildPath.DIRECTORY_SEPARATOR.$this->directory;
72 72
             $cmd .= " -d '{$dirPath}'";
73 73
         }
74 74
         chdir($this->phpci->buildPath);
Please login to merge, or discard this 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\Service;
11 11
 
Please login to merge, or discard this patch.
PHPCI/Plugin/Wipe.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\Plugin;
11 11
 
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-    * Wipes a directory's contents
51
-    */
50
+     * Wipes a directory's contents
51
+     */
52 52
     public function execute()
53 53
     {
54 54
         $build = $this->phpci->buildPath;
Please login to merge, or discard this patch.
PHPCI/Plugin/Sqlite.php 2 patches
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.
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\Service;
11 11
 
Please login to merge, or discard this patch.
PHPCI/Plugin/SlackNotify.php 2 patches
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.
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.