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 (#943)
by Pascal
02:48
created
src/resources/views-elfinder/filepicker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     <!-- Include jQuery, jQuery UI, elFinder (REQUIRED) -->
27 27
 
28 28
     <?php
29
-    $mimeTypes = implode(',', array_map(function ($t) {
29
+    $mimeTypes = implode(',', array_map(function($t) {
30 30
         return "'".$t."'";
31 31
     }, explode(',', $type)));
32 32
     ?>
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
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function hasAccess($permission)
33 33
     {
34
-        if (! in_array($permission, $this->access)) {
34
+        if (!in_array($permission, $this->access)) {
35 35
             return false;
36 36
         }
37 37
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function hasAccessToAll($permission_array)
67 67
     {
68 68
         foreach ($permission_array as $key => $permission) {
69
-            if (! in_array($permission, $this->access)) {
69
+            if (!in_array($permission, $this->access)) {
70 70
                 return false;
71 71
             }
72 72
         }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function hasAccessOrFail($permission)
85 85
     {
86
-        if (! in_array($permission, $this->access)) {
86
+        if (!in_array($permission, $this->access)) {
87 87
             abort(403, trans('backpack::crud.unauthorized_access'));
88 88
         }
89 89
     }
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
@@ -29,20 +29,20 @@
 block discarded – undo
29 29
             if (isset($fields[$k]['fake']) && $fields[$k]['fake'] == true) {
30 30
                 // add it to the request in its appropriate variable - the one defined, if defined
31 31
                 if (isset($fields[$k]['store_in'])) {
32
-                    if (! in_array($fields[$k]['store_in'], $fake_field_columns_to_encode, true)) {
32
+                    if (!in_array($fields[$k]['store_in'], $fake_field_columns_to_encode, true)) {
33 33
                         array_push($fake_field_columns_to_encode, $fields[$k]['store_in']);
34 34
                     }
35 35
                 } else {
36 36
                     //otherwise in the one defined in the $crud variable
37 37
 
38
-                    if (! in_array('extras', $fake_field_columns_to_encode, true)) {
38
+                    if (!in_array('extras', $fake_field_columns_to_encode, true)) {
39 39
                         array_push($fake_field_columns_to_encode, 'extras');
40 40
                     }
41 41
                 }
42 42
             }
43 43
         }
44 44
 
45
-        if (! count($fake_field_columns_to_encode)) {
45
+        if (!count($fake_field_columns_to_encode)) {
46 46
             return ['extras'];
47 47
         }
48 48
 
Please login to merge, or discard this patch.
src/PanelTraits/FakeFields.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                     // remove the fake field
42 42
                     array_pull($request, $fields[$k]['name']);
43 43
 
44
-                    if (! in_array($fields[$k]['store_in'], $fake_field_columns_to_encode, true)) {
44
+                    if (!in_array($fields[$k]['store_in'], $fake_field_columns_to_encode, true)) {
45 45
                         array_push($fake_field_columns_to_encode, $fields[$k]['store_in']);
46 46
                     }
47 47
                 } else {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                     // remove the fake field
53 53
                     array_pull($request, $fields[$k]['name']);
54 54
 
55
-                    if (! in_array('extras', $fake_field_columns_to_encode, true)) {
55
+                    if (!in_array('extras', $fake_field_columns_to_encode, true)) {
56 56
                         array_push($fake_field_columns_to_encode, 'extras');
57 57
                     }
58 58
                 }
Please login to merge, or discard this patch.
src/PanelTraits/ViewsAndRestoresRevisions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             $revisionDate = date('Y-m-d', strtotime((string) $history->created_at));
22 22
 
23 23
             // Be sure to instantiate the initial grouping array
24
-            if (! array_key_exists($revisionDate, $revisions)) {
24
+            if (!array_key_exists($revisionDate, $revisions)) {
25 25
                 $revisions[$revisionDate] = [];
26 26
             }
27 27
 
Please login to merge, or discard this patch.
src/app/Http/Controllers/CrudFeatures/Reorder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
     {
175 175
         $this->crud->hasAccessOrFail('reorder');
176 176
 
177
-        if (! $this->crud->isReorderEnabled()) {
177
+        if (!$this->crud->isReorderEnabled()) {
178 178
             abort(403, 'Reorder is disabled.');
179 179
         }
180 180
 
Please login to merge, or discard this patch.
src/resources/views/fields/video.blade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <!-- text input -->
2 2
 <?php
3 3
 
4
-$value = old($field['name']) ? (old($field['name'])) : (isset($field['value']) ? ($field['value']) : (isset($field['default']) ? ($field['default']) : '' ));
4
+$value = old($field['name']) ? (old($field['name'])) : (isset($field['value']) ? ($field['value']) : (isset($field['default']) ? ($field['default']) : ''));
5 5
 
6 6
 // if attribute casting is used, convert to JSON
7 7
 if (is_array($value)) {
8
-    $value = json_encode((object)$value);
8
+    $value = json_encode((object) $value);
9 9
 } elseif (is_object($value)) {
10 10
     $value = json_encode($value);
11 11
 } else {
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
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     public function removeButton($name)
79 79
     {
80
-        $this->buttons = $this->buttons->reject(function ($button) use ($name) {
80
+        $this->buttons = $this->buttons->reject(function($button) use ($name) {
81 81
             return $button->name == $name;
82 82
         });
83 83
     }
@@ -89,14 +89,14 @@  discard block
 block discarded – undo
89 89
 
90 90
     public function removeAllButtonsFromStack($stack)
91 91
     {
92
-        $this->buttons = $this->buttons->reject(function ($button) use ($stack) {
92
+        $this->buttons = $this->buttons->reject(function($button) use ($stack) {
93 93
             return $button->stack == $stack;
94 94
         });
95 95
     }
96 96
 
97 97
     public function removeButtonFromStack($name, $stack)
98 98
     {
99
-        $this->buttons = $this->buttons->reject(function ($button) use ($name, $stack) {
99
+        $this->buttons = $this->buttons->reject(function($button) use ($name, $stack) {
100 100
             return $button->name == $name && $button->stack == $stack;
101 101
         });
102 102
     }
Please login to merge, or discard this patch.
src/resources/views/fields/date.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 <?php
4 4
 // if the column has been cast to Carbon or Date (using attribute casting)
5 5
 // get the value as a date string
6
-if (isset($field['value']) && ( $field['value'] instanceof \Carbon\Carbon || $field['value'] instanceof \Jenssegers\Date\Date )) {
6
+if (isset($field['value']) && ($field['value'] instanceof \Carbon\Carbon || $field['value'] instanceof \Jenssegers\Date\Date)) {
7 7
     $field['value'] = $field['value']->toDateString();
8 8
 }
9 9
 ?>
Please login to merge, or discard this patch.