@@ -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\Command; |
| 11 | 11 | |
@@ -31,8 +31,8 @@ discard block |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * Generates Model and Store classes by reading database meta data. |
|
| 35 | - */ |
|
| 34 | + * Generates Model and Store classes by reading database meta data. |
|
| 35 | + */ |
|
| 36 | 36 | protected function execute(InputInterface $input, OutputInterface $output) |
| 37 | 37 | { |
| 38 | 38 | $gen = new CodeGenerator( |
@@ -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 @@ 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\Command; |
| 11 | 11 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $build->setStatus(Build::STATUS_NEW); |
| 90 | 90 | $build->setBranch($project->getBranch()); |
| 91 | 91 | $build->setCreated(new \DateTime()); |
| 92 | - $build->setCommitMessage($message); |
|
| 92 | + $build->setCommitMessage($message); |
|
| 93 | 93 | if (!empty($last_committer)) { |
| 94 | 94 | $build->setCommitterEmail($last_committer); |
| 95 | 95 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | protected function execute(InputInterface $input, OutputInterface $output) |
| 52 | 52 | { |
| 53 | 53 | $parser = new Parser(); |
| 54 | - $yaml = file_get_contents(APPLICATION_PATH . 'PHPCI/config.yml'); |
|
| 54 | + $yaml = file_get_contents(APPLICATION_PATH.'PHPCI/config.yml'); |
|
| 55 | 55 | $this->settings = $parser->parse($yaml); |
| 56 | 56 | |
| 57 | 57 | $token = $this->settings['phpci']['github']['token']; |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | foreach ($result['items'] as $project) { |
| 72 | 72 | $http = new HttpClient('https://api.github.com'); |
| 73 | - $commits = $http->get('/repos/' . $project->getReference() . '/commits', array('access_token' => $token)); |
|
| 73 | + $commits = $http->get('/repos/'.$project->getReference().'/commits', array('access_token' => $token)); |
|
| 74 | 74 | |
| 75 | 75 | $last_commit = $commits['body'][0]['sha']; |
| 76 | 76 | $last_committer = $commits['body'][0]['commit']['committer']['email']; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $dialog = $this->getHelperSet()->get('dialog'); |
| 60 | 60 | |
| 61 | 61 | // Function to validate mail address. |
| 62 | - $mailValidator = function ($answer) { |
|
| 62 | + $mailValidator = function($answer) { |
|
| 63 | 63 | if (!filter_var($answer, FILTER_VALIDATE_EMAIL)) { |
| 64 | 64 | throw new \InvalidArgumentException(Lang::get('must_be_valid_email')); |
| 65 | 65 | } |
@@ -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 | |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | |
| 72 | 72 | $project = $this->projectStore->getById($projectId); |
| 73 | 73 | if (empty($project)) { |
| 74 | - throw new \InvalidArgumentException('Project does not exist: ' . $projectId); |
|
| 74 | + throw new \InvalidArgumentException('Project does not exist: '.$projectId); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | try { |
@@ -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 @@ 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\Service; |
| 11 | 11 | |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | */ |
| 200 | 200 | public function getBuildUrl() |
| 201 | 201 | { |
| 202 | - return $this->url . 'build/view/' . $this->build->getId(); |
|
| 202 | + return $this->url . 'build/view/' . $this->build->getId(); |
|
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | /** |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | public function getName() |
| 120 | 120 | { |
| 121 | - return $this->project->getTitle() . ' / ' . $this->branch; |
|
| 121 | + return $this->project->getTitle().' / '.$this->branch; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | /** |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | */ |
| 200 | 200 | public function getBuildUrl() |
| 201 | 201 | { |
| 202 | - return $this->url . 'build/view/' . $this->build->getId(); |
|
| 202 | + return $this->url.'build/view/'.$this->build->getId(); |
|
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | /** |
@@ -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 | |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | * @see ProjectService::createProject() |
| 116 | 116 | * @param Project $project |
| 117 | 117 | */ |
| 118 | - protected function processAccessInformation(Project &$project) |
|
| 118 | + protected function processAccessInformation(Project&$project) |
|
| 119 | 119 | { |
| 120 | 120 | $matches = array(); |
| 121 | 121 | $reference = $project->getReference(); |
@@ -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 | |