GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 414922...a9bc98 )
by butschster
12:35
created
src/Display/Extension/Filters.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function set($filters)
42 42
     {
43
-        if (! is_array($filters)) {
43
+        if (!is_array($filters)) {
44 44
             $filters = func_get_args();
45 45
         }
46 46
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function getActive()
80 80
     {
81
-        return $this->filters->filter(function (FilterInterface $filter) {
81
+        return $this->filters->filter(function(FilterInterface $filter) {
82 82
             return $filter->isActive();
83 83
         });
84 84
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function modifyQuery(\Illuminate\Database\Eloquent\Builder $query)
126 126
     {
127
-        $this->getActive()->each(function (FilterInterface $filter) use ($query) {
127
+        $this->getActive()->each(function(FilterInterface $filter) use ($query) {
128 128
             $filter->apply($query);
129 129
         });
130 130
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function initialize()
136 136
     {
137
-        $this->filters->each(function (FilterInterface $filter) {
137
+        $this->filters->each(function(FilterInterface $filter) {
138 138
             $filter->initialize();
139 139
         });
140 140
     }
Please login to merge, or discard this patch.
src/Display/Extension/ColumnFilters.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      * @var ColumnFilterInterface[]
17 17
      */
18
-    protected $columnFilters = [];
18
+    protected $columnFilters = [ ];
19 19
 
20 20
     /**
21 21
      * @var string|\Illuminate\View\View
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function set($columnFilters)
36 36
     {
37
-        if (! is_array($columnFilters)) {
37
+        if (!is_array($columnFilters)) {
38 38
             $columnFilters = func_get_args();
39 39
         }
40 40
 
41
-        $this->columnFilters = [];
41
+        $this->columnFilters = [ ];
42 42
 
43 43
         foreach ($columnFilters as $filter) {
44 44
             $this->push($filter);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function push(ColumnFilterInterface $filter = null)
64 64
     {
65
-        $this->columnFilters[] = $filter;
65
+        $this->columnFilters[ ] = $filter;
66 66
 
67 67
         return $this;
68 68
     }
@@ -156,12 +156,12 @@  discard block
 block discarded – undo
156 156
             }
157 157
         }
158 158
 
159
-        if (! in_array($this->getPlacement(), ['table.footer', 'table.header']) && $this->view == 'display.extensions.columns_filters_table') {
159
+        if (!in_array($this->getPlacement(), [ 'table.footer', 'table.header' ]) && $this->view == 'display.extensions.columns_filters_table') {
160 160
             $this->view = 'display.extensions.columns_filters';
161 161
             $this->setHtmlAttribute('class', 'table table-default');
162 162
         }
163 163
 
164
-        if (! $this->hasHtmlAttribute('class')) {
164
+        if (!$this->hasHtmlAttribute('class')) {
165 165
             $this->setHtmlAttribute('class', 'panel-footer');
166 166
         }
167 167
     }
Please login to merge, or discard this patch.
src/Display/Extension/Columns.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
         $this->controlActive = false;
89 89
 
90 90
         if ($this->isInitialize()) {
91
-            $this->columns = $this->columns->filter(function ($column) {
91
+            $this->columns = $this->columns->filter(function($column) {
92 92
                 $class = get_class($this->getControlColumn());
93 93
 
94
-                return ! ($column instanceof $class);
94
+                return !($column instanceof $class);
95 95
             });
96 96
         }
97 97
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function set($columns)
115 115
     {
116
-        if (! is_array($columns)) {
116
+        if (!is_array($columns)) {
117 117
             $columns = func_get_args();
118 118
         }
119 119
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
     public function initialize()
181 181
     {
182
-        $this->all()->each(function (ColumnInterface $column) {
182
+        $this->all()->each(function(ColumnInterface $column) {
183 183
             $column->initialize();
184 184
         });
185 185
 
@@ -198,14 +198,14 @@  discard block
 block discarded – undo
198 198
     public function render()
199 199
     {
200 200
         $params = $this->toArray();
201
-        $params['collection'] = $this->getDisplay()->getCollection();
202
-        $params['pagination'] = null;
201
+        $params[ 'collection' ] = $this->getDisplay()->getCollection();
202
+        $params[ 'pagination' ] = null;
203 203
 
204
-        if ($params['collection'] instanceof \Illuminate\Contracts\Pagination\Paginator) {
204
+        if ($params[ 'collection' ] instanceof \Illuminate\Contracts\Pagination\Paginator) {
205 205
             if (class_exists('Illuminate\Pagination\BootstrapThreePresenter')) {
206
-                $params['pagination'] = (new \Illuminate\Pagination\BootstrapThreePresenter($params['collection']))->render();
206
+                $params[ 'pagination' ] = (new \Illuminate\Pagination\BootstrapThreePresenter($params[ 'collection' ]))->render();
207 207
             } else {
208
-                $params['pagination'] = $params['collection']->render();
208
+                $params[ 'pagination' ] = $params[ 'collection' ]->render();
209 209
             }
210 210
         }
211 211
 
Please login to merge, or discard this patch.
src/Display/Filter/FilterBase.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $this->setName($name);
37 37
 
38
-        if (! is_null($title)) {
38
+        if (!is_null($title)) {
39 39
             $this->setTitle($title);
40 40
         }
41 41
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function getAlias()
79 79
     {
80
-        if (! $this->alias) {
80
+        if (!$this->alias) {
81 81
             return $this->getName();
82 82
         }
83 83
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             return call_user_func($this->title, $this->getValue());
110 110
         }
111 111
 
112
-        return strtr($this->title, [':value' => $this->getValue()]);
112
+        return strtr($this->title, [ ':value' => $this->getValue() ]);
113 113
     }
114 114
 
115 115
     /**
@@ -149,6 +149,6 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function isActive()
151 151
     {
152
-        return ! is_null($this->getValue());
152
+        return !is_null($this->getValue());
153 153
     }
154 154
 }
Please login to merge, or discard this patch.
src/Display/TableColumn.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $this->header = app(TableHeaderColumnInterface::class);
65 65
 
66
-        if (! is_null($label)) {
66
+        if (!is_null($label)) {
67 67
             $this->setLabel($label);
68 68
         }
69 69
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $this->model = $model;
170 170
         $append = $this->getAppends();
171 171
 
172
-        if (! is_null($append)) {
172
+        if (!is_null($append)) {
173 173
             $append->setModel($model);
174 174
         }
175 175
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             $orderable = new OrderByClause($orderable);
211 211
         }
212 212
 
213
-        if ($orderable !== false && ! $orderable instanceof OrderByClauseInterface) {
213
+        if ($orderable !== false && !$orderable instanceof OrderByClauseInterface) {
214 214
             throw new \InvalidArgumentException('Argument must be instance of SleepingOwl\Admin\Contracts\Display\OrderByClauseInterface interface');
215 215
         }
216 216
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      */
236 236
     public function orderBy(Builder $query, $condition)
237 237
     {
238
-        if (! $this->isOrderable()) {
238
+        if (!$this->isOrderable()) {
239 239
             throw new \InvalidArgumentException('Argument must be instance of SleepingOwl\Admin\Contracts\Display\OrderByClauseInterface interface');
240 240
         }
241 241
 
Please login to merge, or discard this patch.
src/Display/Display.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * @var array
52 52
      */
53
-    protected $with = [];
53
+    protected $with = [ ];
54 54
 
55 55
     /**
56 56
      * @var string
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $this->repository = $this->makeRepository();
168 168
         $this->repository->with($this->with);
169 169
 
170
-        $this->extensions->each(function (DisplayExtensionInterface $extension) {
170
+        $this->extensions->each(function(DisplayExtensionInterface $extension) {
171 171
             if ($extension instanceof Initializable) {
172 172
                 $extension->initialize();
173 173
             }
@@ -201,9 +201,9 @@  discard block
 block discarded – undo
201 201
             $this->title,
202 202
         ];
203 203
 
204
-        $this->getExtensions()->each(function (DisplayExtensionInterface $extension) use (&$titles) {
204
+        $this->getExtensions()->each(function(DisplayExtensionInterface $extension) use (&$titles) {
205 205
             if (method_exists($extension, $method = 'getTitle')) {
206
-                $titles[] = call_user_func([$extension, $method]);
206
+                $titles[ ] = call_user_func([ $extension, $method ]);
207 207
             }
208 208
         });
209 209
 
@@ -265,14 +265,14 @@  discard block
 block discarded – undo
265 265
     {
266 266
         $view = app('sleeping_owl.template')->view($this->getView(), $this->toArray());
267 267
 
268
-        $blocks = [];
268
+        $blocks = [ ];
269 269
 
270
-        $placableExtensions = $this->getExtensions()->filter(function ($extension) {
270
+        $placableExtensions = $this->getExtensions()->filter(function($extension) {
271 271
             return $extension instanceof Placable;
272 272
         });
273 273
 
274 274
         foreach ($placableExtensions as $extension) {
275
-            $blocks[$extension->getPlacement()][] = (string) app('sleeping_owl.template')->view(
275
+            $blocks[ $extension->getPlacement() ][ ] = (string) app('sleeping_owl.template')->view(
276 276
                 $extension->getView(),
277 277
                 $extension->toArray()
278 278
             );
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 
281 281
         foreach ($blocks as $block => $data) {
282 282
             foreach ($data as $html) {
283
-                if (! empty($html)) {
283
+                if (!empty($html)) {
284 284
                     $view->getFactory()->startSection($block);
285 285
                     echo $html;
286 286
                     $view->getFactory()->yieldSection();
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
             $extension = $this->extensions->get($method);
316 316
 
317 317
             if (method_exists($extension, 'set')) {
318
-                return call_user_func_array([$extension, 'set'], $arguments);
318
+                return call_user_func_array([ $extension, 'set' ], $arguments);
319 319
             }
320 320
         }
321 321
 
@@ -336,9 +336,9 @@  discard block
 block discarded – undo
336 336
      */
337 337
     protected function makeRepository()
338 338
     {
339
-        $repository = app($this->repositoryClass, [$this->modelClass]);
339
+        $repository = app($this->repositoryClass, [ $this->modelClass ]);
340 340
 
341
-        if (! ($repository instanceof RepositoryInterface)) {
341
+        if (!($repository instanceof RepositoryInterface)) {
342 342
             throw new \Exception('Repository class must be instanced of [RepositoryInterface]');
343 343
         }
344 344
 
Please login to merge, or discard this patch.
src/Display/Column/Filter/DateRange.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $dates = explode('::', $date);
38 38
 
39 39
         foreach ($dates as $i => $date) {
40
-            $dates[$i] = parent::parserValue($date);
40
+            $dates[ $i ] = parent::parserValue($date);
41 41
         }
42 42
 
43 43
         return $dates;
Please login to merge, or discard this patch.
src/Display/Column/Filter/Date.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
             $fieldName = array_pop($parts);
183 183
             $relationName = implode('.', $parts);
184 184
 
185
-            $query->whereHas($relationName, function ($q) use ($name, $date) {
185
+            $query->whereHas($relationName, function($q) use ($name, $date) {
186 186
                 $this->buildQuery($q, $name, $date);
187 187
             });
188 188
         }
Please login to merge, or discard this patch.
src/Display/Column/Filter/Range.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
 
119 119
         $name = $column->getName();
120 120
 
121
-        if (! empty($from) && ! empty($to)) {
121
+        if (!empty($from) && !empty($to)) {
122 122
             $this->setOperator('between');
123
-            $search = [$from, $to];
124
-        } elseif (! empty($from)) {
123
+            $search = [ $from, $to ];
124
+        } elseif (!empty($from)) {
125 125
             $this->setOperator('greater_or_equal');
126 126
             $search = $from;
127
-        } elseif (! empty($to)) {
127
+        } elseif (!empty($to)) {
128 128
             $this->setOperator('less_or_equal');
129 129
             $search = $to;
130 130
         } else {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $parts = explode('.', $name);
138 138
             $fieldName = array_pop($parts);
139 139
             $relationName = implode('.', $parts);
140
-            $query->whereHas($relationName, function ($q) use ($search, $fieldName) {
140
+            $query->whereHas($relationName, function($q) use ($search, $fieldName) {
141 141
                 $this->buildQuery($q, $fieldName, $search);
142 142
             });
143 143
         }
Please login to merge, or discard this patch.