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

Completed
Push — master ( 759348...75fc1b )
by Cristian
03:32
created
src/Crud.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -136,9 +136,9 @@  discard block
 block discarded – undo
136 136
 
137 137
                 if( isset($field['pivotFields']) ){
138 138
                     foreach($field['pivotFields'] as $pivotField){
139
-                       foreach($data[$pivotField] as $pivot_id =>  $field){
140
-                         $model->{$field['name']}()->updateExistingPivot($pivot_id, [$pivotField => $field]);
141
-                       }
139
+                        foreach($data[$pivotField] as $pivot_id =>  $field){
140
+                            $model->{$field['name']}()->updateExistingPivot($pivot_id, [$pivotField => $field]);
141
+                        }
142 142
                     }
143 143
                 }
144 144
             }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     }
181 181
 
182 182
 
183
-   /*
183
+    /*
184 184
     |--------------------------------------------------------------------------
185 185
     |                                   READ
186 186
     |--------------------------------------------------------------------------
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 
263 263
 
264 264
 
265
-   /*
265
+    /*
266 266
     |--------------------------------------------------------------------------
267 267
     |                                   UPDATE
268 268
     |--------------------------------------------------------------------------
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 
328 328
 
329 329
 
330
-   /*
330
+    /*
331 331
     |--------------------------------------------------------------------------
332 332
     |                                   DELETE
333 333
     |--------------------------------------------------------------------------
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 
419 419
 
420 420
 
421
-   /*
421
+    /*
422 422
     |--------------------------------------------------------------------------
423 423
     |                                   CRUD ACCESS
424 424
     |--------------------------------------------------------------------------
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
 
964 964
             if (!in_array($field, $this->model->getHidden()))
965 965
             {
966
-                 $this->columns[] = [
966
+                    $this->columns[] = [
967 967
                                     'name' => $field,
968 968
                                     'label' => ucfirst($field),
969 969
                                     'type' => $this->getFieldTypeFromDbColumnType($field)
@@ -1340,10 +1340,10 @@  discard block
 block discarded – undo
1340 1340
 
1341 1341
     public function addCreateField($field)
1342 1342
     {
1343
-       return $this->add('create_fields', $field);
1343
+        return $this->add('create_fields', $field);
1344 1344
     }
1345 1345
 
1346
-     public function setUpdateFields($fields)
1346
+        public function setUpdateFields($fields)
1347 1347
     {
1348 1348
         $this->addMultiple('update_fields', $fields);
1349 1349
     }
Please login to merge, or discard this patch.
src/resources/views/fields/checklist_dependency.blade.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -2,34 +2,34 @@  discard block
 block discarded – undo
2 2
   <div class="form-group checklist_dependency"  data-entity ="{{ $field['field_unique_name'] }}">
3 3
     <label>{{ $field['label'] }}</label>
4 4
     <?php
5
-      $entity_model = $crud->getModel();
5
+        $entity_model = $crud->getModel();
6 6
 
7
-      //short name for dependency fields
8
-      $primary_dependency = $field['subfields']['primary'];
9
-      $secondary_dependency = $field['subfields']['secondary'];
7
+        //short name for dependency fields
8
+        $primary_dependency = $field['subfields']['primary'];
9
+        $secondary_dependency = $field['subfields']['secondary'];
10 10
 
11 11
 
12
-      //all items with relation
13
-      $dependencies = $primary_dependency['model']::with($primary_dependency['entity_secondary'])->get();
12
+        //all items with relation
13
+        $dependencies = $primary_dependency['model']::with($primary_dependency['entity_secondary'])->get();
14 14
 
15
-      $dependencyArray = [];
15
+        $dependencyArray = [];
16 16
 
17
-      //convert dependency array to simple matrix ( prymary id as key and array with secondaries id )
18
-      foreach($dependencies as $primary){
19
-          $dependencyArray[$primary->id] = [];
17
+        //convert dependency array to simple matrix ( prymary id as key and array with secondaries id )
18
+        foreach($dependencies as $primary){
19
+            $dependencyArray[$primary->id] = [];
20 20
         foreach($primary->{$primary_dependency['entity_secondary']} as $secondary){
21 21
             $dependencyArray[$primary->id][] = $secondary->id;
22 22
         }
23
-      }
23
+        }
24 24
 
25
-      //for update form, get initial state of the entity
26
-      if( isset($id) && $id ){
25
+        //for update form, get initial state of the entity
26
+        if( isset($id) && $id ){
27 27
 
28 28
         //get entity with relations for primary dependency
29 29
         $entity_dependencies = $entity_model->with($primary_dependency['entity'])
30
-          ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary'])
31
-          ->where('id', $id)
32
-          ->first();
30
+            ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary'])
31
+            ->where('id', $id)
32
+            ->first();
33 33
 
34 34
         $secondaries_from_primary = [];
35 35
 
@@ -40,23 +40,23 @@  discard block
 block discarded – undo
40 40
 
41 41
         //create secondary dependency from primary relation, used to check what chekbox must be check from second checklist
42 42
         if( old($primary_dependency['name']) ) {
43
-          foreach( old($primary_dependency['name']) as $primary_item ){
43
+            foreach( old($primary_dependency['name']) as $primary_item ){
44 44
             foreach($dependencyArray[$primary_item] as $second_item ){
45 45
                 $secondary_ids[$second_item] = $second_item;
46 46
             }
47
-          }
47
+            }
48 48
         }else{ //create dependecies from relation if not from validate error
49
-          foreach( $primary_array as $primary_item ){
49
+            foreach( $primary_array as $primary_item ){
50 50
             foreach($primary_item[$secondary_dependency['entity']] as $second_item ){
51 51
                 $secondary_ids[$second_item['id']] = $second_item['id'];
52 52
             }
53
-          }
53
+            }
54 54
         }
55 55
 
56
-      }
56
+        }
57 57
 
58
-      //json encode of dependency matrix
59
-      $dependencyJson = json_encode($dependencyArray);
58
+        //json encode of dependency matrix
59
+        $dependencyJson = json_encode($dependencyArray);
60 60
     ?>
61 61
     <script>
62 62
      var  {{ $field['field_unique_name'] }} = {!! $dependencyJson !!};
Please login to merge, or discard this patch.