Passed
Push — master ( 38467b...a00135 )
by Enjoys
07:06 queued 04:22
created
src/Captcha/Defaults/Defaults.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -144,15 +144,15 @@
 block discarded – undo
144 144
 
145 145
             // Формируем координаты для вывода символа
146 146
             if (empty($x)) {
147
-                $x = (int)($width * 0.08);
147
+                $x = (int) ($width * 0.08);
148 148
             } else {
149
-                $x = (int)($x + ($width * 0.8) / \count($letters) + \rand(0, (int)($width * 0.01)));
149
+                $x = (int) ($x + ($width * 0.8) / \count($letters) + \rand(0, (int) ($width * 0.01)));
150 150
             }
151 151
 
152 152
             if ($h == rand(1, 2)) {
153
-                $y = (int)((($height * 1) / 4) + \rand(0, (int)($height * 0.1)));
153
+                $y = (int) ((($height * 1) / 4) + \rand(0, (int) ($height * 0.1)));
154 154
             } else {
155
-                $y = (int)((($height * 1) / 4) - \rand(0, (int)($height * 0.1)));
155
+                $y = (int) ((($height * 1) / 4) - \rand(0, (int) ($height * 0.1)));
156 156
             }
157 157
 
158 158
 
Please login to merge, or discard this patch.
src/Elements/Range.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     protected string $type = 'range';
21 21
 
22
-    public function setMin(string|int $min): self
22
+    public function setMin(string | int $min): self
23 23
     {
24 24
         Assert::numeric($min);
25 25
         $min = (int) $min;
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     }
29 29
 
30 30
 
31
-    public function setMax(int|string $max): self
31
+    public function setMax(int | string $max): self
32 32
     {
33 33
         Assert::numeric($max);
34 34
         $max = (int) $max;
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @param numeric $step
42 42
      * @return $this
43 43
      */
44
-    public function setStep(float|int|string $step): self
44
+    public function setStep(float | int | string $step): self
45 45
     {
46 46
         Assert::numeric($step);
47 47
         $this->setAttr(AttributeFactory::create('step', $step));
Please login to merge, or discard this patch.
src/Elements/Number.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     protected string $type = 'number';
21 21
 
22 22
 
23
-    public function setMin(string|int $min): self
23
+    public function setMin(string | int $min): self
24 24
     {
25 25
         Assert::numeric($min);
26 26
         $min = (int) $min;
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     }
30 30
 
31 31
 
32
-    public function setMax(int|string $max): self
32
+    public function setMax(int | string $max): self
33 33
     {
34 34
         Assert::numeric($max);
35 35
         $max = (int) $max;
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param numeric $step
43 43
      * @return $this
44 44
      */
45
-    public function setStep(float|int|string $step): self
45
+    public function setStep(float | int | string $step): self
46 46
     {
47 47
         Assert::numeric($step);
48 48
         $this->setAttr(AttributeFactory::create('step', $step));
Please login to merge, or discard this patch.
src/Traits/Fill.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
             /** @var AttributeCollection $fillCollection */
77 77
             $fillCollection = $element->getAttributeCollection('fill');
78 78
             foreach ($fillCollection as $attr) {
79
-              //  if (in_array($attr->getName(), ['id', 'name', 'disabled', 'readonly'])) {
79
+                //  if (in_array($attr->getName(), ['id', 'name', 'disabled', 'readonly'])) {
80 80
                     $element->setAttr($attr);
81
-                 //   $fillCollection->remove($attr);
82
-               // }
81
+                    //   $fillCollection->remove($attr);
82
+                // }
83 83
             }
84 84
 
85 85
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     }
128 128
 
129 129
     /**
130
- * @param  array<Fillable&Element> $elements
130
+     * @param  array<Fillable&Element> $elements
131 131
      * @return Fillable
132 132
      */
133 133
     public function addElements(array $elements): Fillable
Please login to merge, or discard this patch.
src/Rule/Upload.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         $parsed = $this->parseRuleOpts($ruleOpts);
126 126
 
127 127
         $threshold_size = $parsed['param'];
128
-       // Assert::in($threshold_size);
128
+        // Assert::in($threshold_size);
129 129
 
130 130
         $message = $parsed['message'];
131 131
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     /**
117 117
      * @param false|UploadedFileInterface $value
118 118
      */
119
-    private function checkMaxsize($value, int|array|string $ruleOpts, Ruleable $element): bool
119
+    private function checkMaxsize($value, int | array | string $ruleOpts, Ruleable $element): bool
120 120
     {
121 121
         if ($value === false) {
122 122
             return true;
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     /**
147 147
      * @param false|UploadedFileInterface $value
148 148
      */
149
-    private function checkExtensions($value, string|array $ruleOpts, Ruleable $element): bool
149
+    private function checkExtensions($value, string | array $ruleOpts, Ruleable $element): bool
150 150
     {
151 151
         if ($value === false) {
152 152
             return true;
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     private function parseRuleOpts($opts): array
176 176
     {
177 177
         if (!is_array($opts)) {
178
-            $opts = (array)$opts;
178
+            $opts = (array) $opts;
179 179
             $opts[1] = null;
180 180
         }
181 181
         list($param, $message) = $opts;
Please login to merge, or discard this patch.