Test Failed
Push — master ( e3b206...99d1d4 )
by Enjoys
02:23 queued 23s
created
src/Rule/UploadCheck/SystemCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@
 block discarded – undo
9 9
 
10 10
 final class SystemCheck implements UploadCheckInterface
11 11
 {
12
-    private UploadedFileInterface|false $value;
12
+    private UploadedFileInterface | false $value;
13 13
     private Ruleable $element;
14 14
     private ?string $message;
15 15
 
16
-    public function __construct(false|UploadedFileInterface $value, Ruleable $element, string $message = null)
16
+    public function __construct(false | UploadedFileInterface $value, Ruleable $element, string $message = null)
17 17
     {
18 18
         $this->value = $value;
19 19
         $this->element = $element;
Please login to merge, or discard this patch.
src/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 final class Helper
8 8
 {
9 9
 
10
-    public static function arrayRecursiveSearchKeyMap(mixed $needle, array $haystack): array|null
10
+    public static function arrayRecursiveSearchKeyMap(mixed $needle, array $haystack): array | null
11 11
     {
12 12
         /** @psalm-suppress MixedAssignment */
13 13
         foreach ($haystack as $firsLevelKey => $value) {
Please login to merge, or discard this patch.
src/Traits/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         return $this;
126 126
     }
127 127
 
128
-    private function getElementKey(string|Element $element): int|false
128
+    private function getElementKey(string | Element $element): int | false
129 129
     {
130 130
         $name = ($element instanceof Element) ? $element->getName() : $element;
131 131
 
Please login to merge, or discard this patch.
src/Elements/Csrf.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $this->addRule(
32 32
             Rules::CALLBACK,
33 33
             'CSRF Attack detected',
34
-            function (string $key) {
34
+            function(string $key) {
35 35
                 /** @psalm-suppress  PossiblyNullArgument, MixedArgument */
36 36
                 if (password_verify($key, $this->getRequest()->getParsedBody()[Form::_TOKEN_CSRF_] ?? '')) {
37 37
                     return true;
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     private function getCsrfSecret(): string
66 66
     {
67
-        $secret = (string)$this->session->get('csrf_secret');
67
+        $secret = (string) $this->session->get('csrf_secret');
68 68
 
69 69
         if (empty($secret)) {
70 70
             $secret = $this->generateSecret();
Please login to merge, or discard this patch.
src/Form.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @param array|Closure():array $data
95 95
      * @return $this
96 96
      */
97
-    public function setDefaults(array|Closure $data): Form
97
+    public function setDefaults(array | Closure $data): Form
98 98
     {
99 99
         if ($this->submitted === true) {
100 100
             /** @var array $requestData */
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             };
106 106
             $data = array_filter(
107 107
                 $requestData,
108
-                function ($k) {
108
+                function($k) {
109 109
                     return !in_array($k, [self::_TOKEN_CSRF_, self::_TOKEN_SUBMIT_]);
110 110
                 },
111 111
                 ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.
src/Rule/UploadCheck/MaxsizeCheck.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,15 +10,15 @@
 block discarded – undo
10 10
 
11 11
 final class MaxsizeCheck implements UploadCheckInterface
12 12
 {
13
-    private UploadedFileInterface|false $value;
13
+    private UploadedFileInterface | false $value;
14 14
     private Ruleable $element;
15
-    private int|string $thresholdSize;
15
+    private int | string $thresholdSize;
16 16
     private ?string $message;
17 17
 
18 18
     public function __construct(
19
-        false|UploadedFileInterface $value,
19
+        false | UploadedFileInterface $value,
20 20
         Ruleable $element,
21
-        int|string $thresholdSize,
21
+        int | string $thresholdSize,
22 22
         ?string $message = null
23 23
     ) {
24 24
         $this->value = $value;
Please login to merge, or discard this patch.
src/Rule/UploadCheck/ExtensionsCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@
 block discarded – undo
9 9
 
10 10
 final class ExtensionsCheck implements UploadCheckInterface
11 11
 {
12
-    private UploadedFileInterface|false $value;
12
+    private UploadedFileInterface | false $value;
13 13
     private Ruleable $element;
14 14
     private array $expectedExtensions;
15 15
     private ?string $message;
16 16
 
17 17
     public function __construct(
18
-        false|UploadedFileInterface $value,
18
+        false | UploadedFileInterface $value,
19 19
         Ruleable $element,
20 20
         string $expectedExtensions,
21 21
         ?string $message = null
Please login to merge, or discard this patch.
src/Traits/Attributes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         return $this->attributes[$namespace];
25 25
     }
26 26
 
27
-    public function getAttribute(string $name, string $namespace = 'general'): AttributeInterface|null
27
+    public function getAttribute(string $name, string $namespace = 'general'): AttributeInterface | null
28 28
     {
29 29
         return $this->getAttributeCollection($namespace)->get($name);
30 30
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     public function getAttributesString(string $namespace = 'general'): string
90 90
     {
91
-        $attributesStringed = (string)$this->getAttributeCollection($namespace);
91
+        $attributesStringed = (string) $this->getAttributeCollection($namespace);
92 92
 
93 93
         if (empty($attributesStringed)) {
94 94
             return '';
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         return ' ' . $attributesStringed;
98 98
     }
99 99
 
100
-    public function removeAttribute(string|AttributeInterface $attribute, string $namespace = 'general'): static
100
+    public function removeAttribute(string | AttributeInterface $attribute, string $namespace = 'general'): static
101 101
     {
102 102
         $this->getAttributeCollection($namespace)->remove($attribute);
103 103
         return $this;
Please login to merge, or discard this patch.
src/Traits/Fill.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      * Из-за того что php преобразует строки, содержащие целое число к int, приходится добавлять
49 49
      * пробел либо в начало, либо в конец ключа. В итоге пробелы в начале и в конце удаляются автоматически.
50 50
      */
51
-    public function fill(array|Closure $data, bool $useTitleAsValue = false): static
51
+    public function fill(array | Closure $data, bool $useTitleAsValue = false): static
52 52
     {
53 53
         if ($data instanceof Closure) {
54 54
             /** @var mixed $data */
Please login to merge, or discard this patch.