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 ( fdafab...aa2657 )
by butschster
06:04
created
resources/lang/uk/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,6 +87,6 @@
 block discarded – undo
87 87
     |
88 88
     */
89 89
 
90
-    'attributes' => [],
90
+    'attributes' => [ ],
91 91
 
92 92
 ];
Please login to merge, or discard this patch.
resources/lang/es/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
     |
63 63
     */
64 64
 
65
-    'attributes'              => [],
65
+    'attributes'              => [ ],
66 66
 
67 67
 ];
Please login to merge, or discard this patch.
src/Http/Controllers/AdminController.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -37,29 +37,29 @@  discard block
 block discarded – undo
37 37
 
38 38
         $this->navigation->setCurrentUrl($request->url());
39 39
 
40
-        Breadcrumbs::register('home', function ($breadcrumbs) {
40
+        Breadcrumbs::register('home', function($breadcrumbs) {
41 41
             $breadcrumbs->push(trans('sleeping_owl::lang.dashboard'), route('admin.dashboard'));
42 42
         });
43 43
 
44
-        $breadcrumbs = [];
44
+        $breadcrumbs = [ ];
45 45
 
46 46
         if ($currentPage = $this->navigation->getCurrentPage()) {
47 47
             foreach ($currentPage->getPathArray() as $page) {
48
-                $breadcrumbs[] = [
49
-                    'id' => $page['id'],
50
-                    'title' => $page['title'],
51
-                    'url' => $page['url'],
48
+                $breadcrumbs[ ] = [
49
+                    'id' => $page[ 'id' ],
50
+                    'title' => $page[ 'title' ],
51
+                    'url' => $page[ 'url' ],
52 52
                     'parent' => $this->parentBreadcrumb,
53 53
                 ];
54 54
 
55
-                $this->parentBreadcrumb = $page['id'];
55
+                $this->parentBreadcrumb = $page[ 'id' ];
56 56
             }
57 57
         }
58 58
 
59 59
         foreach ($breadcrumbs as  $breadcrumb) {
60
-            Breadcrumbs::register($breadcrumb['id'], function ($breadcrumbs) use ($breadcrumb) {
61
-                $breadcrumbs->parent($breadcrumb['parent']);
62
-                $breadcrumbs->push($breadcrumb['title'], $breadcrumb['url']);
60
+            Breadcrumbs::register($breadcrumb[ 'id' ], function($breadcrumbs) use ($breadcrumb) {
61
+                $breadcrumbs->parent($breadcrumb[ 'parent' ]);
62
+                $breadcrumbs->push($breadcrumb[ 'title' ], $breadcrumb[ 'url' ]);
63 63
             });
64 64
         }
65 65
     }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function getDisplay(ModelConfigurationInterface $model)
73 73
     {
74
-        if (! $model->isDisplayable()) {
74
+        if (!$model->isDisplayable()) {
75 75
             abort(404);
76 76
         }
77 77
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function getCreate(ModelConfigurationInterface $model)
87 87
     {
88
-        if (! $model->isCreatable()) {
88
+        if (!$model->isCreatable()) {
89 89
             abort(404);
90 90
         }
91 91
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function postStore(ModelConfigurationInterface $model)
105 105
     {
106
-        if (! $model->isCreatable()) {
106
+        if (!$model->isCreatable()) {
107 107
             abort(404);
108 108
         }
109 109
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         $item = $model->getRepository()->find($id);
165 165
 
166
-        if (is_null($item) || ! $model->isEditable($item)) {
166
+        if (is_null($item) || !$model->isEditable($item)) {
167 167
             abort(404);
168 168
         }
169 169
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $item = $model->getRepository()->find($id);
184 184
 
185
-        if (is_null($item) || ! $model->isEditable($item)) {
185
+        if (is_null($item) || !$model->isEditable($item)) {
186 186
             abort(404);
187 187
         }
188 188
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         $display = $model->fireDisplay();
239 239
 
240 240
         /** @var ColumnEditableInterface|null $column */
241
-        $column = $display->getColumns()->all()->filter(function ($column) use ($field) {
241
+        $column = $display->getColumns()->all()->filter(function($column) use ($field) {
242 242
             return ($column instanceof ColumnEditableInterface) and $field == $column->getName();
243 243
         })->first();
244 244
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
         $repository = $model->getRepository();
250 250
         $item = $repository->find($id);
251 251
 
252
-        if (is_null($item) || ! $model->isEditable($item)) {
252
+        if (is_null($item) || !$model->isEditable($item)) {
253 253
             abort(404);
254 254
         }
255 255
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     {
275 275
         $item = $model->getRepository()->find($id);
276 276
 
277
-        if (is_null($item) || ! $model->isDeletable($item)) {
277
+        if (is_null($item) || !$model->isDeletable($item)) {
278 278
             abort(404);
279 279
         }
280 280
 
@@ -299,13 +299,13 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function deleteDestroy(ModelConfigurationInterface $model, $id)
301 301
     {
302
-        if (! $model->isRestorableModel()) {
302
+        if (!$model->isRestorableModel()) {
303 303
             abort(404);
304 304
         }
305 305
 
306 306
         $item = $model->getRepository()->findOnlyTrashed($id);
307 307
 
308
-        if (is_null($item) || ! $model->isRestorable($item)) {
308
+        if (is_null($item) || !$model->isRestorable($item)) {
309 309
             abort(404);
310 310
         }
311 311
 
@@ -330,13 +330,13 @@  discard block
 block discarded – undo
330 330
      */
331 331
     public function postRestore($model, $id)
332 332
     {
333
-        if (! $model->isRestorableModel()) {
333
+        if (!$model->isRestorableModel()) {
334 334
             abort(404);
335 335
         }
336 336
 
337 337
         $item = $model->getRepository()->findOnlyTrashed($id);
338 338
 
339
-        if (is_null($item) || ! $model->isRestorable($item)) {
339
+        if (is_null($item) || !$model->isRestorable($item)) {
340 340
             abort(404);
341 341
         }
342 342
 
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
     {
404 404
         $lang = trans('sleeping_owl::lang');
405 405
         if ($lang == 'sleeping_owl::lang') {
406
-            $lang = trans('sleeping_owl::lang', [], 'messages', 'en');
406
+            $lang = trans('sleeping_owl::lang', [ ], 'messages', 'en');
407 407
         }
408 408
 
409 409
         $data = [
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     {
445 445
         if (($backUrl = Request::input('_redirectBack')) == \URL::previous()) {
446 446
             $backUrl = null;
447
-            Request::merge(['_redirectBack' => $backUrl]);
447
+            Request::merge([ '_redirectBack' => $backUrl ]);
448 448
         }
449 449
 
450 450
         return $backUrl;
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
      */
462 462
     protected function registerBreadcrumb($title, $parent)
463 463
     {
464
-        Breadcrumbs::register('render', function ($breadcrumbs) use ($title, $parent) {
464
+        Breadcrumbs::register('render', function($breadcrumbs) use ($title, $parent) {
465 465
             $breadcrumbs->parent($parent);
466 466
             $breadcrumbs->push($title);
467 467
         });
Please login to merge, or discard this patch.
src/Wysiwyg/Manager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function register($editorId, WysiwygFilterInterface $filter = null, $name = null)
45 45
     {
46
-        $config = config('sleeping_owl.wysiwyg.'.$editorId, []);
46
+        $config = config('sleeping_owl.wysiwyg.'.$editorId, [ ]);
47 47
 
48 48
         $this->getFilters()->push(
49 49
             $editor = new Editor($editorId, $name, $filter, $config)
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function getEditor($editorId)
69 69
     {
70
-        return $this->getFilters()->filter(function (WysiwygEditorInterface $editor) use ($editorId) {
70
+        return $this->getFilters()->filter(function(WysiwygEditorInterface $editor) use ($editorId) {
71 71
             return $editor->getId() == $editorId;
72 72
         })->first();
73 73
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function loadEditor($editorId)
86 86
     {
87
-        if (! is_null($editor = $this->getEditor($editorId))) {
87
+        if (!is_null($editor = $this->getEditor($editorId))) {
88 88
             if ($editor->isUsed()) {
89 89
                 return true;
90 90
             }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function applyFilter($editorId, $text)
106 106
     {
107
-        if (! is_null($editor = $this->getEditor($editorId))) {
107
+        if (!is_null($editor = $this->getEditor($editorId))) {
108 108
             return $editor->applyFilter($text);
109 109
         }
110 110
 
Please login to merge, or discard this patch.
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/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/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.