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
Branch development (b5d095)
by butschster
13:32
created
src/Wysiwyg/DummyFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function apply($text)
16 16
     {
17 17
         return Blade::compileString(
18
-            preg_replace(['/<(\?|\%)\=?(php)?/', '/(\%|\?)>/'], ['', ''], $text)
18
+            preg_replace([ '/<(\?|\%)\=?(php)?/', '/(\%|\?)>/' ], [ '', '' ], $text)
19 19
         );
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
src/Wysiwyg/Editor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * @var array
29 29
      */
30
-    private $config = [];
30
+    private $config = [ ];
31 31
 
32 32
     /**
33 33
      * @var bool
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param WysiwygFilterInterface|null $filter
46 46
      * @param array                       $config
47 47
      */
48
-    public function __construct($id, $name = null, WysiwygFilterInterface $filter = null, array $config = [])
48
+    public function __construct($id, $name = null, WysiwygFilterInterface $filter = null, array $config = [ ])
49 49
     {
50 50
         $this->id = $id;
51 51
         $this->name = is_null($name) ? studly_case($id) : $name;
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
 
141 141
     public function __call($method, $arguments)
142 142
     {
143
-        if (in_array($method, ['js', 'css'])) {
144
-            call_user_func_array([$this->getPackage(), $method], $arguments);
143
+        if (in_array($method, [ 'js', 'css' ])) {
144
+            call_user_func_array([ $this->getPackage(), $method ], $arguments);
145 145
 
146 146
             return $this;
147 147
         }
Please login to merge, or discard this patch.
src/Navigation.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
 
18 18
         $this->sort();
19 19
 
20
-        if (! is_null($view)) {
20
+        if (!is_null($view)) {
21 21
             return view($view, [
22 22
                 'pages' => $this->getPages(),
23 23
             ])->render();
Please login to merge, or discard this patch.
src/Admin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * @var ModelConfigurationInterface[]
18 18
      */
19
-    protected $models = [];
19
+    protected $models = [ ];
20 20
 
21 21
     /**
22 22
      * @var TemplateInterface
@@ -26,14 +26,14 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * @var Page[]
28 28
      */
29
-    protected $menuItems = [];
29
+    protected $menuItems = [ ];
30 30
 
31 31
     /**
32 32
      * @return string[]
33 33
      */
34 34
     public function modelAliases()
35 35
     {
36
-        return array_map(function (ModelConfigurationInterface $model) {
36
+        return array_map(function(ModelConfigurationInterface $model) {
37 37
             return $model->getAlias();
38 38
         }, $this->getModels());
39 39
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             $class = get_class($class);
82 82
         }
83 83
 
84
-        if (! $this->hasModel($class)) {
84
+        if (!$this->hasModel($class)) {
85 85
             $this->registerModel($class);
86 86
         }
87 87
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public function setModel($class, ModelConfigurationInterface $model)
114 114
     {
115
-        $this->models[$class] = $model;
115
+        $this->models[ $class ] = $model;
116 116
     }
117 117
 
118 118
     /**
Please login to merge, or discard this patch.
src/Display/Filter/FilterScope.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
      */
12 12
     public function apply(Builder $query)
13 13
     {
14
-        call_user_func([$query, $this->getName()], $this->getValue());
14
+        call_user_func([ $query, $this->getName() ], $this->getValue());
15 15
     }
16 16
 }
Please login to merge, or discard this patch.
src/Display/Filter/FilterBase.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function isActive()
146 146
     {
147
-        return ! is_null($this->getValue());
147
+        return !is_null($this->getValue());
148 148
     }
149 149
 
150 150
     /**
@@ -162,8 +162,8 @@  discard block
 block discarded – undo
162 162
             $relationName = implode('.', $parts);
163 163
         }
164 164
 
165
-        if (! is_null($relationName)) {
166
-            $query->whereHas($relationName, function ($q) use ($name, $value) {
165
+        if (!is_null($relationName)) {
166
+            $query->whereHas($relationName, function($q) use ($name, $value) {
167 167
                 $this->buildQuery($q, $name, $value);
168 168
             });
169 169
         } else {
Please login to merge, or discard this patch.
src/Display/Filter/FilterRelated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function setModel($model)
56 56
     {
57
-        if (! class_exists($model)) {
57
+        if (!class_exists($model)) {
58 58
             throw new Exception("Class model [$model] not found");
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Display/Display.php 1 patch
Spacing   +7 added lines, -7 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
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $this->repository = $this->makeRepository();
156 156
         $this->repository->with($this->with);
157 157
 
158
-        $this->extensions->each(function (DisplayExtensionInterface $extension) {
158
+        $this->extensions->each(function(DisplayExtensionInterface $extension) {
159 159
             if ($extension instanceof Initializable) {
160 160
                 $extension->initialize();
161 161
             }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             if ($extension instanceof Placable) {
164 164
                 $template = app('sleeping_owl.template')->getViewPath($this->getView());
165 165
 
166
-                view()->composer($template, function (\Illuminate\View\View $view) use ($extension) {
166
+                view()->composer($template, function(\Illuminate\View\View $view) use ($extension) {
167 167
                     $view->getFactory()->inject(
168 168
                         $extension->getPlacement(),
169 169
                         app('sleeping_owl.template')->view($extension->getView(), $extension->toArray())->render()
@@ -200,9 +200,9 @@  discard block
 block discarded – undo
200 200
             $this->title,
201 201
         ];
202 202
 
203
-        $this->getExtensions()->each(function (DisplayExtensionInterface $extension) use (&$titles) {
203
+        $this->getExtensions()->each(function(DisplayExtensionInterface $extension) use (&$titles) {
204 204
             if (method_exists($extension, $method = 'getTitle')) {
205
-                $titles[] = call_user_func([$extension, $method]);
205
+                $titles[ ] = call_user_func([ $extension, $method ]);
206 206
             }
207 207
         });
208 208
 
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
             $extension = $this->extensions->get($method);
278 278
 
279 279
             if (method_exists($extension, 'set')) {
280
-                return call_user_func_array([$extension, 'set'], $arguments);
280
+                return call_user_func_array([ $extension, 'set' ], $arguments);
281 281
             }
282 282
         }
283 283
 
@@ -297,6 +297,6 @@  discard block
 block discarded – undo
297 297
      */
298 298
     protected function makeRepository()
299 299
     {
300
-        return app($this->repositoryClass, [$this->modelClass]);
300
+        return app($this->repositoryClass, [ $this->modelClass ]);
301 301
     }
302 302
 }
Please login to merge, or discard this patch.
src/Display/DisplayDatatables.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @var array
13 13
      */
14
-    protected $order = [[0, 'asc']];
14
+    protected $order = [ [ 0, 'asc' ] ];
15 15
 
16 16
     /**
17 17
      * @var array
18 18
      */
19
-    protected $datatableAttributes = [];
19
+    protected $datatableAttributes = [ ];
20 20
 
21 21
     /**
22 22
      * @var int
@@ -39,12 +39,12 @@  discard block
 block discarded – undo
39 39
         $this->setHtmlAttribute('data-order', json_encode($this->getOrder()));
40 40
 
41 41
         $attributes = $this->getDatatableAttributes();
42
-        $attributes['pageLength'] = $this->paginate;
42
+        $attributes[ 'pageLength' ] = $this->paginate;
43 43
 
44
-        $attributes['language'] = trans('sleeping_owl::lang.table');
44
+        $attributes[ 'language' ] = trans('sleeping_owl::lang.table');
45 45
 
46 46
         foreach ($this->getColumns()->all() as $column) {
47
-            $attributes['columns'][] = [
47
+            $attributes[ 'columns' ][ ] = [
48 48
                 'orderDataType' => class_basename($column),
49 49
             ];
50 50
         }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function getDatatableAttributes()
59 59
     {
60
-        return array_merge(config('sleeping_owl.datatables', []), (array) $this->datatableAttributes);
60
+        return array_merge(config('sleeping_owl.datatables', [ ]), (array) $this->datatableAttributes);
61 61
     }
62 62
 
63 63
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function setOrder($order)
89 89
     {
90
-        if (! is_array($order)) {
90
+        if (!is_array($order)) {
91 91
             $order = func_get_args();
92 92
         }
93 93
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     {
123 123
         $params = parent::toArray();
124 124
 
125
-        $params['order'] = $this->getOrder();
125
+        $params[ 'order' ] = $this->getOrder();
126 126
 
127 127
         return $params;
128 128
     }
Please login to merge, or discard this patch.