Passed
Pull Request — main (#58)
by
unknown
14:16 queued 21s
created
src/Actions/NovaActionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public static function novaAction(string $action): MockAction
18 18
     {
19
-        if (! \is_subclass_of($action, Action::class)) {
19
+        if (!\is_subclass_of($action, Action::class)) {
20 20
             throw new InvalidNovaActionException('The class provided is not a valid Nova Action.');
21 21
         }
22 22
 
Please login to merge, or discard this patch.
src/Lenses/NovaLensTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public static function novaLens(string $lens, ?string $model = null): MockLens
19 19
     {
20
-        if (! \is_subclass_of($lens, Lens::class)) {
20
+        if (!\is_subclass_of($lens, Lens::class)) {
21 21
             throw new InvalidNovaLensException();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/Lenses/MockLens.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
      */
108 108
     public function query(?string $model = null): MockLensQuery
109 109
     {
110
-        if (! is_subclass_of($model, Model::class) && ! is_subclass_of($this->model, Model::class)) {
110
+        if (!is_subclass_of($model, Model::class) && !is_subclass_of($this->model, Model::class)) {
111 111
             throw new InvalidModelException();
112 112
         }
113 113
 
Please login to merge, or discard this patch.
src/Filters/NovaFilterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public static function novaFilter(string $filter): MockFilter
18 18
     {
19
-        if (! \is_subclass_of($filter, Filter::class)) {
19
+        if (!\is_subclass_of($filter, Filter::class)) {
20 20
             throw new InvalidNovaFilterException();
21 21
         }
22 22
 
Please login to merge, or discard this patch.
src/Filters/MockFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
      */
119 119
     public function apply(string $model, $value): MockFilterQuery
120 120
     {
121
-        if (! is_subclass_of($model, Model::class)) {
121
+        if (!is_subclass_of($model, Model::class)) {
122 122
             throw new InvalidModelException();
123 123
         }
124 124
 
Please login to merge, or discard this patch.
src/Resources/NovaResourceTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public static function novaResource(string $class, ?Model $model = null): MockResource
20 20
     {
21
-        if (! \is_subclass_of($class, Resource::class)) {
21
+        if (!\is_subclass_of($class, Resource::class)) {
22 22
             throw new InvalidNovaResourceException();
23 23
         }
24 24
 
Please login to merge, or discard this patch.
src/Constraints/HasValidFields.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
     {
28 28
         foreach ($other as $field) {
29 29
             if ($this->allowPanels && $field instanceof Panel) {
30
-                if (! $this->matches($field->data)) {
30
+                if (!$this->matches($field->data)) {
31 31
                     return false;
32 32
                 }
33
-            } elseif (! $field instanceof Field && ! $field instanceof \Laravel\Nova\Fields\FieldElement) {
33
+            } elseif (!$field instanceof Field && !$field instanceof \Laravel\Nova\Fields\FieldElement) {
34 34
                 return false;
35 35
             }
36 36
         }
Please login to merge, or discard this patch.