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 — add-delete-button-on-edit-oper... ( 49cd56 )
by
unknown
13:03
created
src/ViewNamespaces.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public static function addFor(string $domain, $viewNamespaces)
30 30
     {
31 31
         foreach ((array) $viewNamespaces as $viewNamespace) {
32
-            if (! in_array($viewNamespace, self::getForDomain($domain))) {
32
+            if (!in_array($viewNamespace, self::getForDomain($domain))) {
33 33
                 self::$viewNamespaces[$domain][] = $viewNamespace;
34 34
             }
35 35
         }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public static function getViewPathsFor(string $domain, string $viewName)
85 85
     {
86
-        return array_map(function ($item) use ($viewName) {
86
+        return array_map(function($item) use ($viewName) {
87 87
             return $item.'.'.$viewName;
88 88
         }, self::getFor($domain));
89 89
     }
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Query.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function customOrderBy($column, $columnDirection = 'asc')
101 101
     {
102
-        if (! isset($column['orderLogic'])) {
102
+        if (!isset($column['orderLogic'])) {
103 103
             return $this->query;
104 104
         }
105 105
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function getTotalQueryCount()
191 191
     {
192
-        if (! $this->getOperationSetting('showEntryCount')) {
192
+        if (!$this->getOperationSetting('showEntryCount')) {
193 193
             return 0;
194 194
         }
195 195
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     private function getCountFromQuery(Builder $query)
230 230
     {
231
-        if (! $this->driverIsSql()) {
231
+        if (!$this->driverIsSql()) {
232 232
             return $query->count();
233 233
         }
234 234
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $expressionColumns = [];
248 248
 
249 249
         foreach ($crudQuery->columns as $column) {
250
-            if (! is_string($column) && is_a($column, 'Illuminate\Database\Query\Expression')) {
250
+            if (!is_string($column) && is_a($column, 'Illuminate\Database\Query\Expression')) {
251 251
                 $expressionColumns[] = $column;
252 252
             }
253 253
         }
Please login to merge, or discard this patch.
src/app/Console/Commands/PublishAssets.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
     private function runConsoleCommand($command)
42 42
     {
43 43
         $process = new Process($command, null, null, null, 60, null);
44
-        $process->run(function ($type, $buffer) {
44
+        $process->run(function($type, $buffer) {
45 45
             $this->line($buffer);
46 46
         });
47 47
 
48 48
         // executes after the command finishes
49
-        if (! $process->isSuccessful()) {
49
+        if (!$process->isSuccessful()) {
50 50
             throw new ProcessFailedException($process);
51 51
         }
52 52
     }
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Update.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         }
48 48
 
49 49
         // always have a hidden input for the entry id
50
-        if (! array_key_exists('id', $fields)) {
50
+        if (!array_key_exists('id', $fields)) {
51 51
             $fields['id'] = [
52 52
                 'name'  => $entry->getKeyName(),
53 53
                 'value' => $entry->getKey(),
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $fieldEntity = $field['entity'] ?? false;
73 73
         $fakeField = $field['fake'] ?? false;
74 74
 
75
-        if ($fieldEntity && ! $fakeField) {
75
+        if ($fieldEntity && !$fakeField) {
76 76
             return $this->getModelAttributeValueFromRelationship($model, $field);
77 77
         }
78 78
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     {
103 103
         [$relatedModel, $relationMethod] = $this->getModelAndMethodFromEntity($model, $field);
104 104
 
105
-        if (! method_exists($relatedModel, $relationMethod)) {
105
+        if (!method_exists($relatedModel, $relationMethod)) {
106 106
             return $relatedModel->{$relationMethod};
107 107
         }
108 108
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $model = $this->setupRelatedModelLocale($model);
122 122
                     // when subfields are NOT set we don't need to get any more values
123 123
                     // we just return the plain models as we only need the ids
124
-                    if (! isset($field['subfields'])) {
124
+                    if (!isset($field['subfields'])) {
125 125
                         $result->push($model);
126 126
                         continue;
127 127
                     }
@@ -148,13 +148,13 @@  discard block
 block discarded – undo
148 148
                 break;
149 149
             case 'HasOne':
150 150
             case 'MorphOne':
151
-                if (! method_exists($relatedModel, $relationMethod)) {
151
+                if (!method_exists($relatedModel, $relationMethod)) {
152 152
                     return;
153 153
                 }
154 154
 
155 155
                 $model = $relatedModel->{$relationMethod};
156 156
 
157
-                if (! $model) {
157
+                if (!$model) {
158 158
                     return;
159 159
                 }
160 160
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
         $relationArray = explode('.', $relationEntity);
237 237
 
238
-        $relatedModel = array_reduce(array_splice($relationArray, 0, -1), function ($obj, $method) {
238
+        $relatedModel = array_reduce(array_splice($relationArray, 0, -1), function($obj, $method) {
239 239
             // if the string ends with `_id` we strip it out
240 240
             $method = Str::endsWith($method, '_id') ? Str::replaceLast('_id', '', $method) : $method;
241 241
 
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
             // if the subfield name does not contain a dot we just need to check
263 263
             // if it has subfields and return the result accordingly.
264 264
             foreach ((array) $subfield['name'] as $name) {
265
-                if (! Str::contains($name, '.')) {
265
+                if (!Str::contains($name, '.')) {
266 266
                     // when subfields are present, $relatedModel->{$name} returns a model instance
267 267
                     // otherwise returns the model attribute.
268 268
                     if ($relatedModel->{$name}) {
@@ -293,6 +293,6 @@  discard block
 block discarded – undo
293 293
 
294 294
     public function hideDeleteButton(): void
295 295
     {
296
-        $this->set($this->getOperation() . '.hideDeleteButton', true);
296
+        $this->set($this->getOperation().'.hideDeleteButton', true);
297 297
     }
298 298
 }
Please login to merge, or discard this patch.