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
Pull Request — master (#1935)
by Cristian
04:14 queued 02:00
created
src/resources/views/crud/fields/checklist_dependency.blade.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -22,36 +22,36 @@
 block discarded – undo
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
-          $entity_dependencies = $entity_model->with($primary_dependency['entity'])
30
-          ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary'])
31
-          ->find($id);
29
+            $entity_dependencies = $entity_model->with($primary_dependency['entity'])
30
+            ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary'])
31
+            ->find($id);
32 32
 
33
-          $secondaries_from_primary = [];
33
+            $secondaries_from_primary = [];
34 34
 
35
-          //convert relation in array
36
-          $primary_array = $entity_dependencies->{$primary_dependency['entity']}->toArray();
35
+            //convert relation in array
36
+            $primary_array = $entity_dependencies->{$primary_dependency['entity']}->toArray();
37 37
 
38
-          $secondary_ids = [];
38
+            $secondary_ids = [];
39 39
 
40
-          //create secondary dependency from primary relation, used to check what chekbox must be check from second checklist
41
-          if (old($primary_dependency['name'])) {
42
-              foreach (old($primary_dependency['name']) as $primary_item) {
43
-                  foreach ($dependencyArray[$primary_item] as $second_item) {
44
-                      $secondary_ids[$second_item] = $second_item;
45
-                  }
46
-              }
47
-          } else { //create dependecies from relation if not from validate error
48
-              foreach ($primary_array as $primary_item) {
49
-                  foreach ($primary_item[$secondary_dependency['entity']] as $second_item) {
50
-                      $secondary_ids[$second_item['id']] = $second_item['id'];
51
-                  }
52
-              }
53
-          }
54
-      }
40
+            //create secondary dependency from primary relation, used to check what chekbox must be check from second checklist
41
+            if (old($primary_dependency['name'])) {
42
+                foreach (old($primary_dependency['name']) as $primary_item) {
43
+                    foreach ($dependencyArray[$primary_item] as $second_item) {
44
+                        $secondary_ids[$second_item] = $second_item;
45
+                    }
46
+                }
47
+            } else { //create dependecies from relation if not from validate error
48
+                foreach ($primary_array as $primary_item) {
49
+                    foreach ($primary_item[$secondary_dependency['entity']] as $second_item) {
50
+                        $secondary_ids[$second_item['id']] = $second_item['id'];
51
+                    }
52
+                }
53
+            }
54
+        }
55 55
 
56 56
         //json encode of dependency matrix
57 57
         $dependencyJson = json_encode($dependencyArray);
Please login to merge, or discard this patch.
src/resources/lang/ar/crud.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     |
14 14
     */
15 15
 
16
- return [
16
+    return [
17 17
     'infoFiltered'                            => '(filtered from _MAX_ total entries)',
18 18
     'thousands'                               => ',',
19 19
     'admin'                                   => 'المشرف',
Please login to merge, or discard this patch.
src/BackpackServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function register()
55 55
     {
56 56
         // Bind the CrudPanel object to Laravel's service container
57
-        $this->app->singleton('crud', function ($app) {
57
+        $this->app->singleton('crud', function($app) {
58 58
             return new \Backpack\CRUD\app\Library\CrudPanel\CrudPanel($app);
59 59
         });
60 60
 
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      */
196 196
     private function addRouteMacro()
197 197
     {
198
-        Route::macro('crud', function ($name, $controller) {
198
+        Route::macro('crud', function($name, $controller) {
199 199
             // put together the route name prefix,
200 200
             // as passed to the Route::group() statements
201 201
             $routeName = '';
Please login to merge, or discard this patch.
src/app/Console/Commands/Version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     private function runConsoleCommand($command)
50 50
     {
51 51
         $process = new Process($command, null, null, null, 60, null);
52
-        $process->run(function ($type, $buffer) {
52
+        $process->run(function($type, $buffer) {
53 53
             if (Process::ERR === $type) {
54 54
                 $this->line($buffer);
55 55
             } else {
Please login to merge, or discard this patch.
src/app/Console/Commands/AddCustomRouteContent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
             $process = new Process($command, null, null, null, 300, null);
68 68
 
69
-            $process->run(function ($type, $buffer) {
69
+            $process->run(function($type, $buffer) {
70 70
                 if (Process::ERR === $type) {
71 71
                     $this->line($buffer);
72 72
                 } else {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         // otherwise, in case the last line HAS been modified
96 96
         // return the last line that has an ending in it
97
-        $possible_end_lines = array_filter($file_lines, function ($k) {
97
+        $possible_end_lines = array_filter($file_lines, function($k) {
98 98
             return strpos($k, '});') === 0;
99 99
         });
100 100
 
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Filters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
 
217 217
     public function removeFilter($name)
218 218
     {
219
-        $strippedFiltersCollection = $this->filters()->reject(function ($filter) use ($name) {
219
+        $strippedFiltersCollection = $this->filters()->reject(function($filter) use ($name) {
220 220
             return $filter->name == $name;
221 221
         });
222 222
 
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/Traits/Update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 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.
src/app/Library/CrudPanel/Traits/AutoSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             $this->getDbColumnTypes();
18 18
         }
19 19
 
20
-        array_map(function ($field) {
20
+        array_map(function($field) {
21 21
             $new_field = [
22 22
                 'name'       => $field,
23 23
                 'label'      => $this->makeLabel($field),
Please login to merge, or discard this patch.
src/app/Library/CrudPanel/CrudPanel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      */
245 245
     public function getFirstOfItsTypeInArray($type, $array)
246 246
     {
247
-        return array_first($array, function ($item) use ($type) {
247
+        return array_first($array, function($item) use ($type) {
248 248
             return $item['type'] == $type;
249 249
         });
250 250
     }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     public function sync($type, $fields, $attributes)
263 263
     {
264 264
         if (!empty($this->{$type})) {
265
-            $this->{$type} = array_map(function ($field) use ($fields, $attributes) {
265
+            $this->{$type} = array_map(function($field) use ($fields, $attributes) {
266 266
                 if (in_array($field['name'], (array) $fields)) {
267 267
                     $field = array_merge($field, $attributes);
268 268
                 }
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             $model = $this->model;
302 302
         }
303 303
 
304
-        $result = array_reduce(array_splice($relationArray, 0, $length), function ($obj, $method) {
304
+        $result = array_reduce(array_splice($relationArray, 0, $length), function($obj, $method) {
305 305
             return $obj->$method()->getRelated();
306 306
         }, $model);
307 307
 
Please login to merge, or discard this patch.