Passed
Push — master ( 48e668...4fab89 )
by Petr
03:04
created
php-src/Controls/Button.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
php-src/Controls/AControl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
php-src/Controls/Security/Csrf/Simple.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /** @var int */
20 20
     protected $expire = 3600;
21 21
 
22
-    public function init(ArrayAccess &$session, int $expire = 3600): void
22
+    public function init(ArrayAccess & $session, int $expire = 3600): void
23 23
     {
24 24
         $this->session = $session;
25 25
         $this->expire = $expire;
Please login to merge, or discard this patch.
php-src/Controls/Security/Csrf/JWT.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /** @var array<string, string> Token cache */
26 26
     protected $tokens = [];
27 27
 
28
-    public function init(ArrayAccess &$cookie, int $expire = 3600): void
28
+    public function init(ArrayAccess & $cookie, int $expire = 3600): void
29 29
     {
30 30
         if (empty($cookie['csrf_token'])) {
31 31
             $cookie['csrf_token'] = uniqid('csrf', true);
Please login to merge, or discard this patch.
php-src/Controls/Security/Captcha/NoCaptcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,6 +71,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
php-src/Controls/Security/Captcha/Text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
php-src/Controls/Security/Captcha/AGraphical.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /** @var ArrayAccess */
24 24
     protected $session = null;
25 25
 
26
-    protected function fillSession(string $alias, ArrayAccess &$session, string $text): void
26
+    protected function fillSession(string $alias, ArrayAccess & $session, string $text): void
27 27
     {
28 28
         $stringNow = $alias . '_now';
29 29
         $stringLast = $alias . '_last';
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
      */
98 98
     protected function generateRandomString(int $stringLength = 16): string
99 99
     {
100
-        $all = ['1','2','3','4','5','6','7','8','9','0','a','b','c','d','e','f','g','h','i',
101
-            'j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','!','$','%'];
100
+        $all = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
101
+            'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '!', '$', '%'];
102 102
         $string = '';
103 103
         for ($i = 0; $i < $stringLength; $i++) {
104 104
             $rand = mt_rand(0, count($all) - 1);
Please login to merge, or discard this patch.
php-src/Controls/Security/Captcha/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
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:
Please login to merge, or discard this patch.
php-src/Controls/Security/Timeout/Timeout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@
 block discarded – undo
23 23
     /** @var int How log interval is preset after correct response */
24 24
     protected $timeout = 0;
25 25
 
26
-    public function __construct(ArrayAccess &$session, int $timeout = 0)
26
+    public function __construct(ArrayAccess & $session, int $timeout = 0)
27 27
     {
28 28
         $this->session = $session;
29 29
         $this->timeout = $timeout;
30 30
         $this->time = ($this->session->offsetExists(static::CAPTCHA_TIME))
31 31
             ? intval(strval($this->session->offsetGet(static::CAPTCHA_TIME)))
32
-            : 0 ;
32
+            : 0;
33 33
     }
34 34
 
35 35
     public function updateExpire(): void
Please login to merge, or discard this patch.