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 (#1116)
by Oliver
04:14
created
src/CrudPanel.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function setModel($model_namespace)
86 86
     {
87
-        if (! class_exists($model_namespace)) {
87
+        if (!class_exists($model_namespace)) {
88 88
             throw new \Exception('This model does not exist.', 404);
89 89
         }
90 90
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     {
126 126
         $complete_route = $route.'.index';
127 127
 
128
-        if (! \Route::has($complete_route)) {
128
+        if (!\Route::has($complete_route)) {
129 129
             throw new \Exception('There are no routes for this route name.', 404);
130 130
         }
131 131
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     public function getFirstOfItsTypeInArray($type, $array)
177 177
     {
178
-        return array_first($array, function ($item) use ($type) {
178
+        return array_first($array, function($item) use ($type) {
179 179
             return $item['type'] == $type;
180 180
         });
181 181
     }
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
 
193 193
     public function sync($type, $fields, $attributes)
194 194
     {
195
-        if (! empty($this->{$type})) {
196
-            $this->{$type} = array_map(function ($field) use ($fields, $attributes) {
195
+        if (!empty($this->{$type})) {
196
+            $this->{$type} = array_map(function($field) use ($fields, $attributes) {
197 197
                 if (in_array($field['name'], (array) $fields)) {
198 198
                     $field = array_merge($field, $attributes);
199 199
                 }
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
                 }
220 220
             }
221 221
 
222
-            return $this->{$items} = array_merge($elements, array_filter($this->{$items}, function ($item) use ($items) {
223
-                return ! in_array($item['name'], $this->sort[$items]);
222
+            return $this->{$items} = array_merge($elements, array_filter($this->{$items}, function($item) use ($items) {
223
+                return !in_array($item['name'], $this->sort[$items]);
224 224
             }));
225 225
         }
226 226
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
      */
244 244
     private function getRelationModel($relationString)
245 245
     {
246
-        $result = array_reduce(explode('.', $relationString), function ($obj, $method) {
246
+        $result = array_reduce(explode('.', $relationString), function($obj, $method) {
247 247
             return $obj->$method()->getRelated();
248 248
         }, $this->model);
249 249
 
Please login to merge, or discard this patch.
src/PanelTraits/FakeColumns.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,19 +24,19 @@
 block discarded – undo
24 24
             if (isset($field['fake']) && $field['fake'] == true) {
25 25
                 // add it to the request in its appropriate variable - the one defined, if defined
26 26
                 if (isset($field['store_in'])) {
27
-                    if (! in_array($field['store_in'], $fakeFieldsColumnsArray, true)) {
27
+                    if (!in_array($field['store_in'], $fakeFieldsColumnsArray, true)) {
28 28
                         array_push($fakeFieldsColumnsArray, $field['store_in']);
29 29
                     }
30 30
                 } else {
31 31
                     //otherwise in the one defined in the $crud variable
32
-                    if (! in_array('extras', $fakeFieldsColumnsArray, true)) {
32
+                    if (!in_array('extras', $fakeFieldsColumnsArray, true)) {
33 33
                         array_push($fakeFieldsColumnsArray, 'extras');
34 34
                     }
35 35
                 }
36 36
             }
37 37
         }
38 38
 
39
-        if (! count($fakeFieldsColumnsArray)) {
39
+        if (!count($fakeFieldsColumnsArray)) {
40 40
             $fakeFieldsColumnsArray = ['extras'];
41 41
         }
42 42
 
Please login to merge, or discard this patch.
src/PanelTraits/Buttons.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function removeButton($name, $stack = null)
96 96
     {
97
-        $this->buttons = $this->buttons->reject(function ($button) use ($name, $stack) {
97
+        $this->buttons = $this->buttons->reject(function($button) use ($name, $stack) {
98 98
             return $stack == null ? $button->name == $name : ($button->stack == $stack) && ($button->name == $name);
99 99
         });
100 100
     }
@@ -106,14 +106,14 @@  discard block
 block discarded – undo
106 106
 
107 107
     public function removeAllButtonsFromStack($stack)
108 108
     {
109
-        $this->buttons = $this->buttons->reject(function ($button) use ($stack) {
109
+        $this->buttons = $this->buttons->reject(function($button) use ($stack) {
110 110
             return $button->stack == $stack;
111 111
         });
112 112
     }
113 113
 
114 114
     public function removeButtonFromStack($name, $stack)
115 115
     {
116
-        $this->buttons = $this->buttons->reject(function ($button) use ($name, $stack) {
116
+        $this->buttons = $this->buttons->reject(function($button) use ($name, $stack) {
117 117
             return $button->name == $name && $button->stack == $stack;
118 118
         });
119 119
     }
Please login to merge, or discard this patch.
src/PanelTraits/Access.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function hasAccess($permission)
35 35
     {
36
-        if (! in_array($permission, $this->access)) {
36
+        if (!in_array($permission, $this->access)) {
37 37
             return false;
38 38
         }
39 39
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     public function hasAccessToAll($permission_array)
69 69
     {
70 70
         foreach ($permission_array as $key => $permission) {
71
-            if (! in_array($permission, $this->access)) {
71
+            if (!in_array($permission, $this->access)) {
72 72
                 return false;
73 73
             }
74 74
         }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function hasAccessOrFail($permission)
88 88
     {
89
-        if (! in_array($permission, $this->access)) {
89
+        if (!in_array($permission, $this->access)) {
90 90
             throw new AccessDeniedException(trans('backpack::crud.unauthorized_access'));
91 91
         }
92 92
 
Please login to merge, or discard this patch.
config/database/migrations/2017_09_08_000000_create_user_roles_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('roles', function (Blueprint $table) {
16
+        Schema::create('roles', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name')->unique();
19 19
             $table->timestamps();
20 20
         });
21 21
 
22
-        Schema::create('user_role', function (Blueprint $table) {
22
+        Schema::create('user_role', function(Blueprint $table) {
23 23
             $table->integer('user_id')->length(10)->unsigned();
24 24
             $table->integer('role_id')->length(10)->unsigned();
25 25
             $table->timestamps();
Please login to merge, or discard this patch.
config/database/migrations/2017_09_08_000001_create_addresses_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('addresses', function (Blueprint $table) {
16
+        Schema::create('addresses', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('account_details_id')->length(10)->unsigned();
19 19
             $table->string('city');
Please login to merge, or discard this patch.
config/database/migrations/2017_09_06_000000_create_articles_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('articles', function ($table) {
15
+        Schema::create('articles', function($table) {
16 16
             $table->increments('id');
17 17
             $table->integer('user_id')->length(10)->unsigned();
18 18
             $table->string('content');
Please login to merge, or discard this patch.
database/migrations/2017_09_08_000001_create_account_details_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('account_details', function (Blueprint $table) {
16
+        Schema::create('account_details', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('user_id')->length(10)->unsigned();
19 19
             $table->string('nickname');
Please login to merge, or discard this patch.
tests/config/database/migrations/2017_09_05_000000_create_users_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('users', function (Blueprint $table) {
16
+        Schema::create('users', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->string('email')->unique();
Please login to merge, or discard this patch.