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
Push — poc-backpack-components ( 997beb...192cbc )
by Pedro
15:02
created
src/app/Library/Components/Interfaces/SmartComponentInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 interface SmartComponentInterface
6 6
 {
7
-    public static function make(string|array $name): SmartComponentInterface;
7
+    public static function make(string | array $name): SmartComponentInterface;
8 8
 
9 9
     public static function makeOf(SmartCollectionInterface $attributes);
10 10
 
Please login to merge, or discard this patch.
src/app/Library/Components/BaseCollection.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 {
13 13
     private Collection $attributes;
14 14
 
15
-    public function __construct(array|string $initAttributes,
15
+    public function __construct(array | string $initAttributes,
16 16
                                 private array $componentAttributes = [],
17 17
                                 private array $rules = [],
18 18
                                 private array $defaults = [],
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         }
27 27
     }
28 28
 
29
-    private function buildAttributes(array|string $attributes)
29
+    private function buildAttributes(array | string $attributes)
30 30
     {
31 31
         if (is_string($attributes)) {
32 32
             $attributes = ['name' => $attributes];
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
         $rules = $this->rules;
36 36
         $defaults = $this->defaults;
37 37
 
38
-        $attributeNames = collect($this->componentAttributes)->mapWithKeys(function ($attribute) {
38
+        $attributeNames = collect($this->componentAttributes)->mapWithKeys(function($attribute) {
39 39
             return [$attribute::getAttributeName() => $attribute];
40 40
         })->toArray();
41 41
 
42
-        $attributeRules = collect($rules)->mapWithKeys(function ($rule) {
42
+        $attributeRules = collect($rules)->mapWithKeys(function($rule) {
43 43
             if (is_a($rule, SmartAttributeInterface::class, true)) {
44 44
                 return [$rule::getAttributeName() => $rule::getValidationRules($this)];
45 45
             }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             return [$rule::getAttributeName() => $rule];
48 48
         })->toArray();
49 49
 
50
-        $this->attributes = collect($attributes)->mapWithKeys(function ($value, $key) use ($attributeNames, $attributeRules, $defaults) {
50
+        $this->attributes = collect($attributes)->mapWithKeys(function($value, $key) use ($attributeNames, $attributeRules, $defaults) {
51 51
             if (isset($attributeNames[$key])) {
52 52
                 return [$key => $attributeNames[$key]::make($key, $value, $attributeNames[$key]::getValidationRules($this))];
53 53
             }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     public function getItemByName(string $name)
81 81
     {
82
-        return $this->getItems()->first(function ($item, $key) use ($name) {
82
+        return $this->getItems()->first(function($item, $key) use ($name) {
83 83
             return $key === $name;
84 84
         });
85 85
     }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
     public function toCollection(): Collection
143 143
     {
144
-        return $this->attributes->mapWithKeys(function ($item, $key) {
144
+        return $this->attributes->mapWithKeys(function($item, $key) {
145 145
             return [$key => $item->value()];
146 146
         });
147 147
     }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     private function setAttributeDefaults()
155 155
     {
156 156
         foreach ($this->componentAttributes as $attribute) {
157
-            if (! $this->hasAttribute($attribute::getAttributeName())) {
157
+            if (!$this->hasAttribute($attribute::getAttributeName())) {
158 158
                 $this->attributes[$attribute::getAttributeName()] = $attribute::make($attribute::getAttributeName(), $attribute::getDefault($this), $attribute::getValidationRules($this));
159 159
             }
160 160
         }
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): static
47
+    public static function make(string | array $attributes): static
48 48
     {
49 49
         return new static($attributes);
50 50
     }
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
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         return new static($attributes);
17 17
     }
18 18
 
19
-    public static function make(string|array $name): SmartComponentInterface
19
+    public static function make(string | array $name): SmartComponentInterface
20 20
     {
21 21
         $attributes = new BaseCollection($name, static::attributes(), static::rules(), static::defaults(), static::blocked());
22 22
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function __call($name, $arguments)
32 32
     {
33
-        if (! method_exists($this, $name)) {
33
+        if (!method_exists($this, $name)) {
34 34
             if ($this->isAttributeBlocked($name)) {
35 35
                 throw new \Exception("Attribute {$name} cannot be changed in this component.");
36 36
             }
Please login to merge, or discard this patch.