@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | /** |
141 | 141 | * Sets element value. |
142 | 142 | * |
143 | - * @param mixed $value |
|
143 | + * @param string $value |
|
144 | 144 | * @return AbstractElement |
145 | 145 | */ |
146 | 146 | public function setValue($value) |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | /** |
263 | 263 | * Sets the element errors. Usually the validator should set it, but it is allowed to set from outside too. |
264 | 264 | * |
265 | - * @param array $errors |
|
265 | + * @param string[] $errors |
|
266 | 266 | * @return AbstractElement |
267 | 267 | */ |
268 | 268 | public function setErrors(array $errors) |
@@ -82,7 +82,7 @@ |
||
82 | 82 | throw new RuntimeException('Cannot start session. Session is already started.', 1000); |
83 | 83 | } |
84 | 84 | |
85 | - session_name($this->cookiePrefix.'-'.bin2hex($name . $this->sessionNameSalt)); |
|
85 | + session_name($this->cookiePrefix.'-'.bin2hex($name.$this->sessionNameSalt)); |
|
86 | 86 | session_set_cookie_params($timeOut, $path, $domain, $secure, $httpOnly); |
87 | 87 | session_start(); |
88 | 88 |
@@ -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']); |