@@ -135,11 +135,17 @@  | 
                                                    ||
| 135 | 135 | return $builds;  | 
                                                        
| 136 | 136 | }  | 
                                                        
| 137 | 137 | |
| 138 | + /**  | 
                                                        |
| 139 | + * @param integer $numBuilds  | 
                                                        |
| 140 | + */  | 
                                                        |
| 138 | 141 | public function setMaxBuilds($numBuilds)  | 
                                                        
| 139 | 142 |      { | 
                                                        
| 140 | 143 | $this->maxBuilds = (int)$numBuilds;  | 
                                                        
| 141 | 144 | }  | 
                                                        
| 142 | 145 | |
| 146 | + /**  | 
                                                        |
| 147 | + * @param boolean $fromDaemon  | 
                                                        |
| 148 | + */  | 
                                                        |
| 143 | 149 | public function setDaemon($fromDaemon)  | 
                                                        
| 144 | 150 |      { | 
                                                        
| 145 | 151 | $this->isFromDaemon = (bool)$fromDaemon;  | 
                                                        
@@ -136,12 +136,12 @@  | 
                                                    ||
| 136 | 136 | |
| 137 | 137 | public function setMaxBuilds($numBuilds)  | 
                                                        
| 138 | 138 |      { | 
                                                        
| 139 | - $this->maxBuilds = (int) $numBuilds;  | 
                                                        |
| 139 | + $this->maxBuilds = (int)$numBuilds;  | 
                                                        |
| 140 | 140 | }  | 
                                                        
| 141 | 141 | |
| 142 | 142 | public function setDaemon($fromDaemon)  | 
                                                        
| 143 | 143 |      { | 
                                                        
| 144 | - $this->isFromDaemon = (bool) $fromDaemon;  | 
                                                        |
| 144 | + $this->isFromDaemon = (bool)$fromDaemon;  | 
                                                        |
| 145 | 145 | }  | 
                                                        
| 146 | 146 | |
| 147 | 147 | protected function validateRunningBuilds()  | 
                                                        
@@ -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 | |
@@ -405,7 +405,7 @@  | 
                                                    ||
| 405 | 405 | /**  | 
                                                        
| 406 | 406 | * Get the validator to use to check project references.  | 
                                                        
| 407 | 407 | * @param $values  | 
                                                        
| 408 | - * @return callable  | 
                                                        |
| 408 | + * @return \Closure  | 
                                                        |
| 409 | 409 | */  | 
                                                        
| 410 | 410 | protected function getReferenceValidator($values)  | 
                                                        
| 411 | 411 |      { | 
                                                        
@@ -420,7 +420,7 @@  | 
                                                    ||
| 420 | 420 | */  | 
                                                        
| 421 | 421 | protected function getReferenceValidator($values)  | 
                                                        
| 422 | 422 |      { | 
                                                        
| 423 | -        return function ($val) use ($values) { | 
                                                        |
| 423 | +        return function($val) use ($values) { | 
                                                        |
| 424 | 424 | $type = $values['type'];  | 
                                                        
| 425 | 425 | |
| 426 | 426 | $validators = array(  | 
                                                        
@@ -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 | |
@@ -163,7 +163,6 @@  | 
                                                    ||
| 163 | 163 | *  | 
                                                        
| 164 | 164 | * @param Project $project  | 
                                                        
| 165 | 165 | * @param array $payload  | 
                                                        
| 166 | - * @param b8\Http\Response\JsonResponse $response  | 
                                                        |
| 167 | 166 | *  | 
                                                        
| 168 | 167 | * @return b8\Http\Response\JsonResponse  | 
                                                        
| 169 | 168 | */  | 
                                                        
@@ -1,12 +1,12 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /**  | 
                                                        
| 3 | - * PHPCI - Continuous Integration for PHP.  | 
                                                        |
| 4 | - *  | 
                                                        |
| 5 | - * @copyright Copyright 2014-2015, 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-2015, 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\Controller;  | 
                                                        
| 12 | 12 | |
@@ -21,7 +21,7 @@ discard block  | 
                                                    ||
| 21 | 21 |  { | 
                                                        
| 22 | 22 | /**  | 
                                                        
| 23 | 23 | * Make a request to the Github API.  | 
                                                        
| 24 | - * @param $url  | 
                                                        |
| 24 | + * @param string $url  | 
                                                        |
| 25 | 25 | * @param $params  | 
                                                        
| 26 | 26 | * @return mixed  | 
                                                        
| 27 | 27 | */  | 
                                                        
@@ -105,11 +105,11 @@ discard block  | 
                                                    ||
| 105 | 105 | |
| 106 | 106 | /**  | 
                                                        
| 107 | 107 | * Create a comment on a specific file (and commit) in a Github Pull Request.  | 
                                                        
| 108 | - * @param $repo  | 
                                                        |
| 108 | + * @param string $repo  | 
                                                        |
| 109 | 109 | * @param $pullId  | 
                                                        
| 110 | - * @param $commitId  | 
                                                        |
| 110 | + * @param string $commitId  | 
                                                        |
| 111 | 111 | * @param $file  | 
                                                        
| 112 | - * @param $line  | 
                                                        |
| 112 | + * @param integer $line  | 
                                                        |
| 113 | 113 | * @param $comment  | 
                                                        
| 114 | 114 | * @return null  | 
                                                        
| 115 | 115 | */  | 
                                                        
@@ -141,10 +141,10 @@ discard block  | 
                                                    ||
| 141 | 141 | |
| 142 | 142 | /**  | 
                                                        
| 143 | 143 | * Create a comment on a Github commit.  | 
                                                        
| 144 | - * @param $repo  | 
                                                        |
| 145 | - * @param $commitId  | 
                                                        |
| 144 | + * @param string $repo  | 
                                                        |
| 145 | + * @param string $commitId  | 
                                                        |
| 146 | 146 | * @param $file  | 
                                                        
| 147 | - * @param $line  | 
                                                        |
| 147 | + * @param integer $line  | 
                                                        |
| 148 | 148 | * @param $comment  | 
                                                        
| 149 | 149 | * @return null  | 
                                                        
| 150 | 150 | */  | 
                                                        
@@ -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 | |
@@ -61,7 +61,7 @@  | 
                                                    ||
| 61 | 61 | |
| 62 | 62 | /**  | 
                                                        
| 63 | 63 | * Return a specific configuration value by key.  | 
                                                        
| 64 | - * @param $configName  | 
                                                        |
| 64 | + * @param string $configName  | 
                                                        |
| 65 | 65 | * @return null|string  | 
                                                        
| 66 | 66 | */  | 
                                                        
| 67 | 67 | public function getMailConfig($configName)  | 
                                                        
@@ -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 | |
@@ -74,6 +74,7 @@ discard block  | 
                                                    ||
| 74 | 74 | |
| 75 | 75 | /**  | 
                                                        
| 76 | 76 | * Store build metadata  | 
                                                        
| 77 | + * @param string $key  | 
                                                        |
| 77 | 78 | */  | 
                                                        
| 78 | 79 | public function storeMeta($key, $value)  | 
                                                        
| 79 | 80 |      { | 
                                                        
@@ -181,7 +182,7 @@ discard block  | 
                                                    ||
| 181 | 182 | |
| 182 | 183 | /**  | 
                                                        
| 183 | 184 | * Return a value from the build's "extra" JSON array.  | 
                                                        
| 184 | - * @param null $key  | 
                                                        |
| 185 | + * @param string $key  | 
                                                        |
| 185 | 186 | * @return mixed|null|string  | 
                                                        
| 186 | 187 | */  | 
                                                        
| 187 | 188 | public function getExtra($key = null)  | 
                                                        
@@ -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 | |
@@ -157,7 +157,7 @@  | 
                                                    ||
| 157 | 157 | /**  | 
                                                        
| 158 | 158 | * Create an SSH wrapper script for Svn to use, to disable host key checking, etc.  | 
                                                        
| 159 | 159 | * @param $cloneTo  | 
                                                        
| 160 | - * @param $keyFile  | 
                                                        |
| 160 | + * @param string $keyFile  | 
                                                        |
| 161 | 161 | * @return string  | 
                                                        
| 162 | 162 | */  | 
                                                        
| 163 | 163 | protected function writeSshWrapper($cloneTo, $keyFile)  | 
                                                        
@@ -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 | |
@@ -114,7 +114,7 @@  | 
                                                    ||
| 114 | 114 | |
| 115 | 115 | /**  | 
                                                        
| 116 | 116 | * Make a request to Campfire.  | 
                                                        
| 117 | - * @param $page  | 
                                                        |
| 117 | + * @param string $page  | 
                                                        |
| 118 | 118 | * @param null $data  | 
                                                        
| 119 | 119 | * @return bool|mixed  | 
                                                        
| 120 | 120 | */  | 
                                                        
@@ -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 | |
@@ -13,7 +13,6 @@  | 
                                                    ||
| 13 | 13 | use PHPCI\Helper\Lang;  | 
                                                        
| 14 | 14 | use PHPCI\Model\Build;  | 
                                                        
| 15 | 15 | use PHPCI\Plugin\Util\TestResultParsers\Codeception as Parser;  | 
                                                        
| 16 | -use Psr\Log\LogLevel;  | 
                                                        |
| 17 | 16 | |
| 18 | 17 | /**  | 
                                                        
| 19 | 18 | * Codeception Plugin - Enables full acceptance, unit, and functional testing.  | 
                                                        
@@ -59,7 +59,7 @@ discard block  | 
                                                    ||
| 59 | 59 | /**  | 
                                                        
| 60 | 60 | * Try and find the codeception YML config file.  | 
                                                        
| 61 | 61 | *  | 
                                                        
| 62 | - * @param $buildPath  | 
                                                        |
| 62 | + * @param string $buildPath  | 
                                                        |
| 63 | 63 | *  | 
                                                        
| 64 | 64 | * @return null|string  | 
                                                        
| 65 | 65 | */  | 
                                                        
@@ -118,9 +118,9 @@ discard block  | 
                                                    ||
| 118 | 118 | /**  | 
                                                        
| 119 | 119 | * Run tests from a Codeception config file.  | 
                                                        
| 120 | 120 | *  | 
                                                        
| 121 | - * @param $configPath  | 
                                                        |
| 121 | + * @param string $configPath  | 
                                                        |
| 122 | 122 | *  | 
                                                        
| 123 | - * @return bool|mixed  | 
                                                        |
| 123 | + * @return boolean  | 
                                                        |
| 124 | 124 | *  | 
                                                        
| 125 | 125 | * @throws \Exception  | 
                                                        
| 126 | 126 | */  | 
                                                        
@@ -95,7 +95,7 @@  | 
                                                    ||
| 95 | 95 | $this->ymlConfigFile = $options['config'];  | 
                                                        
| 96 | 96 | }  | 
                                                        
| 97 | 97 |          if (isset($options['args'])) { | 
                                                        
| 98 | - $this->args = (string) $options['args'];  | 
                                                        |
| 98 | + $this->args = (string)$options['args'];  | 
                                                        |
| 99 | 99 | }  | 
                                                        
| 100 | 100 |          if (isset($options['path'])) { | 
                                                        
| 101 | 101 | $this->path = $options['path'];  | 
                                                        
@@ -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 | |