Passed
Push — 5.x ( a4c89e...fdc2ab )
by Enjoys
02:23
created
src/Rule/Upload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      * @noinspection PhpMissingParamTypeInspection
129 129
      * @noinspection PhpUnusedPrivateMethodInspection
130 130
      */
131
-    private function checkMaxsize($value, int|array|string $ruleOpts, Ruleable $element): bool
131
+    private function checkMaxsize($value, int | array | string $ruleOpts, Ruleable $element): bool
132 132
     {
133 133
         if ($value === false) {
134 134
             return true;
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @noinspection PhpMissingParamTypeInspection
161 161
      * @noinspection PhpUnusedPrivateMethodInspection
162 162
      */
163
-    private function checkExtensions($value, string|array $ruleOpts, Ruleable $element): bool
163
+    private function checkExtensions($value, string | array $ruleOpts, Ruleable $element): bool
164 164
     {
165 165
         if ($value === false) {
166 166
             return true;
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     private function parseRuleOpts(mixed $opts): array
190 190
     {
191 191
         if (!is_array($opts)) {
192
-            $opts = (array)$opts;
192
+            $opts = (array) $opts;
193 193
             $opts[1] = null;
194 194
         }
195 195
         list($param, $message) = $opts;
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
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         return $this->attributes[$namespace];
26 26
     }
27 27
 
28
-    public function getAttribute(string $name, string $namespace = 'general'): AttributeInterface|null
28
+    public function getAttribute(string $name, string $namespace = 'general'): AttributeInterface | null
29 29
     {
30 30
         return $this->getAttributeCollection($namespace)->get($name);
31 31
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function getAttributesString(string $namespace = 'general'): string
115 115
     {
116
-        $attributesStringed = (string)$this->getAttributeCollection($namespace);
116
+        $attributesStringed = (string) $this->getAttributeCollection($namespace);
117 117
 
118 118
         if (empty($attributesStringed)) {
119 119
             return '';
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      * @return $this
127 127
      * @noinspection PhpMissingReturnTypeInspection
128 128
      */
129
-    public function removeAttribute(string|AttributeInterface $attribute, string $namespace = 'general')
129
+    public function removeAttribute(string | AttributeInterface $attribute, string $namespace = 'general')
130 130
     {
131 131
         $this->getAttributeCollection($namespace)->remove($attribute);
132 132
         return $this;
Please login to merge, or discard this patch.