@@ -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 | |
@@ -61,8 +61,8 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * Loops through running. |
|
| 65 | - */ |
|
| 64 | + * Loops through running. |
|
| 65 | + */ |
|
| 66 | 66 | protected function execute(InputInterface $input, OutputInterface $output) |
| 67 | 67 | { |
| 68 | 68 | $cmd = "echo %s > '%s/daemon/daemon.pid'"; |
@@ -100,9 +100,9 @@ discard block |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | - * Called when log entries are made in Builder / the plugins. |
|
| 104 | - * @see \PHPCI\Builder::log() |
|
| 105 | - */ |
|
| 103 | + * Called when log entries are made in Builder / the plugins. |
|
| 104 | + * @see \PHPCI\Builder::log() |
|
| 105 | + */ |
|
| 106 | 106 | public function logCallback($log) |
| 107 | 107 | { |
| 108 | 108 | $this->output->writeln($log); |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | try { |
| 86 | 86 | $buildCount = $runner->run($emptyInput, $output); |
| 87 | 87 | } catch (\Exception $e) { |
| 88 | - $output->writeln('<error>Exception: ' . $e->getMessage() . '</error>'); |
|
| 89 | - $output->writeln('<error>Line: ' . $e->getLine() . ' - File: ' . $e->getFile() . '</error>'); |
|
| 88 | + $output->writeln('<error>Exception: '.$e->getMessage().'</error>'); |
|
| 89 | + $output->writeln('<error>Line: '.$e->getLine().' - File: '.$e->getFile().'</error>'); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | if (0 == $buildCount && $this->sleep < 15) { |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | } elseif (1 < $this->sleep) { |
| 95 | 95 | $this->sleep--; |
| 96 | 96 | } |
| 97 | - echo '.'.(0 === $buildCount?'':'build'); |
|
| 97 | + echo '.'.(0 === $buildCount ? '' : 'build'); |
|
| 98 | 98 | sleep($this->sleep); |
| 99 | 99 | } |
| 100 | 100 | } |
@@ -192,7 +192,7 @@ |
||
| 192 | 192 | |
| 193 | 193 | $pid = intval(trim(file_get_contents($this->pidFilePath))); |
| 194 | 194 | |
| 195 | - if($this->processControl->isRunning($pid, true)) { |
|
| 195 | + if ($this->processControl->isRunning($pid, true)) { |
|
| 196 | 196 | return $pid; |
| 197 | 197 | } |
| 198 | 198 | |
@@ -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\Command; |
| 11 | 11 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | $output->write(Lang::get('updating_phpci')); |
| 55 | 55 | |
| 56 | - shell_exec(PHPCI_DIR . 'vendor/bin/phinx migrate -c "' . PHPCI_DIR . 'phinx.php"'); |
|
| 56 | + shell_exec(PHPCI_DIR.'vendor/bin/phinx migrate -c "'.PHPCI_DIR.'phinx.php"'); |
|
| 57 | 57 | |
| 58 | 58 | $output->writeln('<info>'.Lang::get('ok').'</info>'); |
| 59 | 59 | } |
@@ -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 | |
@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * Loops through running. |
|
| 67 | - */ |
|
| 66 | + * Loops through running. |
|
| 67 | + */ |
|
| 68 | 68 | protected function execute(InputInterface $input, OutputInterface $output) |
| 69 | 69 | { |
| 70 | 70 | $runner = new RunCommand($this->logger); |
@@ -83,9 +83,9 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | - * Called when log entries are made in Builder / the plugins. |
|
| 87 | - * @see \PHPCI\Builder::log() |
|
| 88 | - */ |
|
| 86 | + * Called when log entries are made in Builder / the plugins. |
|
| 87 | + * @see \PHPCI\Builder::log() |
|
| 88 | + */ |
|
| 89 | 89 | public function logCallback($log) |
| 90 | 90 | { |
| 91 | 91 | $this->output->writeln($log); |
@@ -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']; |
@@ -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\Command; |
| 11 | 11 | |
@@ -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\Command; |
| 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 { |