@@ -90,12 +90,12 @@ |
||
| 90 | 90 | $query = 'SELECT * FROM `user` WHERE `name` = :name LIMIT :limit'; |
| 91 | 91 | $stmt = Database::getConnection($useConnection)->prepare($query); |
| 92 | 92 | $stmt->bindValue(':name', $value); |
| 93 | - $stmt->bindValue(':limit', (int) $limit, \PDO::PARAM_INT); |
|
| 93 | + $stmt->bindValue(':limit', (int)$limit, \PDO::PARAM_INT); |
|
| 94 | 94 | |
| 95 | 95 | if ($stmt->execute()) { |
| 96 | 96 | $res = $stmt->fetchAll(\PDO::FETCH_ASSOC); |
| 97 | 97 | |
| 98 | - $map = function ($item) { |
|
| 98 | + $map = function($item) { |
|
| 99 | 99 | return new User($item); |
| 100 | 100 | }; |
| 101 | 101 | $rtn = array_map($map, $res); |
@@ -490,7 +490,7 @@ |
||
| 490 | 490 | $field->setValue(0); |
| 491 | 491 | |
| 492 | 492 | if (isset($values['state'])) { |
| 493 | - $field->setValue((int) $values['state']); |
|
| 493 | + $field->setValue((int)$values['state']); |
|
| 494 | 494 | } |
| 495 | 495 | |
| 496 | 496 | $form->addField($field); |
@@ -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 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | $name = $this->getParam('name', null); |
| 171 | 171 | $email = $this->getParam('email', null); |
| 172 | 172 | $password = $this->getParam('password', null); |
| 173 | - $isAdmin = (int) $this->getParam('is_admin', 0); |
|
| 173 | + $isAdmin = (int)$this->getParam('is_admin', 0); |
|
| 174 | 174 | |
| 175 | 175 | $this->userService->createUser($name, $email, $password, $isAdmin); |
| 176 | 176 | |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | $name = $this->getParam('name', null); |
| 213 | 213 | $email = $this->getParam('email', null); |
| 214 | 214 | $password = $this->getParam('password', null); |
| 215 | - $isAdmin = (int) $this->getParam('is_admin', 0); |
|
| 215 | + $isAdmin = (int)$this->getParam('is_admin', 0); |
|
| 216 | 216 | |
| 217 | 217 | $this->userService->updateUser($user, $name, $email, $password, $isAdmin); |
| 218 | 218 | |
@@ -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 | |
@@ -233,7 +233,7 @@ |
||
| 233 | 233 | */ |
| 234 | 234 | protected function getDiffLineNumber(Builder $builder, $file, $line) |
| 235 | 235 | { |
| 236 | - $line = (integer) $line; |
|
| 236 | + $line = (integer)$line; |
|
| 237 | 237 | |
| 238 | 238 | $builder->logExecOutput(false); |
| 239 | 239 | |
@@ -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 | |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | if (array_key_exists('allowed_warnings', $options)) { |
| 98 | - $this->allowed_warnings = (int) $options['allowed_warnings']; |
|
| 98 | + $this->allowed_warnings = (int)$options['allowed_warnings']; |
|
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | |
@@ -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 | |
@@ -40,8 +40,8 @@ |
||
| 40 | 40 | $this->phpci = $phpci; |
| 41 | 41 | $this->build = $build; |
| 42 | 42 | $this->directory = isset($options['directory']) ? $options['directory'] : $path; |
| 43 | - $this->wipe = isset($options['wipe']) ? (bool) $options['wipe'] : false; |
|
| 44 | - $this->ignore = isset($options['respect_ignore']) ? (bool) $options['respect_ignore'] : false; |
|
| 43 | + $this->wipe = isset($options['wipe']) ? (bool)$options['wipe'] : false; |
|
| 44 | + $this->ignore = isset($options['respect_ignore']) ? (bool)$options['respect_ignore'] : false; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -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,7 +74,7 @@ discard block |
||
| 74 | 74 | $ignore = ''; |
| 75 | 75 | |
| 76 | 76 | if (count($this->phpci->ignore)) { |
| 77 | - $map = function ($item) { |
|
| 77 | + $map = function($item) { |
|
| 78 | 78 | return ' --exclude '.rtrim($item, DIRECTORY_SEPARATOR); |
| 79 | 79 | }; |
| 80 | 80 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | if (preg_match_all('/\((LOC|CLOC|NCLOC|LLOC)\)\s+([0-9]+)/', $output, $matches)) { |
| 91 | 91 | $data = array(); |
| 92 | 92 | foreach ($matches[1] as $k => $v) { |
| 93 | - $data[$v] = (int) $matches[2][$k]; |
|
| 93 | + $data[$v] = (int)$matches[2][$k]; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | $this->build->storeMeta('phploc', $data); |
@@ -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 | |
@@ -78,10 +78,10 @@ discard block |
||
| 78 | 78 | $xml = new \SimpleXMLElement($output); |
| 79 | 79 | $attr = $xml->attributes(); |
| 80 | 80 | $data = array( |
| 81 | - 'time' => (float) $attr['time'], |
|
| 82 | - 'tests' => (int) $attr['tests'], |
|
| 83 | - 'failures' => (int) $attr['failures'], |
|
| 84 | - 'errors' => (int) $attr['errors'], |
|
| 81 | + 'time' => (float)$attr['time'], |
|
| 82 | + 'tests' => (int)$attr['tests'], |
|
| 83 | + 'failures' => (int)$attr['failures'], |
|
| 84 | + 'errors' => (int)$attr['errors'], |
|
| 85 | 85 | |
| 86 | 86 | // now all the tests |
| 87 | 87 | 'suites' => array(), |
@@ -93,12 +93,12 @@ discard block |
||
| 93 | 93 | foreach ($xml->xpath('testsuite') as $group) { |
| 94 | 94 | $attr = $group->attributes(); |
| 95 | 95 | $suite = array( |
| 96 | - 'name' => (String) $attr['name'], |
|
| 97 | - 'time' => (float) $attr['time'], |
|
| 98 | - 'tests' => (int) $attr['tests'], |
|
| 99 | - 'failures' => (int) $attr['failures'], |
|
| 100 | - 'errors' => (int) $attr['errors'], |
|
| 101 | - 'skipped' => (int) $attr['skipped'], |
|
| 96 | + 'name' => (String)$attr['name'], |
|
| 97 | + 'time' => (float)$attr['time'], |
|
| 98 | + 'tests' => (int)$attr['tests'], |
|
| 99 | + 'failures' => (int)$attr['failures'], |
|
| 100 | + 'errors' => (int)$attr['errors'], |
|
| 101 | + 'skipped' => (int)$attr['skipped'], |
|
| 102 | 102 | |
| 103 | 103 | // now the cases |
| 104 | 104 | 'cases' => array(), |
@@ -110,10 +110,10 @@ discard block |
||
| 110 | 110 | foreach ($group->xpath('testcase') as $child) { |
| 111 | 111 | $attr = $child->attributes(); |
| 112 | 112 | $case = array( |
| 113 | - 'name' => (String) $attr['name'], |
|
| 114 | - 'classname' => (String) $attr['classname'], |
|
| 115 | - 'time' => (float) $attr['time'], |
|
| 116 | - 'status' => (String) $attr['status'], |
|
| 113 | + 'name' => (String)$attr['name'], |
|
| 114 | + 'classname' => (String)$attr['classname'], |
|
| 115 | + 'time' => (float)$attr['time'], |
|
| 116 | + 'status' => (String)$attr['status'], |
|
| 117 | 117 | ); |
| 118 | 118 | |
| 119 | 119 | if ($case['status'] == 'failed') { |
@@ -125,12 +125,12 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | foreach ($child->xpath('failure') as $failure) { |
| 127 | 127 | $attr = $failure->attributes(); |
| 128 | - $error['type'] = (String) $attr['type']; |
|
| 129 | - $error['message'] = (String) $attr['message']; |
|
| 128 | + $error['type'] = (String)$attr['type']; |
|
| 129 | + $error['message'] = (String)$attr['message']; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | foreach ($child->xpath('system-err') as $system_err) { |
| 133 | - $error['raw'] = (String) $system_err; |
|
| 133 | + $error['raw'] = (String)$system_err; |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | $case['error'] = $error; |
@@ -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,11 +74,11 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | if (array_key_exists('prefer_dist', $options)) { |
| 77 | - $this->preferDist = (bool) $options['prefer_dist']; |
|
| 77 | + $this->preferDist = (bool)$options['prefer_dist']; |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | if (array_key_exists('no_dev', $options)) { |
| 81 | - $this->nodev = (bool) $options['no_dev']; |
|
| 81 | + $this->nodev = (bool)$options['no_dev']; |
|
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | |
@@ -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 | |