Test Setup Failed
Branch master (d474d9)
by Àlex
09:29
created
PHPCI/Logging/LoggedBuildContextTidier.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\Logging;
11 11
 
Please login to merge, or discard this patch.
PHPCI/Logging/Handler.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\Logging;
11 11
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      */
70 70
     public function handleError($level, $message, $file, $line)
71 71
     {
72
-        if (error_reporting() & $level) {
72
+        if (error_reporting()&$level) {
73 73
             $exception_level = isset($this->levels[$level]) ? $this->levels[$level] : $level;
74 74
 
75 75
             throw new \ErrorException(
Please login to merge, or discard this patch.
PHPCI/Logging/BuildLogger.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\Logging;
11 11
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         }
68 68
     }
69 69
 
70
-   /**
70
+    /**
71 71
      * Add a success-coloured message to the log.
72 72
      * @param string
73 73
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function logSuccess($message)
75 75
     {
76
-        $this->log("\033[0;32m" . $message . "\033[0m");
76
+        $this->log("\033[0;32m".$message."\033[0m");
77 77
     }
78 78
 
79 79
     /**
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         }
93 93
 
94 94
         $this->log(
95
-            "\033[0;31m" . $message . "\033[0m",
95
+            "\033[0;31m".$message."\033[0m",
96 96
             LogLevel::ERROR,
97 97
             $context
98 98
         );
Please login to merge, or discard this patch.
PHPCI/Logging/OutputLogHandler.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\Logging;
11 11
 
Please login to merge, or discard this patch.
PHPCI/Logging/LoggerConfig.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\Logging;
11 11
 
Please login to merge, or discard this patch.
PHPCI/Logging/BuildDBLogHandler.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\Logging;
11 11
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         $message = (string)$record['message'];
53 53
         $message = str_replace($this->build->currentBuildPath, '/', $message);
54 54
 
55
-        $this->logValue .= $message . PHP_EOL;
55
+        $this->logValue .= $message.PHP_EOL;
56 56
         $this->build->setLog($this->logValue);
57 57
 
58 58
         Factory::getStore('Build')->save($this->build);
Please login to merge, or discard this patch.
PHPCI/Store/BuildStore.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\Store;
11 11
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         if ($stmt->execute()) {
47 47
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
48 48
 
49
-            $map = function ($item) {
49
+            $map = function($item) {
50 50
                 return new \PHPCI\Model\Build($item);
51 51
             };
52 52
             $rtn = array_map($map, $res);
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         if ($stmt->execute()) {
96 96
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
97 97
 
98
-            $map = function ($item) {
98
+            $map = function($item) {
99 99
                 return new Build($item);
100 100
             };
101 101
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             $rtn = $stmt->fetchAll(\PDO::FETCH_ASSOC);
174 174
 
175 175
             $rtn = array_reverse($rtn);
176
-            $rtn = array_map(function ($item) {
176
+            $rtn = array_map(function($item) {
177 177
                 $item['meta_value'] = json_decode($item['meta_value'], true);
178 178
                 return $item;
179 179
             }, $rtn);
Please login to merge, or discard this patch.
PHPCI/Store/ProjectStore.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\Store;
11 11
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         if ($stmt->execute()) {
36 36
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
37 37
 
38
-            $map = function ($item) {
38
+            $map = function($item) {
39 39
                 return $item['branch'];
40 40
             };
41 41
             $rtn = array_map($map, $res);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         if ($stmt->execute()) {
59 59
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
60 60
 
61
-            $map = function ($item) {
61
+            $map = function($item) {
62 62
                 return new Project($item);
63 63
             };
64 64
             $rtn = array_map($map, $res);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     public function getByGroupId($value, $limit = 1000, $useConnection = 'read')
84 84
     {
85 85
         if (is_null($value)) {
86
-            throw new \Exception('Value passed to ' . __FUNCTION__ . ' cannot be null.');
86
+            throw new \Exception('Value passed to '.__FUNCTION__.' cannot be null.');
87 87
         }
88 88
 
89 89
         $query = 'SELECT * FROM `project` WHERE `group_id` = :group_id ORDER BY title LIMIT :limit';
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         if ($stmt->execute()) {
95 95
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
96 96
 
97
-            $map = function ($item) {
97
+            $map = function($item) {
98 98
                 return new Project($item);
99 99
             };
100 100
             $rtn = array_map($map, $res);
Please login to merge, or discard this patch.
PHPCI/Store/BuildErrorStore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         if ($stmt->execute()) {
45 45
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
46 46
 
47
-            $map = function ($item) {
47
+            $map = function($item) {
48 48
                 return new BuildError($item);
49 49
             };
50 50
             $rtn = array_map($map, $res);
Please login to merge, or discard this patch.