@@ -52,7 +52,7 @@ |
||
52 | 52 | ); |
53 | 53 | |
54 | 54 | // For simplicity in rendering (twig macro), we store it in an array. |
55 | - $this->nodes[0] =& $this->form; |
|
55 | + $this->nodes[0] = & $this->form; |
|
56 | 56 | // Set a default salt for the form name. If the AutoComplete attribute is 'off', it will be added to the form's |
57 | 57 | // name attribute. The default salt will change every hour. |
58 | 58 | $this->salt = md5(gmdate('YmdH')); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | public function getValue() |
45 | 45 | { |
46 | 46 | if (empty($this->options)) { |
47 | - return (int)$this->value; |
|
47 | + return (int) $this->value; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | return parent::getValue(); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | // Turn off aut complete feature. |
46 | 46 | $this->loginForm->setAutoComplete(false); |
47 | 47 | // test data setter |
48 | - $this->loginForm->setData((array)$this->request->getParsedBody()); |
|
48 | + $this->loginForm->setData((array) $this->request->getParsedBody()); |
|
49 | 49 | |
50 | 50 | if (!empty($this->request->getParsedBody())) { |
51 | 51 | $this->session->set('session', $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * @param DataEntityInterface $entity |
53 | 53 | * @param array $data |
54 | 54 | */ |
55 | - protected function populateEntity(DataEntityInterface &$entity, array $data) |
|
55 | + protected function populateEntity(DataEntityInterface&$entity, array $data) |
|
56 | 56 | { |
57 | 57 | /* @var UserEntity $entity */ |
58 | 58 | $entity->setUserId($data[$this->idKey]) |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | { |
273 | 273 | list($columnNameOnly) = explode(' ', $column); |
274 | 274 | |
275 | - $inParameters = str_repeat('?,', $parameterCount - 1).'?'; |
|
275 | + $inParameters = str_repeat('?,', $parameterCount - 1).'?'; |
|
276 | 276 | |
277 | 277 | return $columnNameOnly.' IN ('.$inParameters.')'; |
278 | 278 | } |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | * |
326 | 326 | * @codeCoverageIgnore Don't test external library. |
327 | 327 | */ |
328 | - private function bindValuesToStatement(PDOStatement &$statement, array $queryBind) |
|
328 | + private function bindValuesToStatement(PDOStatement&$statement, array $queryBind) |
|
329 | 329 | { |
330 | 330 | foreach ($queryBind as $index => $data) { |
331 | 331 | $paramType = PDO::PARAM_STR; |
@@ -89,5 +89,5 @@ |
||
89 | 89 | * @param DataEntityInterface $entity |
90 | 90 | * @param array $data |
91 | 91 | */ |
92 | - abstract protected function populateEntity(DataEntityInterface &$entity, array $data); |
|
92 | + abstract protected function populateEntity(DataEntityInterface&$entity, array $data); |
|
93 | 93 | } |
@@ -48,10 +48,10 @@ discard block |
||
48 | 48 | ini_set('session.entropy_file', '/dev/urandom'); |
49 | 49 | ini_set('session.entropy_length', '16'); |
50 | 50 | ini_set('session.hash_function', $config['hash_function']); |
51 | - ini_set('session.use_only_cookies', (int)$config['use_only_cookies']); |
|
52 | - ini_set('session.use_cookies', (int)$config['use_cookies']); |
|
53 | - ini_set('session.use_trans_sid', (int)$config['use_trans_sid']); |
|
54 | - ini_set('session.cookie_httponly', (int)$config['cookie_http_only']); |
|
51 | + ini_set('session.use_only_cookies', (int) $config['use_only_cookies']); |
|
52 | + ini_set('session.use_cookies', (int) $config['use_cookies']); |
|
53 | + ini_set('session.use_trans_sid', (int) $config['use_trans_sid']); |
|
54 | + ini_set('session.cookie_httponly', (int) $config['cookie_http_only']); |
|
55 | 55 | ini_set('session.save_path', $config['save_path']); |
56 | 56 | } |
57 | 57 | // @codeCoverageIgnoreEnd |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | // @codeCoverageIgnoreStart |
132 | 132 | if (!defined('PHPUNIT_WEBHEMI_TESTSUITE')) { |
133 | - session_name($this->cookiePrefix.'-'.bin2hex($name . $this->sessionNameSalt)); |
|
133 | + session_name($this->cookiePrefix.'-'.bin2hex($name.$this->sessionNameSalt)); |
|
134 | 134 | session_set_cookie_params($timeOut, $path, $domain, $secure, $httpOnly); |
135 | 135 | session_start(); |
136 | 136 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @return ResponseInterface |
44 | 44 | */ |
45 | - public function __invoke(ServerRequestInterface &$request, ResponseInterface $response) |
|
45 | + public function __invoke(ServerRequestInterface&$request, ResponseInterface $response) |
|
46 | 46 | { |
47 | 47 | $template = $request->getAttribute('template'); |
48 | 48 | $data = $request->getAttribute('data'); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @param DataEntityInterface $entity |
44 | 44 | * @param array $data |
45 | 45 | */ |
46 | - protected function populateEntity(DataEntityInterface &$entity, array $data) |
|
46 | + protected function populateEntity(DataEntityInterface&$entity, array $data) |
|
47 | 47 | { |
48 | 48 | /* @var ApplicationEntity $entity */ |
49 | 49 | $entity->setApplicationId($data[$this->idKey]) |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $this->name => $entity->getName(), |
73 | 73 | $this->title => $entity->getTitle(), |
74 | 74 | $this->description => $entity->getDescription(), |
75 | - $this->isReadOnly => (int)$entity->getReadOnly(), |
|
75 | + $this->isReadOnly => (int) $entity->getReadOnly(), |
|
76 | 76 | $this->dateCreated => $dateCreated instanceof DateTime ? $dateCreated->format('Y-m-d H:i:s') : null, |
77 | 77 | $this->dateModified => $dateModified instanceof DateTime ? $dateModified->format('Y-m-d H:i:s') : null |
78 | 78 | ]; |