@@ -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\Helper; |
| 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\Helper; |
| 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\Helper; |
| 11 | 11 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | unset($method, $params); |
| 31 | 31 | |
| 32 | 32 | $config = Config::getInstance(); |
| 33 | - $state = (bool) $config->get('phpci.authentication_settings.state', false); |
|
| 33 | + $state = (bool)$config->get('phpci.authentication_settings.state', false); |
|
| 34 | 34 | |
| 35 | 35 | return (false !== $state); |
| 36 | 36 | } |
@@ -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\Helper; |
| 11 | 11 | |
@@ -121,17 +121,17 @@ |
||
| 121 | 121 | $headers = ''; |
| 122 | 122 | |
| 123 | 123 | if ($this->isHtml) { |
| 124 | - $headers = 'Content-Type: text/html' . PHP_EOL; |
|
| 124 | + $headers = 'Content-Type: text/html'.PHP_EOL; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | - $headers .= 'From: ' . $this->getFrom() . PHP_EOL; |
|
| 127 | + $headers .= 'From: '.$this->getFrom().PHP_EOL; |
|
| 128 | 128 | |
| 129 | 129 | $emailTo = array(); |
| 130 | 130 | foreach ($this->emailTo as $email => $name) { |
| 131 | 131 | $thisTo = $email; |
| 132 | 132 | |
| 133 | 133 | if (!is_null($name)) { |
| 134 | - $thisTo = '"' . $name . '" <' . $thisTo . '>'; |
|
| 134 | + $thisTo = '"'.$name.'" <'.$thisTo.'>'; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | $emailTo[] = $thisTo; |
@@ -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\Helper; |
| 11 | 11 | |
@@ -78,14 +78,14 @@ discard block |
||
| 78 | 78 | $command = call_user_func_array('sprintf', $args); |
| 79 | 79 | |
| 80 | 80 | if ($this->quiet) { |
| 81 | - $this->logger->log('Executing: ' . $command); |
|
| 81 | + $this->logger->log('Executing: '.$command); |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | $status = 0; |
| 85 | 85 | $descriptorSpec = array( |
| 86 | - 0 => array("pipe", "r"), // stdin |
|
| 87 | - 1 => array("pipe", "w"), // stdout |
|
| 88 | - 2 => array("pipe", "w"), // stderr |
|
| 86 | + 0 => array("pipe", "r"), // stdin |
|
| 87 | + 1 => array("pipe", "w"), // stdout |
|
| 88 | + 2 => array("pipe", "w"), // stderr |
|
| 89 | 89 | ); |
| 90 | 90 | |
| 91 | 91 | $pipes = array(); |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | if (!empty($this->lastError)) { |
| 116 | - $this->logger->log("\033[0;31m" . $this->lastError . "\033[0m", LogLevel::ERROR); |
|
| 116 | + $this->logger->log("\033[0;31m".$this->lastError."\033[0m", LogLevel::ERROR); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | $rtn = false; |
@@ -160,17 +160,17 @@ discard block |
||
| 160 | 160 | |
| 161 | 161 | if (is_dir($composerBin) && is_file($composerBin.'/'.$bin)) { |
| 162 | 162 | $this->logger->log(Lang::get('found_in_path', $composerBin, $bin), LogLevel::DEBUG); |
| 163 | - return $composerBin . '/' . $bin; |
|
| 163 | + return $composerBin.'/'.$bin; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | - if (is_file($this->rootDir . $bin)) { |
|
| 166 | + if (is_file($this->rootDir.$bin)) { |
|
| 167 | 167 | $this->logger->log(Lang::get('found_in_path', 'root', $bin), LogLevel::DEBUG); |
| 168 | - return $this->rootDir . $bin; |
|
| 168 | + return $this->rootDir.$bin; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | - if (is_file($this->rootDir . 'vendor/bin/' . $bin)) { |
|
| 171 | + if (is_file($this->rootDir.'vendor/bin/'.$bin)) { |
|
| 172 | 172 | $this->logger->log(Lang::get('found_in_path', 'vendor/bin', $bin), LogLevel::DEBUG); |
| 173 | - return $this->rootDir . 'vendor/bin/' . $bin; |
|
| 173 | + return $this->rootDir.'vendor/bin/'.$bin; |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | $findCmdResult = $this->findGlobalBinary($bin); |
@@ -208,8 +208,8 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | if (isset($json->config->{"bin-dir"})) { |
| 210 | 210 | return $path.'/'.$json->config->{"bin-dir"}; |
| 211 | - } elseif (is_dir($path . '/vendor/bin')) { |
|
| 212 | - return $path . '/vendor/bin'; |
|
| 211 | + } elseif (is_dir($path.'/vendor/bin')) { |
|
| 212 | + return $path.'/vendor/bin'; |
|
| 213 | 213 | } |
| 214 | 214 | } |
| 215 | 215 | } |
@@ -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\Helper; |
| 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\Helper; |
| 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\Helper; |
| 11 | 11 | |
@@ -21,17 +21,17 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function generate() |
| 23 | 23 | { |
| 24 | - $tempPath = sys_get_temp_dir() . '/'; |
|
| 24 | + $tempPath = sys_get_temp_dir().'/'; |
|
| 25 | 25 | |
| 26 | 26 | // FastCGI fix for Windows machines, where temp path is not available to |
| 27 | 27 | // PHP, and defaults to the unwritable system directory. If the temp |
| 28 | 28 | // path is pointing to the system directory, shift to the 'TEMP' |
| 29 | 29 | // sub-folder, which should also exist, but actually be writable. |
| 30 | - if (IS_WIN && $tempPath == getenv("SystemRoot") . '/') { |
|
| 31 | - $tempPath = getenv("SystemRoot") . '/TEMP/'; |
|
| 30 | + if (IS_WIN && $tempPath == getenv("SystemRoot").'/') { |
|
| 31 | + $tempPath = getenv("SystemRoot").'/TEMP/'; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - $keyFile = $tempPath . md5(microtime(true)); |
|
| 34 | + $keyFile = $tempPath.md5(microtime(true)); |
|
| 35 | 35 | |
| 36 | 36 | if (!is_dir($tempPath)) { |
| 37 | 37 | mkdir($tempPath); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $output = @shell_exec('ssh-keygen -t rsa -b 2048 -f '.$keyFile.' -N "" -C "deploy@phpci"'); |
| 43 | 43 | |
| 44 | 44 | if (!empty($output)) { |
| 45 | - $pub = file_get_contents($keyFile . '.pub'); |
|
| 45 | + $pub = file_get_contents($keyFile.'.pub'); |
|
| 46 | 46 | $prv = file_get_contents($keyFile); |
| 47 | 47 | |
| 48 | 48 | if (!empty($pub)) { |
@@ -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\Helper; |
| 11 | 11 | |