@@ -39,7 +39,7 @@ |
||
39 | 39 | #[\ReturnTypeWillChange] |
40 | 40 | public function current() |
41 | 41 | { |
42 | - return $this->valid() ? $this->offsetGet($this->key) : null ; |
|
42 | + return $this->valid() ? $this->offsetGet($this->key) : null; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | public function next(): void |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * @param ArrayAccess $cookie |
18 | 18 | * @param int $expire |
19 | 19 | */ |
20 | - public function init(ArrayAccess &$cookie, int $expire = 3600): void; |
|
20 | + public function init(ArrayAccess & $cookie, int $expire = 3600): void; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Remove known token |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | public function getValue() |
28 | 28 | { |
29 | - return $this->submitted ? $this->originalValue : '' ; |
|
29 | + return $this->submitted ? $this->originalValue : ''; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | public function setTitle(string $title): void |
@@ -19,7 +19,7 @@ |
||
19 | 19 | if (empty($title) && !empty($alias)) { |
20 | 20 | $title = $alias; |
21 | 21 | } |
22 | - $title = empty($title) ? strval($this->originalValue) : $title ; |
|
22 | + $title = empty($title) ? strval($this->originalValue) : $title; |
|
23 | 23 | if (empty($alias)) { |
24 | 24 | $alias = $title; |
25 | 25 | } |
@@ -164,7 +164,7 @@ |
||
164 | 164 | |
165 | 165 | protected function escaped(string $content): string |
166 | 166 | { |
167 | - return static::$escapeOutput ? htmlspecialchars($content, ENT_QUOTES | ENT_HTML5, 'UTF-8', false) : $content ; |
|
167 | + return static::$escapeOutput ? htmlspecialchars($content, ENT_QUOTES | ENT_HTML5, 'UTF-8', false) : $content; |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | public function count(): int |
@@ -71,6 +71,6 @@ |
||
71 | 71 | protected function getHtml(): string |
72 | 72 | { |
73 | 73 | return '<script src="' . NOCAPTCHA_API_SERVER . '"></script> |
74 | - <div class="g-recaptcha" data-sitekey="' . static::$publicKey. '"></div>'; |
|
74 | + <div class="g-recaptcha" data-sitekey="' . static::$publicKey . '"></div>'; |
|
75 | 75 | } |
76 | 76 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | class Text extends AGraphical |
16 | 16 | { |
17 | - public function set(string $alias, ArrayAccess &$session, string $errorMessage, string $font = '/usr/share/fonts/truetype/freefont/FreeMono.ttf'): self |
|
17 | + public function set(string $alias, ArrayAccess & $session, string $errorMessage, string $font = '/usr/share/fonts/truetype/freefont/FreeMono.ttf'): self |
|
18 | 18 | { |
19 | 19 | $this->font = $font; |
20 | 20 | $text = strtoupper($this->generateRandomString(8)); |
@@ -30,10 +30,10 @@ |
||
30 | 30 | public function __construct(ITimeout $libTimeout = null, string $captchaError = '') |
31 | 31 | { |
32 | 32 | $this->libTimeout = $libTimeout; |
33 | - $this->captchaError = empty($captchaError) ? $this->captchaError : $captchaError ; |
|
33 | + $this->captchaError = empty($captchaError) ? $this->captchaError : $captchaError; |
|
34 | 34 | } |
35 | 35 | |
36 | - public function getCaptcha(int $type, ArrayAccess &$session, string $alias = 'captcha'): ACaptcha |
|
36 | + public function getCaptcha(int $type, ArrayAccess & $session, string $alias = 'captcha'): ACaptcha |
|
37 | 37 | { |
38 | 38 | switch ($type) { |
39 | 39 | case static::TYPE_DISABLED: |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | public function getValue() |
26 | 26 | { |
27 | - return $this->getSelected() ? $this->originalValue : '' ; |
|
27 | + return $this->getSelected() ? $this->originalValue : ''; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |