@@ -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\Plugin; |
| 11 | 11 | |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * Executes gulp and runs a specified command (e.g. install / update) |
|
| 73 | - */ |
|
| 72 | + * Executes gulp and runs a specified command (e.g. install / update) |
|
| 73 | + */ |
|
| 74 | 74 | public function execute() |
| 75 | 75 | { |
| 76 | 76 | // if npm does not work, we cannot use gulp, so we return false |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | // Handle options: |
| 54 | 54 | if (isset($options['directory'])) { |
| 55 | - $this->directory = $path . DIRECTORY_SEPARATOR . $options['directory']; |
|
| 55 | + $this->directory = $path.DIRECTORY_SEPARATOR.$options['directory']; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | if (isset($options['task'])) { |
@@ -83,9 +83,9 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | // build the gulp command |
| 86 | - $cmd = 'cd %s && ' . $this->gulp; |
|
| 86 | + $cmd = 'cd %s && '.$this->gulp; |
|
| 87 | 87 | if (IS_WIN) { |
| 88 | - $cmd = 'cd /d %s && ' . $this->gulp; |
|
| 88 | + $cmd = 'cd /d %s && '.$this->gulp; |
|
| 89 | 89 | } |
| 90 | 90 | $cmd .= ' --no-color'; |
| 91 | 91 | $cmd .= ' --gulpfile %s'; |
@@ -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\Plugin; |
| 11 | 11 | |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | // Build ignore string: |
| 108 | 108 | $ignore = ''; |
| 109 | 109 | if (count($this->ignore)) { |
| 110 | - $ignore = ' --exclude="' . implode(',', $this->ignore) . '"'; |
|
| 110 | + $ignore = ' --exclude="'.implode(',', $this->ignore).'"'; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | // Are we skipping any checks? |
@@ -121,8 +121,8 @@ discard block |
||
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | // Build command string: |
| 124 | - $path = $this->phpci->buildPath . $this->path; |
|
| 125 | - $cmd = $checker . ' --json --directory="%s"%s%s'; |
|
| 124 | + $path = $this->phpci->buildPath.$this->path; |
|
| 125 | + $cmd = $checker.' --json --directory="%s"%s%s'; |
|
| 126 | 126 | |
| 127 | 127 | // Disable exec output logging, as we don't want the XML report in the log: |
| 128 | 128 | $this->phpci->logExecOutput(false); |
@@ -159,11 +159,11 @@ discard block |
||
| 159 | 159 | protected function reportErrors($output) |
| 160 | 160 | { |
| 161 | 161 | foreach ($output as $error) { |
| 162 | - $message = 'Class ' . $error['class'] . ' is missing a docblock.'; |
|
| 162 | + $message = 'Class '.$error['class'].' is missing a docblock.'; |
|
| 163 | 163 | $severity = PHPCI\Model\BuildError::SEVERITY_LOW; |
| 164 | 164 | |
| 165 | 165 | if ($error['type'] == 'method') { |
| 166 | - $message = $error['class'] . '::' . $error['method'] . ' is missing a docblock.'; |
|
| 166 | + $message = $error['class'].'::'.$error['method'].' is missing a docblock.'; |
|
| 167 | 167 | $severity = PHPCI\Model\BuildError::SEVERITY_NORMAL; |
| 168 | 168 | } |
| 169 | 169 | |
@@ -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\Plugin; |
| 11 | 11 | |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * Copies files from the root of the build directory into the target folder |
|
| 48 | - */ |
|
| 47 | + * Copies files from the root of the build directory into the target folder |
|
| 48 | + */ |
|
| 49 | 49 | public function execute() |
| 50 | 50 | { |
| 51 | 51 | $build = $this->phpci->buildPath; |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | $this->phpci = $phpci; |
| 40 | 40 | $this->build = $build; |
| 41 | 41 | $this->directory = isset($options['directory']) ? $options['directory'] : $path; |
| 42 | - $this->wipe = isset($options['wipe']) ? (bool)$options['wipe'] : false; |
|
| 43 | - $this->ignore = isset($options['respect_ignore']) ? (bool)$options['respect_ignore'] : false; |
|
| 42 | + $this->wipe = isset($options['wipe']) ? (bool)$options['wipe'] : false; |
|
| 43 | + $this->ignore = isset($options['respect_ignore']) ? (bool)$options['respect_ignore'] : false; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -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\Plugin; |
| 11 | 11 | |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | { |
| 81 | 81 | try { |
| 82 | 82 | $opts = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION); |
| 83 | - $pdo = new PDO('pgsql:host=' . $this->host, $this->user, $this->pass, $opts); |
|
| 83 | + $pdo = new PDO('pgsql:host='.$this->host, $this->user, $this->pass, $opts); |
|
| 84 | 84 | |
| 85 | 85 | foreach ($this->queries as $query) { |
| 86 | 86 | $pdo->query($this->phpci->interpolate($query)); |
@@ -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\Plugin; |
| 11 | 11 | |
@@ -71,8 +71,8 @@ discard block |
||
| 71 | 71 | $ignore = ''; |
| 72 | 72 | |
| 73 | 73 | if (count($this->phpci->ignore)) { |
| 74 | - $map = function ($item) { |
|
| 75 | - return ' --exclude ' . rtrim($item, DIRECTORY_SEPARATOR); |
|
| 74 | + $map = function($item) { |
|
| 75 | + return ' --exclude '.rtrim($item, DIRECTORY_SEPARATOR); |
|
| 76 | 76 | }; |
| 77 | 77 | |
| 78 | 78 | $ignore = array_map($map, $this->phpci->ignore); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | $phploc = $this->phpci->findBinary('phploc'); |
| 83 | 83 | |
| 84 | - $success = $this->phpci->executeCommand($phploc . ' %s "%s"', $ignore, $this->directory); |
|
| 84 | + $success = $this->phpci->executeCommand($phploc.' %s "%s"', $ignore, $this->directory); |
|
| 85 | 85 | $output = $this->phpci->getLastOutput(); |
| 86 | 86 | |
| 87 | 87 | if (preg_match_all('/\((LOC|CLOC|NCLOC|LLOC)\)\s+([0-9]+)/', $output, $matches)) { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | $content = ''; |
| 214 | 214 | $filename = $this->getStub(); |
| 215 | 215 | if ($filename) { |
| 216 | - $content = file_get_contents($this->getPHPCI()->buildPath . DIRECTORY_SEPARATOR . $this->getStub()); |
|
| 216 | + $content = file_get_contents($this->getPHPCI()->buildPath.DIRECTORY_SEPARATOR.$this->getStub()); |
|
| 217 | 217 | } |
| 218 | 218 | return $content; |
| 219 | 219 | } |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | $success = false; |
| 228 | 228 | |
| 229 | 229 | try { |
| 230 | - $file = $this->getDirectory() . DIRECTORY_SEPARATOR . $this->getFilename(); |
|
| 230 | + $file = $this->getDirectory().DIRECTORY_SEPARATOR.$this->getFilename(); |
|
| 231 | 231 | $phar = new PHPPhar($file, 0, $this->getFilename()); |
| 232 | 232 | $phar->buildFromDirectory($this->getPHPCI()->buildPath, $this->getRegExp()); |
| 233 | 233 | |
@@ -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\Plugin; |
| 11 | 11 | |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * Runs PHP Spec tests. |
|
| 54 | - */ |
|
| 53 | + * Runs PHP Spec tests. |
|
| 54 | + */ |
|
| 55 | 55 | public function execute() |
| 56 | 56 | { |
| 57 | 57 | $curdir = getcwd(); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | $phpspec = $this->phpci->findBinary(array('phpspec', 'phpspec.php')); |
| 61 | 61 | |
| 62 | - $success = $this->phpci->executeCommand($phpspec . ' --format=junit --no-code-generation run'); |
|
| 62 | + $success = $this->phpci->executeCommand($phpspec.' --format=junit --no-code-generation run'); |
|
| 63 | 63 | $output = $this->phpci->getLastOutput(); |
| 64 | 64 | |
| 65 | 65 | chdir($curdir); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | 'status' => (String)$attr['status'], |
| 116 | 116 | ); |
| 117 | 117 | |
| 118 | - if ($case['status']=='failed') { |
|
| 118 | + if ($case['status'] == 'failed') { |
|
| 119 | 119 | $error = array(); |
| 120 | 120 | /* |
| 121 | 121 | * ok, sad, we had an error |
@@ -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\Plugin; |
| 11 | 11 | |
@@ -70,8 +70,8 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | - * Executes parallel lint |
|
| 74 | - */ |
|
| 73 | + * Executes parallel lint |
|
| 74 | + */ |
|
| 75 | 75 | public function execute() |
| 76 | 76 | { |
| 77 | 77 | list($ignore) = $this->getFlags(); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | $phplint = $this->phpci->findBinary('parallel-lint'); |
| 80 | 80 | |
| 81 | - $cmd = $phplint . ' %s "%s"'; |
|
| 81 | + $cmd = $phplint.' %s "%s"'; |
|
| 82 | 82 | $success = $this->phpci->executeCommand( |
| 83 | 83 | $cmd, |
| 84 | 84 | $ignore, |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | { |
| 104 | 104 | $ignoreFlags = array(); |
| 105 | 105 | foreach ($this->ignore as $ignoreDir) { |
| 106 | - $ignoreFlags[] = '--exclude "' . $this->phpci->buildPath . $ignoreDir . '"'; |
|
| 106 | + $ignoreFlags[] = '--exclude "'.$this->phpci->buildPath.$ignoreDir.'"'; |
|
| 107 | 107 | } |
| 108 | 108 | $ignore = implode(' ', $ignoreFlags); |
| 109 | 109 | |
@@ -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\Plugin; |
| 11 | 11 | |