Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Pull Request — main (#4854)
by Cristian
40:57 queued 26:46
created
src/app/Library/Components/CollectionRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $items = $this->getItems();
18 18
         $items[$key] = $value;
19
-        ! $save ?: $this->save($items->toArray());
19
+        !$save ?: $this->save($items->toArray());
20 20
     }
21 21
 
22 22
     public function getItems(): Collection
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function removeItem($attribute, $save = true)
32 32
     {
33
-        $items = $this->getItems()->filter(function ($collectionItem, $key) use ($attribute) {
33
+        $items = $this->getItems()->filter(function($collectionItem, $key) use ($attribute) {
34 34
             return $collectionItem->getName() !== $attribute;
35 35
         });
36 36
 
37
-        ! $save ?: $this->save($items);
37
+        !$save ?: $this->save($items);
38 38
     }
39 39
 
40 40
     private function save($collection)
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function getItemByName($name)
53 53
     {
54
-        return $this->getItems()->first(function ($item, $key) use ($name) {
54
+        return $this->getItems()->first(function($item, $key) use ($name) {
55 55
             return $key === $name;
56 56
         });
57 57
     }
Please login to merge, or discard this patch.
src/app/Library/Components/BaseField.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  */
21 21
 class BaseField extends BaseComponent
22 22
 {
23
-    public function __construct(string|array $attributes)
23
+    public function __construct(string | array $attributes)
24 24
     {
25 25
         $collection = new FieldCollection($attributes, static::attributes(), static::rules(), static::defaults(), static::blocked());
26 26
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         ];
45 45
     }
46 46
 
47
-    public static function make(string|array $attributes): self
47
+    public static function make(string | array $attributes): self
48 48
     {
49 49
         return new static($attributes);
50 50
     }
Please login to merge, or discard this patch.
src/app/Library/Components/Fields/TextField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  */
10 10
 class TextField extends BaseField
11 11
 {
12
-    public function __construct(string|array $attributes)
12
+    public function __construct(string | array $attributes)
13 13
     {
14 14
         parent::__construct($attributes);
15 15
         $this->attributes->setAttribute('type', 'text');
Please login to merge, or discard this patch.
src/app/Library/Components/Fields/SelectFromModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 class SelectFromModel extends BaseField
10 10
 {
11
-    public function __construct(string|array $attributes)
11
+    public function __construct(string | array $attributes)
12 12
     {
13 13
         parent::__construct($attributes);
14 14
         $this->attributes->setAttribute('type', 'select_from_model');
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         return [
32 32
             Entity::class,
33
-            'model'  => function ($attributes) {
33
+            'model'  => function($attributes) {
34 34
                 return app('crud')->inferModelFromRelationship($attributes->toArray());
35 35
             },
36 36
         ];
Please login to merge, or discard this patch.
src/app/Library/Components/BaseComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         return $this->attributes->getAttributes();
21 21
     }
22 22
 
23
-    public static function make(string|array $name): SmartComponentInterface
23
+    public static function make(string | array $name): SmartComponentInterface
24 24
     {
25 25
         $attributes = new BaseCollection($name, static::attributes(), static::rules(), static::defaults(), static::blocked());
26 26
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function __call($name, $arguments)
51 51
     {
52
-        if (! method_exists($this, $name)) {
52
+        if (!method_exists($this, $name)) {
53 53
             if ($this->isAttributeBlocked($name)) {
54 54
                 throw new \Exception("Attribute {$name} cannot be changed in this component.");
55 55
             }
Please login to merge, or discard this patch.
src/app/Library/Components/Attributes/Entity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         }
76 76
 
77 77
         // relationships are always public methods.
78
-        if (! $methodReflection->isPublic()) {
78
+        if (!$methodReflection->isPublic()) {
79 79
             return false;
80 80
         }
81 81
 
Please login to merge, or discard this patch.
src/app/Library/Components/Attributes/RelationType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@
 block discarded – undo
17 17
     public static function getValidationRules(SmartCollectionInterface $attributes): array
18 18
     {
19 19
         return [
20
-            function ($attribute, $value, $fail) use ($attributes) {
20
+            function($attribute, $value, $fail) use ($attributes) {
21 21
                 if ($attributes->hasAttribute('entity') && $attributes->getAttributeValue('entity')) {
22
-                    if (! is_string($value)) {
22
+                    if (!is_string($value)) {
23 23
                         $fail('The '.$attribute.' should be a valid relation type string.');
24 24
                     }
25 25
                 }
Please login to merge, or discard this patch.
src/app/Library/Components/Interfaces/SmartComponentInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
     public function getAttribute(string $attribute);
10 10
 
11
-    public static function make(string|array $name): SmartComponentInterface;
11
+    public static function make(string | array $name): SmartComponentInterface;
12 12
 
13 13
     public static function makeOf(SmartCollectionInterface $attributes);
14 14
 
Please login to merge, or discard this patch.
src/app/Library/Components/Interfaces/SmartCollectionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 interface SmartCollectionInterface
8 8
 {
9
-    public function __construct(array|string $initAttributes, array $componentAttributes, array $rules = [], array $defaults = [], array $blocked = []);
9
+    public function __construct(array | string $initAttributes, array $componentAttributes, array $rules = [], array $defaults = [], array $blocked = []);
10 10
 
11 11
     public function getItemByName(string $name);
12 12
 
Please login to merge, or discard this patch.