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

Test Setup Failed
Pull Request — master (#2314)
by Cristian
06:28
created
src/resources/views/crud/reorder.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 <?php
29 29
 function tree_element($entry, $key, $all_entries, $crud)
30 30
 {
31
-    if (! isset($entry->tree_element_shown)) {
31
+    if (!isset($entry->tree_element_shown)) {
32 32
         // mark the element as shown
33 33
         $all_entries[$key]->tree_element_shown = true;
34 34
         $entry->tree_element_shown = true;
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             <ol class="sortable mt-0">
72 72
             <?php
73 73
                 $all_entries = collect($entries->all())->sortBy('lft')->keyBy($crud->getModel()->getRouteKeyName());
74
-                $root_entries = $all_entries->filter(function ($item) {
74
+                $root_entries = $all_entries->filter(function($item) {
75 75
                     return $item->parent_id == 0;
76 76
                 });
77 77
                 foreach ($root_entries as $key => $entry) {
Please login to merge, or discard this patch.
src/app/Http/Controllers/Operations/ListOperation.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $this->crud->allowAccess('list');
43 43
 
44
-        $this->crud->operation('list', function () {
44
+        $this->crud->operation('list', function() {
45 45
             $this->crud->loadDefaultOperationSettingsFromConfig();
46 46
         });
47 47
     }
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
         // if there was an order set, this will be the last one (after all others were applied)
113 113
         $orderBy = $this->crud->query->getQuery()->orders;
114 114
         $hasOrderByPrimaryKey = false;
115
-        collect($orderBy)->each(function ($item, $key) use ($hasOrderByPrimaryKey) {
116
-            if (! isset($item['column'])) {
115
+        collect($orderBy)->each(function($item, $key) use ($hasOrderByPrimaryKey) {
116
+            if (!isset($item['column'])) {
117 117
                 return false;
118 118
             }
119 119
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 return false;
124 124
             }
125 125
         });
126
-        if (! $hasOrderByPrimaryKey) {
126
+        if (!$hasOrderByPrimaryKey) {
127 127
             $this->crud->query->orderByDesc($this->crud->model->getRouteKeyName());
128 128
         }
129 129
 
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Update.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         foreach ($fields as &$field) {
52 52
             // set the value
53
-            if (! isset($field['value'])) {
53
+            if (!isset($field['value'])) {
54 54
                 if (isset($field['subfields'])) {
55 55
                     $field['value'] = [];
56 56
                     foreach ($field['subfields'] as $subfield) {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         }
64 64
 
65 65
         // always have a hidden input for the entry id
66
-        if (! array_key_exists($entry->getRouteKeyName(), $fields)) {
66
+        if (!array_key_exists($entry->getRouteKeyName(), $fields)) {
67 67
             $fields[$entry->getRouteKeyName()] = [
68 68
                 'name'  => $entry->getRouteKeyName(),
69 69
                 'value' => $entry->getRouteKey(),
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         if (isset($field['entity'])) {
88 88
             $relationArray = explode('.', $field['entity']);
89
-            $relatedModel = array_reduce(array_splice($relationArray, 0, -1), function ($obj, $method) {
89
+            $relatedModel = array_reduce(array_splice($relationArray, 0, -1), function($obj, $method) {
90 90
                 return $obj->{$method} ? $obj->{$method} : $obj;
91 91
             }, $model);
92 92
 
Please login to merge, or discard this patch.