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
Push — master ( 01665c...b898cf )
by Cristian
05:13
created
src/PanelTraits/Search.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
 
165 165
     /**
166 166
      * Render the given view
167
-     * @param $view
167
+     * @param string $view
168 168
      * @param $column
169 169
      * @param $entry
170 170
      * @return mixed
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function applySearchTerm($searchTerm)
21 21
     {
22
-        return $this->query->where(function ($query) use ($searchTerm) {
22
+        return $this->query->where(function($query) use ($searchTerm) {
23 23
             foreach ($this->getColumns() as $column) {
24
-                if (! isset($column['type'])) {
24
+                if (!isset($column['type'])) {
25 25
                     abort(400, 'Missing column type when trying to apply search term.');
26 26
                 }
27 27
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
                 case 'select':
62 62
                 case 'select_multiple':
63
-                    $query->orWhereHas($column['entity'], function ($q) use ($column, $searchTerm) {
63
+                    $query->orWhereHas($column['entity'], function($q) use ($column, $searchTerm) {
64 64
                         $q->where($column['attribute'], 'like', '%'.$searchTerm.'%');
65 65
                     });
66 66
                     break;
@@ -145,17 +145,17 @@  discard block
 block discarded – undo
145 145
     {
146 146
         // return custom column if view_namespace attribute is set
147 147
         if (isset($column['view_namespace']) && isset($column['type'])) {
148
-            return $column['view_namespace'] . '.' . $column['type'];
148
+            return $column['view_namespace'].'.'.$column['type'];
149 149
         }
150 150
 
151 151
         if (isset($column['type'])) {
152 152
             // if the column has been overwritten return that one
153
-            if (view()->exists('vendor.backpack.crud.columns.' . $column['type'])) {
154
-                return 'vendor.backpack.crud.columns.' . $column['type'];
153
+            if (view()->exists('vendor.backpack.crud.columns.'.$column['type'])) {
154
+                return 'vendor.backpack.crud.columns.'.$column['type'];
155 155
             }
156 156
 
157 157
             // return the column from the package
158
-            return 'crud::columns.' . $column['type'];
158
+            return 'crud::columns.'.$column['type'];
159 159
         }
160 160
 
161 161
         // fallback to text column
Please login to merge, or discard this patch.
src/PanelTraits/Filters.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
     public function filtersEnabled()
10 10
     {
11
-        return ! is_array($this->filters);
11
+        return !is_array($this->filters);
12 12
     }
13 13
 
14 14
     public function filtersDisabled()
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $this->enableFilters();
54 54
 
55 55
         // check if another filter with the same name exists
56
-        if (! isset($options['name'])) {
56
+        if (!isset($options['name'])) {
57 57
             abort(500, 'All your filters need names.');
58 58
         }
59 59
         if ($this->filters->contains('name', $options['name'])) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
     public function removeFilter($name)
139 139
     {
140
-        $this->filters = $this->filters->reject(function ($filter) use ($name) {
140
+        $this->filters = $this->filters->reject(function($filter) use ($name) {
141 141
             return $filter->name == $name;
142 142
         });
143 143
     }
@@ -221,16 +221,16 @@  discard block
 block discarded – undo
221 221
 
222 222
     public function checkOptionsIntegrity($options)
223 223
     {
224
-        if (! isset($options['name'])) {
224
+        if (!isset($options['name'])) {
225 225
             abort(500, 'Please make sure all your filters have names.');
226 226
         }
227
-        if (! isset($options['type'])) {
227
+        if (!isset($options['type'])) {
228 228
             abort(500, 'Please make sure all your filters have types.');
229 229
         }
230
-        if (! \View::exists('crud::filters.'.$options['type'])) {
230
+        if (!\View::exists('crud::filters.'.$options['type'])) {
231 231
             abort(500, 'No filter view named "'.$options['type'].'.blade.php" was found.');
232 232
         }
233
-        if (! isset($options['label'])) {
233
+        if (!isset($options['label'])) {
234 234
             abort(500, 'Please make sure all your filters have labels.');
235 235
         }
236 236
     }
Please login to merge, or discard this patch.