Passed
Branch master (1fbb83)
by Petr
03:24
created
php-src/Controls/Security/Csrf/Simple2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     protected ?ArrayAccess $session = null;
18 18
     protected int $expire = 3600;
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
         $this->session = $cookie;
23 23
         $this->expire = $expire;
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
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     protected ?ArrayAccess $session = null;
18 18
     protected int $expire = 3600;
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
         $this->session = $cookie;
23 23
         $this->expire = $expire;
Please login to merge, or discard this patch.
php-src/Controls/Security/MultiSend.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
     protected ?ArrayAccess $cookie = null;
22 22
 
23
-    public function setHidden(string $alias, ArrayAccess &$cookie, string $errorMessage): self
23
+    public function setHidden(string $alias, ArrayAccess & $cookie, string $errorMessage): self
24 24
     {
25 25
         $this->cookie = $cookie;
26 26
         $this->setEntry($alias);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $hashStack = $this->getCookie()->offsetExists($this->getKey() . 'SubmitCheck')
66 66
             ? (array) json_decode($this->getCookie()->offsetGet($this->getKey() . 'SubmitCheck'), true)
67
-            : null ;
67
+            : null;
68 68
         if (is_null($hashStack)) {
69 69
             $hashStack = [];
70 70
         }
Please login to merge, or discard this patch.
php-src/Form/TControl.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
      * @return Controls\Security\Csrf
374 374
      * @codeCoverageIgnore link adapter remote resource
375 375
      */
376
-    public function addCsrf(string $alias, ArrayAccess &$cookie, string $errorMessage, $attributes = []): Controls\Security\Csrf
376
+    public function addCsrf(string $alias, ArrayAccess & $cookie, string $errorMessage, $attributes = []): Controls\Security\Csrf
377 377
     {
378 378
         $csrf = new Controls\Security\Csrf();
379 379
         $csrf->setHidden($alias, $cookie, $errorMessage)->addAttributes($attributes);
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
      * @param array<string, string|array<string>>|string $attributes
390 390
      * @return Controls\Security\MultiSend
391 391
      */
392
-    public function addMultiSend(string $alias, ArrayAccess &$cookie, string $errorMessage, $attributes = []): Controls\Security\MultiSend
392
+    public function addMultiSend(string $alias, ArrayAccess & $cookie, string $errorMessage, $attributes = []): Controls\Security\MultiSend
393 393
     {
394 394
         $csrf = new Controls\Security\MultiSend();
395 395
         $csrf->setHidden($alias, $cookie, $errorMessage)->addAttributes($attributes);
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
      * @param string $errorMessage
418 418
      * @return Controls\Security\Captcha\Text
419 419
      */
420
-    public function addCaptchaText(string $alias, ArrayAccess &$session, string $errorMessage = 'Captcha mismatch'): Controls\Security\Captcha\Text
420
+    public function addCaptchaText(string $alias, ArrayAccess & $session, string $errorMessage = 'Captcha mismatch'): Controls\Security\Captcha\Text
421 421
     {
422 422
         $captcha = new Controls\Security\Captcha\Text();
423 423
         $captcha->set($alias, $session, $errorMessage);
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
      * @param string $errorMessage
433 433
      * @return Controls\Security\Captcha\Numerical
434 434
      */
435
-    public function addCaptchaMath(string $alias, ArrayAccess &$session, string $errorMessage = 'Captcha mismatch'): Controls\Security\Captcha\Numerical
435
+    public function addCaptchaMath(string $alias, ArrayAccess & $session, string $errorMessage = 'Captcha mismatch'): Controls\Security\Captcha\Numerical
436 436
     {
437 437
         $captcha = new Controls\Security\Captcha\Numerical();
438 438
         $captcha->set($alias, $session, $errorMessage);
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
      * @param string $errorMessage
448 448
      * @return Controls\Security\Captcha\ColourfulText
449 449
      */
450
-    public function addCaptchaColour(string $alias, ArrayAccess &$session, string $errorMessage = 'Captcha mismatch'): Controls\Security\Captcha\ColourfulText
450
+    public function addCaptchaColour(string $alias, ArrayAccess & $session, string $errorMessage = 'Captcha mismatch'): Controls\Security\Captcha\ColourfulText
451 451
     {
452 452
         $captcha = new Controls\Security\Captcha\ColourfulText();
453 453
         $captcha->set($alias, $session, $errorMessage);
Please login to merge, or discard this patch.