@@ -1,11 +1,11 @@ |
||
| 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 | |
@@ -1,11 +1,11 @@ |
||
| 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 | |
@@ -69,7 +69,7 @@ |
||
| 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( |
@@ -1,11 +1,11 @@ discard block |
||
| 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 |
||
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - /** |
|
| 70 | + /** |
|
| 71 | 71 | * Add a success-coloured message to the log. |
| 72 | 72 | * @param string |
| 73 | 73 | */ |
@@ -73,7 +73,7 @@ discard block |
||
| 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 |
||
| 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 | ); |
@@ -1,11 +1,11 @@ |
||
| 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 | |
@@ -1,11 +1,11 @@ |
||
| 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 | |
@@ -1,11 +1,11 @@ |
||
| 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 | |
@@ -52,7 +52,7 @@ |
||
| 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); |
@@ -1,11 +1,11 @@ |
||
| 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 | |
@@ -46,7 +46,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |
@@ -1,11 +1,11 @@ |
||
| 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 | |
@@ -35,7 +35,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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); |
@@ -44,7 +44,7 @@ |
||
| 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); |