Test Setup Failed
Push — master ( 2d8834...88c29c )
by noitran
02:56
created
src/Parsers/Request/Illuminate/RequestParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     protected function parseExpression($filterValue): string
147 147
     {
148
-        if (! \is_array($filterValue)) {
148
+        if (!\is_array($filterValue)) {
149 149
             return config('rql.filtering.default_expression', '$eq');
150 150
         }
151 151
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
             $parsedDataType = substr($value, 0, $lastColonPosition);
170 170
 
171
-            if (! $this->isValidDataType($parsedDataType)) {
171
+            if (!$this->isValidDataType($parsedDataType)) {
172 172
                 return config('rql.filtering.default_data_type', '$string');
173 173
             }
174 174
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     {
188 188
         $value = $this->extractValue($filterValue);
189 189
 
190
-        if (Str::startsWith($value, ['$']) && false !== strpos($value, ':')) {
190
+        if (Str::startsWith($value, [ '$' ]) && false !== strpos($value, ':')) {
191 191
             $lastColonPosition = strpos($value, ':');
192 192
 
193 193
             return substr($value, $lastColonPosition + 1);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     private function extractValue($filterValue): string
205 205
     {
206
-        if (! \is_array($filterValue)) {
206
+        if (!\is_array($filterValue)) {
207 207
             return $filterValue;
208 208
         }
209 209
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     private function isValidDataType($dataType, $strict = false): bool
222 222
     {
223
-        if (! \in_array($dataType, config('rql.filtering.allowed_data_types', ['$string']), true)) {
223
+        if (!\in_array($dataType, config('rql.filtering.allowed_data_types', [ '$string' ]), true)) {
224 224
             if ($strict) {
225 225
                 throw new RuntimeException('Invalid/Not allowed data type passed.');
226 226
             }
Please login to merge, or discard this patch.