Passed
Pull Request — master (#102)
by Zing
04:18
created
src/Filters/FiltersExact.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     protected function isRelationProperty(Builder $query, string $property): bool
42 42
     {
43
-        if (! Str::contains($property, '.')) {
43
+        if (!Str::contains($property, '.')) {
44 44
             return false;
45 45
         }
46 46
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             return false;
49 49
         }
50 50
 
51
-        return ! Str::startsWith($property, $query->getModel()->getTable() . '.');
51
+        return !Str::startsWith($property, $query->getModel()->getTable() . '.');
52 52
     }
53 53
 
54 54
     protected function withRelationConstraint(Builder $query, $value, string $property): Builder
Please login to merge, or discard this patch.
src/Filters/FiltersBetween.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     protected function withPropertyConstraint(Builder $query, $value, $property): Builder
13 13
     {
14
-        if (! is_array($value) || count($value) !== 2) {
14
+        if (!is_array($value) || count($value) !== 2) {
15 15
             throw ParameterException::tooFewElementsForBetweenExpression();
16 16
         }
17 17
 
Please login to merge, or discard this patch.
src/QueryBuilderServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 {
14 14
     public function boot(): void
15 15
     {
16
-        if (! $this->app->runningInConsole()) {
16
+        if (!$this->app->runningInConsole()) {
17 17
             return;
18 18
         }
19 19
 
20
-        if (! $this->app instanceof Laravel) {
20
+        if (!$this->app instanceof Laravel) {
21 21
             return;
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/Filter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
                 return filter_var($value, FILTER_VALIDATE_BOOLEAN);
96 96
             case CastType::INTEGER:
97 97
                 return filter_var($value, FILTER_VALIDATE_INT);
98
-            case CastType::ARRAY:
98
+            case CastType::array:
99 99
                 return explode(',', $value);
100 100
             default:
101 101
                 if (in_array(strtolower($value), ['true', 'false'], true)) {
Please login to merge, or discard this patch.
src/Enums/CastType.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
     public const BOOLEAN = 'boolean';
12 12
 
13
-    public const ARRAY = 'array';
13
+    public const array = 'array';
14 14
 
15 15
     public const INTEGER = 'integer';
16 16
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * @deprecated use CastType::ARRAY instead
29 29
      */
30
-    public const CAST_ARRAY = self::ARRAY;
30
+    public const CAST_ARRAY = self::array;
31 31
 
32 32
     /**
33 33
      * @deprecated use CastType::INTEGER instead
Please login to merge, or discard this patch.