@@ -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 | } |
@@ -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'); |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | * @param DataEntityInterface &$entity |
| 59 | 59 | * @return DataStorageInterface |
| 60 | 60 | */ |
| 61 | - public function saveEntity(DataEntityInterface &$entity); |
|
| 61 | + public function saveEntity(DataEntityInterface&$entity); |
|
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Returns the DataAdapter instance. |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * @param DataEntityInterface $entity |
| 49 | 49 | * @param array $data |
| 50 | 50 | */ |
| 51 | - protected function populateEntity(DataEntityInterface &$entity, array $data) |
|
| 51 | + protected function populateEntity(DataEntityInterface&$entity, array $data) |
|
| 52 | 52 | { |
| 53 | 53 | /* @var UserEntity $entity */ |
| 54 | 54 | $entity->setUserId($data[$this->idKey]) |
@@ -80,8 +80,8 @@ discard block |
||
| 80 | 80 | $this->email => $entity->getEmail(), |
| 81 | 81 | $this->password => $entity->getPassword(), |
| 82 | 82 | $this->hash => $entity->getHash(), |
| 83 | - $this->isActive => (int)$entity->getActive(), |
|
| 84 | - $this->isEnabled => (int)$entity->getEnabled(), |
|
| 83 | + $this->isActive => (int) $entity->getActive(), |
|
| 84 | + $this->isEnabled => (int) $entity->getEnabled(), |
|
| 85 | 85 | $this->dateCreated => $dateCreated instanceof DateTime ? $dateCreated->format('Y-m-d H:i:s') : null, |
| 86 | 86 | $this->dateModified => $dateModified instanceof DateTime ? $dateModified->format('Y-m-d H:i:s') : null |
| 87 | 87 | ]; |