@@ -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\Controller; |
| 11 | 11 | |
@@ -127,8 +127,8 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | - * Returns the appropriate build status image in SVG format for a given project. |
|
| 131 | - */ |
|
| 130 | + * Returns the appropriate build status image in SVG format for a given project. |
|
| 131 | + */ |
|
| 132 | 132 | public function image($projectId) |
| 133 | 133 | { |
| 134 | 134 | $style = $this->getParam('style', 'plastic'); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | if (isset($project) && $project instanceof Project) { |
| 60 | - $build = $project->getLatestBuild($branch, array(2,3)); |
|
| 60 | + $build = $project->getLatestBuild($branch, array(2, 3)); |
|
| 61 | 61 | |
| 62 | 62 | if (isset($build) && $build instanceof Build && $build->getStatus() != 2) { |
| 63 | 63 | $status = 'failed'; |
@@ -168,11 +168,11 @@ discard block |
||
| 168 | 168 | $project = $this->projectStore->getById($projectId); |
| 169 | 169 | |
| 170 | 170 | if (empty($project)) { |
| 171 | - throw new NotFoundException('Project with id: ' . $projectId . ' not found'); |
|
| 171 | + throw new NotFoundException('Project with id: '.$projectId.' not found'); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | if (!$project->getAllowPublicStatus()) { |
| 175 | - throw new NotFoundException('Project with id: ' . $projectId . ' not found'); |
|
| 175 | + throw new NotFoundException('Project with id: '.$projectId.' not found'); |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | $builds = $this->getLatestBuilds($projectId); |
@@ -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\Controller; |
| 11 | 11 | |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * Handles user login (form and processing) |
|
| 40 | - */ |
|
| 39 | + * Handles user login (form and processing) |
|
| 40 | + */ |
|
| 41 | 41 | public function login() |
| 42 | 42 | { |
| 43 | 43 | $isLoginFailure = false; |
@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * Handles user logout. |
|
| 103 | - */ |
|
| 102 | + * Handles user logout. |
|
| 103 | + */ |
|
| 104 | 104 | public function logout() |
| 105 | 105 | { |
| 106 | 106 | unset($_SESSION['phpci_user']); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | public function init() |
| 33 | 33 | { |
| 34 | 34 | $this->response->disableLayout(); |
| 35 | - $this->userStore = b8\Store\Factory::getStore('User'); |
|
| 35 | + $this->userStore = b8\Store\Factory::getStore('User'); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | if ($user && password_verify($this->getParam('password', ''), $user->getHash())) { |
| 55 | 55 | session_regenerate_id(true); |
| 56 | - $_SESSION['phpci_user_id'] = $user->getId(); |
|
| 56 | + $_SESSION['phpci_user_id'] = $user->getId(); |
|
| 57 | 57 | $response = new b8\Http\Response\RedirectResponse(); |
| 58 | 58 | $response->setHeader('Location', $this->getLoginRedirect()); |
| 59 | 59 | return $response; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | return $this->view->render(); |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | - $key = md5(date('Y-m-d') . $user->getHash()); |
|
| 131 | + $key = md5(date('Y-m-d').$user->getHash()); |
|
| 132 | 132 | $url = PHPCI_URL; |
| 133 | 133 | |
| 134 | 134 | $message = Lang::get('reset_email_body', $user->getName(), $url, $user->getId(), $key); |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | public function resetPassword($userId, $key) |
| 155 | 155 | { |
| 156 | 156 | $user = $this->userStore->getById($userId); |
| 157 | - $userKey = md5(date('Y-m-d') . $user->getHash()); |
|
| 157 | + $userKey = md5(date('Y-m-d').$user->getHash()); |
|
| 158 | 158 | |
| 159 | 159 | if (empty($user) || $key != $userKey) { |
| 160 | 160 | $this->view->error = Lang::get('reset_invalid'); |
@@ -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\Controller; |
| 11 | 11 | |
@@ -36,10 +36,10 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | $pluginInfo = new PluginInformationCollection(); |
| 38 | 38 | $pluginInfo->add(FilesPluginInformation::newFromDir( |
| 39 | - PHPCI_DIR . "PHPCI/Plugin/" |
|
| 39 | + PHPCI_DIR."PHPCI/Plugin/" |
|
| 40 | 40 | )); |
| 41 | 41 | $pluginInfo->add(ComposerPluginInformation::buildFromYaml( |
| 42 | - PHPCI_DIR . "vendor/composer/installed.json" |
|
| 42 | + PHPCI_DIR."vendor/composer/installed.json" |
|
| 43 | 43 | )); |
| 44 | 44 | |
| 45 | 45 | $this->view->plugins = $pluginInfo->getInstalledPlugins(); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | protected function getComposerJson() |
| 57 | 57 | { |
| 58 | - $json = file_get_contents(APPLICATION_PATH . 'composer.json'); |
|
| 58 | + $json = file_get_contents(APPLICATION_PATH.'composer.json'); |
|
| 59 | 59 | return json_decode($json, true); |
| 60 | 60 | } |
| 61 | 61 | } |
@@ -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\Controller; |
| 11 | 11 | |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | |
| 86 | 86 | $form = new Form(); |
| 87 | 87 | $form->setMethod('POST'); |
| 88 | - $form->setAction(PHPCI_URL . 'group/edit' . (!is_null($groupId) ? '/' . $groupId : '')); |
|
| 88 | + $form->setAction(PHPCI_URL.'group/edit'.(!is_null($groupId) ? '/'.$groupId : '')); |
|
| 89 | 89 | |
| 90 | 90 | $title = new Form\Element\Text('title'); |
| 91 | 91 | $title->setContainerClass('form-group'); |
@@ -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\Controller; |
| 11 | 11 | |
@@ -105,9 +105,9 @@ discard block |
||
| 105 | 105 | $response = new b8\Http\Response\RedirectResponse(); |
| 106 | 106 | |
| 107 | 107 | if ($error) { |
| 108 | - $response->setHeader('Location', PHPCI_URL . 'settings?saved=2'); |
|
| 108 | + $response->setHeader('Location', PHPCI_URL.'settings?saved=2'); |
|
| 109 | 109 | } else { |
| 110 | - $response->setHeader('Location', PHPCI_URL . 'settings?saved=1'); |
|
| 110 | + $response->setHeader('Location', PHPCI_URL.'settings?saved=1'); |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | return $response; |
@@ -128,9 +128,9 @@ discard block |
||
| 128 | 128 | $response = new b8\Http\Response\RedirectResponse(); |
| 129 | 129 | |
| 130 | 130 | if ($error) { |
| 131 | - $response->setHeader('Location', PHPCI_URL . 'settings?saved=2'); |
|
| 131 | + $response->setHeader('Location', PHPCI_URL.'settings?saved=2'); |
|
| 132 | 132 | } else { |
| 133 | - $response->setHeader('Location', PHPCI_URL . 'settings?saved=1'); |
|
| 133 | + $response->setHeader('Location', PHPCI_URL.'settings?saved=1'); |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | return $response; |
@@ -150,9 +150,9 @@ discard block |
||
| 150 | 150 | $response = new b8\Http\Response\RedirectResponse(); |
| 151 | 151 | |
| 152 | 152 | if ($error) { |
| 153 | - $response->setHeader('Location', PHPCI_URL . 'settings?saved=2'); |
|
| 153 | + $response->setHeader('Location', PHPCI_URL.'settings?saved=2'); |
|
| 154 | 154 | } else { |
| 155 | - $response->setHeader('Location', PHPCI_URL . 'settings?saved=1'); |
|
| 155 | + $response->setHeader('Location', PHPCI_URL.'settings?saved=1'); |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | return $response; |
@@ -171,9 +171,9 @@ discard block |
||
| 171 | 171 | $response = new b8\Http\Response\RedirectResponse(); |
| 172 | 172 | |
| 173 | 173 | if ($error) { |
| 174 | - $response->setHeader('Location', PHPCI_URL . 'settings?saved=2'); |
|
| 174 | + $response->setHeader('Location', PHPCI_URL.'settings?saved=2'); |
|
| 175 | 175 | } else { |
| 176 | - $response->setHeader('Location', PHPCI_URL . 'settings?saved=1'); |
|
| 176 | + $response->setHeader('Location', PHPCI_URL.'settings?saved=1'); |
|
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | return $response; |
@@ -194,9 +194,9 @@ discard block |
||
| 194 | 194 | $response = new b8\Http\Response\RedirectResponse(); |
| 195 | 195 | |
| 196 | 196 | if ($error) { |
| 197 | - $response->setHeader('Location', PHPCI_URL . 'settings?saved=2'); |
|
| 197 | + $response->setHeader('Location', PHPCI_URL.'settings?saved=2'); |
|
| 198 | 198 | } else { |
| 199 | - $response->setHeader('Location', PHPCI_URL . 'settings?saved=1'); |
|
| 199 | + $response->setHeader('Location', PHPCI_URL.'settings?saved=1'); |
|
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | return $response; |
@@ -223,13 +223,13 @@ discard block |
||
| 223 | 223 | $this->storeSettings(); |
| 224 | 224 | |
| 225 | 225 | $response = new b8\Http\Response\RedirectResponse(); |
| 226 | - $response->setHeader('Location', PHPCI_URL . 'settings?linked=1'); |
|
| 226 | + $response->setHeader('Location', PHPCI_URL.'settings?linked=1'); |
|
| 227 | 227 | return $response; |
| 228 | 228 | } |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | $response = new b8\Http\Response\RedirectResponse(); |
| 232 | - $response->setHeader('Location', PHPCI_URL . 'settings?linked=2'); |
|
| 232 | + $response->setHeader('Location', PHPCI_URL.'settings?linked=2'); |
|
| 233 | 233 | return $response; |
| 234 | 234 | } |
| 235 | 235 | |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | { |
| 259 | 259 | $form = new Form(); |
| 260 | 260 | $form->setMethod('POST'); |
| 261 | - $form->setAction(PHPCI_URL . 'settings/github'); |
|
| 261 | + $form->setAction(PHPCI_URL.'settings/github'); |
|
| 262 | 262 | $form->addField(new Form\Element\Csrf('csrf')); |
| 263 | 263 | |
| 264 | 264 | $field = new Form\Element\Text('githubid'); |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | { |
| 303 | 303 | $form = new Form(); |
| 304 | 304 | $form->setMethod('POST'); |
| 305 | - $form->setAction(PHPCI_URL . 'settings/email'); |
|
| 305 | + $form->setAction(PHPCI_URL.'settings/email'); |
|
| 306 | 306 | $form->addField(new Form\Element\Csrf('csrf')); |
| 307 | 307 | |
| 308 | 308 | $field = new Form\Element\Text('smtp_address'); |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | { |
| 400 | 400 | $form = new Form(); |
| 401 | 401 | $form->setMethod('POST'); |
| 402 | - $form->setAction(PHPCI_URL . 'settings/build'); |
|
| 402 | + $form->setAction(PHPCI_URL.'settings/build'); |
|
| 403 | 403 | |
| 404 | 404 | $field = new Form\Element\Select('failed_after'); |
| 405 | 405 | $field->setRequired(false); |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | { |
| 437 | 437 | $form = new Form(); |
| 438 | 438 | $form->setMethod('POST'); |
| 439 | - $form->setAction(PHPCI_URL . 'settings/basic'); |
|
| 439 | + $form->setAction(PHPCI_URL.'settings/basic'); |
|
| 440 | 440 | |
| 441 | 441 | $field = new Form\Element\Select('language'); |
| 442 | 442 | $field->setRequired(true); |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | { |
| 469 | 469 | $form = new Form(); |
| 470 | 470 | $form->setMethod('POST'); |
| 471 | - $form->setAction(PHPCI_URL . 'settings/authentication'); |
|
| 471 | + $form->setAction(PHPCI_URL.'settings/authentication'); |
|
| 472 | 472 | $form->addField(new Form\Element\Csrf('csrf')); |
| 473 | 473 | |
| 474 | 474 | $field = new Form\Element\Checkbox('disable_authentication'); |
@@ -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\Controller; |
| 11 | 11 | |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * View user list. |
|
| 48 | - */ |
|
| 47 | + * View user list. |
|
| 48 | + */ |
|
| 49 | 49 | public function index() |
| 50 | 50 | { |
| 51 | 51 | $users = $this->userStore->getWhere(array(), 1000, 0, array(), array('email' => 'ASC')); |
@@ -139,8 +139,8 @@ discard block |
||
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
| 142 | - * Add a user - handles both form and processing. |
|
| 143 | - */ |
|
| 142 | + * Add a user - handles both form and processing. |
|
| 143 | + */ |
|
| 144 | 144 | public function add() |
| 145 | 145 | { |
| 146 | 146 | $this->requireAdmin(); |
@@ -180,8 +180,8 @@ discard block |
||
| 180 | 180 | } |
| 181 | 181 | |
| 182 | 182 | /** |
| 183 | - * Edit a user - handles both form and processing. |
|
| 184 | - */ |
|
| 183 | + * Edit a user - handles both form and processing. |
|
| 184 | + */ |
|
| 185 | 185 | public function edit($userId) |
| 186 | 186 | { |
| 187 | 187 | $this->requireAdmin(); |
@@ -221,8 +221,8 @@ discard block |
||
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | - * Create user add / edit form. |
|
| 225 | - */ |
|
| 224 | + * Create user add / edit form. |
|
| 225 | + */ |
|
| 226 | 226 | protected function userForm($values, $type = 'add') |
| 227 | 227 | { |
| 228 | 228 | $form = new Form(); |
@@ -275,8 +275,8 @@ discard block |
||
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | /** |
| 278 | - * Delete a user. |
|
| 279 | - */ |
|
| 278 | + * Delete a user. |
|
| 279 | + */ |
|
| 280 | 280 | public function delete($userId) |
| 281 | 281 | { |
| 282 | 282 | $this->requireAdmin(); |
@@ -48,8 +48,8 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function index() |
| 50 | 50 | { |
| 51 | - $users = $this->userStore->getWhere(array(), 1000, 0, array(), array('email' => 'ASC')); |
|
| 52 | - $this->view->users = $users; |
|
| 51 | + $users = $this->userStore->getWhere(array(), 1000, 0, array(), array('email' => 'ASC')); |
|
| 52 | + $this->view->users = $users; |
|
| 53 | 53 | |
| 54 | 54 | $this->layout->title = Lang::get('manage_users'); |
| 55 | 55 | |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | $values = array(); |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | - $form = $this->userForm($values); |
|
| 158 | + $form = $this->userForm($values); |
|
| 159 | 159 | |
| 160 | 160 | if ($method != 'POST' || ($method == 'POST' && !$form->validate())) { |
| 161 | 161 | $view = new b8\View('UserForm'); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $this->userService->createUser($name, $email, $password, $isAdmin); |
| 176 | 176 | |
| 177 | 177 | $response = new b8\Http\Response\RedirectResponse(); |
| 178 | - $response->setHeader('Location', PHPCI_URL . 'user'); |
|
| 178 | + $response->setHeader('Location', PHPCI_URL.'user'); |
|
| 179 | 179 | return $response; |
| 180 | 180 | } |
| 181 | 181 | |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | $this->layout->subtitle = Lang::get('edit_user'); |
| 198 | 198 | |
| 199 | 199 | $values = array_merge($user->getDataArray(), $this->getParams()); |
| 200 | - $form = $this->userForm($values, 'edit/' . $userId); |
|
| 200 | + $form = $this->userForm($values, 'edit/'.$userId); |
|
| 201 | 201 | |
| 202 | 202 | if ($method != 'POST' || ($method == 'POST' && !$form->validate())) { |
| 203 | 203 | $view = new b8\View('UserForm'); |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | $this->userService->updateUser($user, $name, $email, $password, $isAdmin); |
| 217 | 217 | |
| 218 | 218 | $response = new b8\Http\Response\RedirectResponse(); |
| 219 | - $response->setHeader('Location', PHPCI_URL . 'user'); |
|
| 219 | + $response->setHeader('Location', PHPCI_URL.'user'); |
|
| 220 | 220 | return $response; |
| 221 | 221 | } |
| 222 | 222 | |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | { |
| 228 | 228 | $form = new Form(); |
| 229 | 229 | $form->setMethod('POST'); |
| 230 | - $form->setAction(PHPCI_URL.'user/' . $type); |
|
| 230 | + $form->setAction(PHPCI_URL.'user/'.$type); |
|
| 231 | 231 | $form->addField(new Form\Element\Csrf('csrf')); |
| 232 | 232 | |
| 233 | 233 | $field = new Form\Element\Email('email'); |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | { |
| 282 | 282 | $this->requireAdmin(); |
| 283 | 283 | |
| 284 | - $user = $this->userStore->getById($userId); |
|
| 284 | + $user = $this->userStore->getById($userId); |
|
| 285 | 285 | |
| 286 | 286 | if (empty($user)) { |
| 287 | 287 | throw new NotFoundException(Lang::get('user_n_not_found', $userId)); |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | $this->userService->deleteUser($user); |
| 291 | 291 | |
| 292 | 292 | $response = new b8\Http\Response\RedirectResponse(); |
| 293 | - $response->setHeader('Location', PHPCI_URL . 'user'); |
|
| 293 | + $response->setHeader('Location', PHPCI_URL.'user'); |
|
| 294 | 294 | return $response; |
| 295 | 295 | } |
| 296 | 296 | } |
@@ -35,10 +35,10 @@ |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | - * Takes a generic build and returns a type-specific build model. |
|
| 39 | - * @param Build $build The build from which to get a more specific build type. |
|
| 40 | - * @return Build |
|
| 41 | - */ |
|
| 38 | + * Takes a generic build and returns a type-specific build model. |
|
| 39 | + * @param Build $build The build from which to get a more specific build type. |
|
| 40 | + * @return Build |
|
| 41 | + */ |
|
| 42 | 42 | public static function getBuild(Build $build) |
| 43 | 43 | { |
| 44 | 44 | $project = $build->getProject(); |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $build = Factory::getStore('Build')->getById($buildId); |
| 29 | 29 | |
| 30 | 30 | if (empty($build)) { |
| 31 | - throw new \Exception('Build ID ' . $buildId . ' does not exist.'); |
|
| 31 | + throw new \Exception('Build ID '.$buildId.' does not exist.'); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | return self::getBuild($build); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | return $build; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - $class = '\\PHPCI\\Model\\Build\\' . $type; |
|
| 73 | + $class = '\\PHPCI\\Model\\Build\\'.$type; |
|
| 74 | 74 | $build = new $class($build->getDataArray()); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -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\Model; |
| 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\Model; |
| 11 | 11 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function getLatestBuild($branch = 'master', $status = null) |
| 32 | 32 | { |
| 33 | - $criteria = array('branch' => $branch, 'project_id' => $this->getId()); |
|
| 33 | + $criteria = array('branch' => $branch, 'project_id' => $this->getId()); |
|
| 34 | 34 | |
| 35 | 35 | if (isset($status)) { |
| 36 | 36 | $criteria['status'] = $status; |