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 — main ( b581e3...df6622 )
by Pedro
45:14 queued 09:34
created
config/database/migrations/2024_07_30_000001_create_translatable_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('translatable', function (Blueprint $table) {
16
+        Schema::create('translatable', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->json('title');
19 19
             $table->json('description')->nullable();
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Input.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         }
99 99
 
100 100
         //remove fields that are not in the submitted form input
101
-        $relationFields = array_filter($relationFields, function ($field) use ($input) {
101
+        $relationFields = array_filter($relationFields, function($field) use ($input) {
102 102
             return Arr::has($input, $field['name']) || isset($input[$field['name']]) || Arr::has($input, Str::afterLast($field['name'], '.'));
103 103
         });
104 104
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                     // the key used to store the values is the main relation key
128 128
                     $key = Str::beforeLast($this->getOnlyRelationEntity($field), '.');
129 129
 
130
-                    if (! isset($field['parentFieldName']) && isset($field['entity'])) {
130
+                    if (!isset($field['parentFieldName']) && isset($field['entity'])) {
131 131
                         $mainField = $field;
132 132
                         $mainField['entity'] = Str::beforeLast($field['entity'], '.');
133 133
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
             // when using dot notation if relationMethod is not set we are sure we want to exclude those relations.
187 187
             if ($this->getOnlyRelationEntity($field) !== $field['entity']) {
188
-                if (! $relationMethod) {
188
+                if (!$relationMethod) {
189 189
                     $excludedFields[] = $nameToExclude;
190 190
                 }
191 191
 
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
             }
200 200
         }
201 201
 
202
-        return Arr::where($input, function ($item, $key) use ($excludedFields) {
203
-            return ! in_array($key, $excludedFields);
202
+        return Arr::where($input, function($item, $key) use ($excludedFields) {
203
+            return !in_array($key, $excludedFields);
204 204
         });
205 205
     }
206 206
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
                 $jsonCastables = ['array', 'object', 'json'];
228 228
                 $fieldCasting = $casted_attributes[$field['name']];
229 229
 
230
-                if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && ! empty($input[$field['name']]) && ! is_array($input[$field['name']]) && ! in_array($field['name'], $translatableAttributes)) {
230
+                if (in_array($fieldCasting, $jsonCastables) && isset($input[$field['name']]) && !empty($input[$field['name']]) && !is_array($input[$field['name']]) && !in_array($field['name'], $translatableAttributes)) {
231 231
                     try {
232 232
                         $input[$field['name']] = json_decode($input[$field['name']]);
233 233
                     } catch (\Exception $e) {
Please login to merge, or discard this patch.