@@ -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\Service; |
| 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\Service; |
| 11 | 11 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | if ($stmt->execute()) { |
| 39 | 39 | $res = $stmt->fetchAll(\PDO::FETCH_ASSOC); |
| 40 | 40 | |
| 41 | - $map = function ($item) { |
|
| 41 | + $map = function($item) { |
|
| 42 | 42 | return new BuildMeta($item); |
| 43 | 43 | }; |
| 44 | 44 | $rtn = array_map($map, $res); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | public function getById($value, $useConnection = 'read') |
| 36 | 36 | { |
| 37 | 37 | if (is_null($value)) { |
| 38 | - throw new HttpException('Value passed to ' . __FUNCTION__ . ' cannot be null.'); |
|
| 38 | + throw new HttpException('Value passed to '.__FUNCTION__.' cannot be null.'); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | $query = 'SELECT * FROM `project` WHERE `id` = :id LIMIT 1'; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | public function getByTitle($value, $limit = 1000, $useConnection = 'read') |
| 59 | 59 | { |
| 60 | 60 | if (is_null($value)) { |
| 61 | - throw new HttpException('Value passed to ' . __FUNCTION__ . ' cannot be null.'); |
|
| 61 | + throw new HttpException('Value passed to '.__FUNCTION__.' cannot be null.'); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | if ($stmt->execute()) { |
| 71 | 71 | $res = $stmt->fetchAll(\PDO::FETCH_ASSOC); |
| 72 | 72 | |
| 73 | - $map = function ($item) { |
|
| 73 | + $map = function($item) { |
|
| 74 | 74 | return new Project($item); |
| 75 | 75 | }; |
| 76 | 76 | $rtn = array_map($map, $res); |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | public function getByGroupId($value, $limit = 1000, $useConnection = 'read') |
| 91 | 91 | { |
| 92 | 92 | if (is_null($value)) { |
| 93 | - throw new HttpException('Value passed to ' . __FUNCTION__ . ' cannot be null.'); |
|
| 93 | + throw new HttpException('Value passed to '.__FUNCTION__.' cannot be null.'); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | if ($stmt->execute()) { |
| 103 | 103 | $res = $stmt->fetchAll(\PDO::FETCH_ASSOC); |
| 104 | 104 | |
| 105 | - $map = function ($item) { |
|
| 105 | + $map = function($item) { |
|
| 106 | 106 | return new Project($item); |
| 107 | 107 | }; |
| 108 | 108 | $rtn = array_map($map, $res); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | public function getById($value, $useConnection = 'read') |
| 36 | 36 | { |
| 37 | 37 | if (is_null($value)) { |
| 38 | - throw new HttpException('Value passed to ' . __FUNCTION__ . ' cannot be null.'); |
|
| 38 | + throw new HttpException('Value passed to '.__FUNCTION__.' cannot be null.'); |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | $query = 'SELECT * FROM `project` WHERE `id` = :id LIMIT 1'; |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | public function getByTitle($value, $limit = 1000, $useConnection = 'read') |
| 59 | 59 | { |
| 60 | 60 | if (is_null($value)) { |
| 61 | - throw new HttpException('Value passed to ' . __FUNCTION__ . ' cannot be null.'); |
|
| 61 | + throw new HttpException('Value passed to '.__FUNCTION__.' cannot be null.'); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | if ($stmt->execute()) { |
| 71 | 71 | $res = $stmt->fetchAll(\PDO::FETCH_ASSOC); |
| 72 | 72 | |
| 73 | - $map = function ($item) { |
|
| 73 | + $map = function($item) { |
|
| 74 | 74 | return new Project($item); |
| 75 | 75 | }; |
| 76 | 76 | $rtn = array_map($map, $res); |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | public function getByGroupId($value, $limit = 1000, $useConnection = 'read') |
| 91 | 91 | { |
| 92 | 92 | if (is_null($value)) { |
| 93 | - throw new HttpException('Value passed to ' . __FUNCTION__ . ' cannot be null.'); |
|
| 93 | + throw new HttpException('Value passed to '.__FUNCTION__.' cannot be null.'); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | if ($stmt->execute()) { |
| 103 | 103 | $res = $stmt->fetchAll(\PDO::FETCH_ASSOC); |
| 104 | 104 | |
| 105 | - $map = function ($item) { |
|
| 105 | + $map = function($item) { |
|
| 106 | 106 | return new Project($item); |
| 107 | 107 | }; |
| 108 | 108 | $rtn = array_map($map, $res); |
@@ -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\Service; |
| 11 | 11 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2015, 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 2015, 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\Command; |
| 11 | 11 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2015, 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 2015, 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\Command; |
| 11 | 11 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPCI - Continuous Integration for PHP |
|
| 4 | - * |
|
| 5 | - * @copyright Copyright 2015, 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 2015, 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\Command; |
| 11 | 11 | |