@@ -68,7 +68,7 @@ |
||
| 68 | 68 | public function getPluginClasses() |
| 69 | 69 | { |
| 70 | 70 | return array_map( |
| 71 | - function (Plugin $plugin) { |
|
| 71 | + function(Plugin $plugin) { |
|
| 72 | 72 | return $plugin->class; |
| 73 | 73 | }, |
| 74 | 74 | $this->getInstalledPlugins() |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $this->phpci = $phpci; |
| 40 | 40 | $this->directory = isset($options['directory']) ? $options['directory'] : $path; |
| 41 | 41 | $this->filename = isset($options['filename']) ? $options['filename'] : 'build'; |
| 42 | - $this->format = isset($options['format']) ? $options['format'] : 'zip'; |
|
| 42 | + $this->format = isset($options['format']) ? $options['format'] : 'zip'; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -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); |
@@ -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 @@ discard block |
||
| 38 | 38 | $opts = array('controller' => 'Home', 'action' => 'index'); |
| 39 | 39 | |
| 40 | 40 | // Inlined as a closure to fix "using $this when not in object context" on 5.3 |
| 41 | - $validateSession = function () { |
|
| 41 | + $validateSession = function() { |
|
| 42 | 42 | if (!empty($_SESSION['phpci_user_id'])) { |
| 43 | 43 | $user = b8\Store\Factory::getStore('User')->getByPrimaryKey($_SESSION['phpci_user_id']); |
| 44 | 44 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $skipAuth = array($this, 'shouldSkipAuth'); |
| 58 | 58 | |
| 59 | 59 | // Handler for the route we're about to register, checks for a valid session where necessary: |
| 60 | - $routeHandler = function (&$route, Response &$response) use (&$request, $validateSession, $skipAuth) { |
|
| 60 | + $routeHandler = function(&$route, Response&$response) use (&$request, $validateSession, $skipAuth) { |
|
| 61 | 61 | $skipValidation = in_array($route['controller'], array('session', 'webhook', 'build-status')); |
| 62 | 62 | |
| 63 | 63 | if (!$skipValidation && !$validateSession() && (!is_callable($skipAuth) || !$skipAuth())) { |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | * |
| 140 | 140 | * @param View $layout |
| 141 | 141 | */ |
| 142 | - protected function setLayoutVariables(View &$layout) |
|
| 142 | + protected function setLayoutVariables(View&$layout) |
|
| 143 | 143 | { |
| 144 | 144 | $groups = array(); |
| 145 | 145 | $groupStore = b8\Store\Factory::getStore('ProjectGroup'); |
@@ -163,10 +163,10 @@ discard block |
||
| 163 | 163 | protected function shouldSkipAuth() |
| 164 | 164 | { |
| 165 | 165 | $config = b8\Config::getInstance(); |
| 166 | - $state = (bool) $config->get('phpci.authentication_settings.state', false); |
|
| 166 | + $state = (bool)$config->get('phpci.authentication_settings.state', false); |
|
| 167 | 167 | $userId = $config->get('phpci.authentication_settings.user_id', 0); |
| 168 | 168 | |
| 169 | - if (false !== $state && 0 != (int) $userId) { |
|
| 169 | + if (false !== $state && 0 != (int)$userId) { |
|
| 170 | 170 | $user = b8\Store\Factory::getStore('User') |
| 171 | 171 | ->getByPrimaryKey($userId); |
| 172 | 172 | |
@@ -1,12 +1,12 @@ |
||
| 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 | - * |
|
| 8 | - * @link https://www.phptesting.org/ |
|
| 9 | - */ |
|
| 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 | + * |
|
| 8 | + * @link https://www.phptesting.org/ |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace PHPCI\Command; |
| 12 | 12 | |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $dialog = $this->getHelperSet()->get('dialog'); |
| 176 | 176 | |
| 177 | 177 | // Function to validate mail address. |
| 178 | - $mailValidator = function ($answer) { |
|
| 178 | + $mailValidator = function($answer) { |
|
| 179 | 179 | if (!filter_var($answer, FILTER_VALIDATE_EMAIL)) { |
| 180 | 180 | throw new \InvalidArgumentException(Lang::get('must_be_valid_email')); |
| 181 | 181 | } |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | $dialog = $this->getHelperSet()->get('dialog'); |
| 221 | 221 | |
| 222 | 222 | // FUnction do validate URL. |
| 223 | - $urlValidator = function ($answer) { |
|
| 223 | + $urlValidator = function($answer) { |
|
| 224 | 224 | if (!filter_var($answer, FILTER_VALIDATE_URL)) { |
| 225 | 225 | throw new Exception(Lang::get('must_be_valid_url')); |
| 226 | 226 | } |
@@ -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 | |
@@ -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 | |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | if (array_key_exists('allow_public_status', $options)) { |
| 86 | - $project->setAllowPublicStatus((int) $options['allow_public_status']); |
|
| 86 | + $project->setAllowPublicStatus((int)$options['allow_public_status']); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | if (array_key_exists('archived', $options)) { |
| 90 | - $project->setArchived((bool) $options['archived']); |
|
| 90 | + $project->setArchived((bool)$options['archived']); |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | if (array_key_exists('branch', $options)) { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * |
| 125 | 125 | * @param Project $project |
| 126 | 126 | */ |
| 127 | - protected function processAccessInformation(Project &$project) |
|
| 127 | + protected function processAccessInformation(Project&$project) |
|
| 128 | 128 | { |
| 129 | 129 | $matches = array(); |
| 130 | 130 | $reference = $project->getReference(); |
@@ -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 | |
@@ -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 | |