@@ -185,7 +185,7 @@ |
||
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | 187 | * Process options and produce an arguments string for PHPCS. |
| 188 | - * @return array |
|
| 188 | + * @return string[] |
|
| 189 | 189 | */ |
| 190 | 190 | protected function getFlags() |
| 191 | 191 | { |
@@ -1,12 +1,12 @@ |
||
| 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 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 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 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Service; |
| 12 | 12 | |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | if (isset($options['suffixes'])) { |
| 82 | - $this->suffixes = (array) $options['suffixes']; |
|
| 82 | + $this->suffixes = (array)$options['suffixes']; |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | $this->setOptions($options); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * Try and find the phpunit XML config file. |
| 70 | - * @param $buildPath |
|
| 70 | + * @param string $buildPath |
|
| 71 | 71 | * @return null|string |
| 72 | 72 | */ |
| 73 | 73 | public static function findConfigFile($buildPath) |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | /** |
| 186 | 186 | * Run the tests defined in a PHPUnit config file. |
| 187 | 187 | * @param $configPath |
| 188 | - * @return bool|mixed |
|
| 188 | + * @return boolean |
|
| 189 | 189 | */ |
| 190 | 190 | protected function runConfigFile($configPath) |
| 191 | 191 | { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | /** |
| 214 | 214 | * Run the PHPUnit tests in a specific directory or array of directories. |
| 215 | 215 | * @param $directory |
| 216 | - * @return bool|mixed |
|
| 216 | + * @return boolean |
|
| 217 | 217 | */ |
| 218 | 218 | protected function runDir($directory) |
| 219 | 219 | { |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | /** |
| 236 | 236 | * @param $array |
| 237 | 237 | * @param $callable |
| 238 | - * @return bool|mixed |
|
| 238 | + * @return boolean |
|
| 239 | 239 | */ |
| 240 | 240 | protected function recurseArg($array, $callable) |
| 241 | 241 | { |
@@ -1,12 +1,12 @@ |
||
| 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 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 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 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Service; |
| 12 | 12 | |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | /** |
| 141 | 141 | * Gets the number and list of errors returned from the search |
| 142 | 142 | * |
| 143 | - * @return array |
|
| 143 | + * @return integer |
|
| 144 | 144 | */ |
| 145 | 145 | public function getErrorList() |
| 146 | 146 | { |
@@ -1,12 +1,12 @@ |
||
| 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 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 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 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Service; |
| 12 | 12 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * Check the config for any plugins specific to the branch we're currently building. |
| 73 | 73 | * @param $config |
| 74 | - * @param $stage |
|
| 74 | + * @param string $stage |
|
| 75 | 75 | * @param $pluginsToExecute |
| 76 | 76 | * @return array |
| 77 | 77 | */ |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | /** |
| 125 | 125 | * Execute the list of plugins found for a given testing stage. |
| 126 | 126 | * @param $plugins |
| 127 | - * @param $stage |
|
| 127 | + * @param string $stage |
|
| 128 | 128 | * @return bool |
| 129 | 129 | * @throws \Exception |
| 130 | 130 | */ |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | * file returns a function then $this will be passed to it. |
| 46 | 46 | * This enables the config file to call any public methods. |
| 47 | 47 | * |
| 48 | - * @param $configPath |
|
| 48 | + * @param string $configPath |
|
| 49 | 49 | * @return bool - true if the function exists else false. |
| 50 | 50 | */ |
| 51 | 51 | public function addConfigFromFile($configPath) |
@@ -138,8 +138,8 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | 140 | * Get an internal resource ID. |
| 141 | - * @param null $type |
|
| 142 | - * @param null $name |
|
| 141 | + * @param string|null $type |
|
| 142 | + * @param string|null $name |
|
| 143 | 143 | * @return string |
| 144 | 144 | */ |
| 145 | 145 | private function getInternalID($type = null, $name = null) |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | $self = $this; |
| 33 | 33 | $this->registerResource( |
| 34 | - function () use ($self) { |
|
| 34 | + function() use ($self) { |
|
| 35 | 35 | return $self->getLastOptions(); |
| 36 | 36 | }, |
| 37 | 37 | 'options', |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | protected $pluginInfo = null; |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * @param $dirPath |
|
| 31 | + * @param string $dirPath |
|
| 32 | 32 | * @return FilesPluginInformation |
| 33 | 33 | */ |
| 34 | 34 | public static function newFromDir($dirPath) |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | public function getPluginClasses() |
| 70 | 70 | { |
| 71 | 71 | return array_map( |
| 72 | - function (\stdClass $plugin) { |
|
| 72 | + function(\stdClass $plugin) { |
|
| 73 | 73 | return $plugin->class; |
| 74 | 74 | }, |
| 75 | 75 | $this->getInstalledPlugins() |
@@ -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,12 +1,12 @@ |
||
| 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 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 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 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Service; |
| 12 | 12 | |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | public function handleError($level, $message, $file, $line) |
| 71 | 71 | { |
| 72 | - if (error_reporting() & $level) { |
|
| 72 | + if (error_reporting()&$level) { |
|
| 73 | 73 | $exception_level = isset($this->levels[$level]) ? $this->levels[$level] : $level; |
| 74 | 74 | |
| 75 | 75 | throw new \ErrorException( |
@@ -1,12 +1,12 @@ |
||
| 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 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 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 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Service; |
| 12 | 12 | |
@@ -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); |
@@ -1,12 +1,12 @@ |
||
| 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 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 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 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Service; |
| 12 | 12 | |