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 (886517)
by butschster
06:42
created
resources/assets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('resources_url')) {
3
+if (!function_exists('resources_url')) {
4 4
     function resources_url($path)
5 5
     {
6 6
         return '/packages/sleepingowl/default/'.$path;
Please login to merge, or discard this patch.
src/Admin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Providers/AdminServiceProvider.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function register()
29 29
     {
30
-        $this->app->singleton('sleeping_owl', function () {
30
+        $this->app->singleton('sleeping_owl', function() {
31 31
             return new Admin();
32 32
         });
33 33
 
@@ -37,17 +37,17 @@  discard block
 block discarded – undo
37 37
         $this->registerWysiwyg();
38 38
         $this->registerAliases();
39 39
 
40
-        $this->app->singleton(WidgetsRegistryInterface::class, function () {
40
+        $this->app->singleton(WidgetsRegistryInterface::class, function() {
41 41
             return new WidgetsRegistry($this->app);
42 42
         });
43 43
 
44
-        $this->app->booted(function () {
44
+        $this->app->booted(function() {
45 45
             $this->app[WidgetsRegistryInterface::class]->placeWidgets(
46 46
                 $this->app[ViewFactory::class]
47 47
             );
48 48
         });
49 49
 
50
-        $this->app->booted(function () {
50
+        $this->app->booted(function() {
51 51
             $this->registerCustomRoutes();
52 52
             $this->registerDefaultRoutes();
53 53
             $this->registerNavigationFile();
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     protected function getBootstrapPath($path = null)
75 75
     {
76
-        if (! is_null($path)) {
76
+        if (!is_null($path)) {
77 77
             $path = DIRECTORY_SEPARATOR.$path;
78 78
         }
79 79
 
@@ -84,14 +84,14 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $this->registerMessages();
86 86
 
87
-        $this->app->singleton('sleeping_owl.template', function () {
87
+        $this->app->singleton('sleeping_owl.template', function() {
88 88
             return $this->app['sleeping_owl']->template();
89 89
         });
90 90
 
91 91
         $this->registerBootstrap();
92 92
 
93
-        $this->registerRoutes(function (Router $route) {
94
-            $route->group(['as' => 'admin.', 'namespace' => 'SleepingOwl\Admin\Http\Controllers'], function ($route) {
93
+        $this->registerRoutes(function(Router $route) {
94
+            $route->group(['as' => 'admin.', 'namespace' => 'SleepingOwl\Admin\Http\Controllers'], function($route) {
95 95
                 $route->get('assets/admin.scripts', [
96 96
                     'as'   => 'scripts',
97 97
                     'uses' => 'AdminController@getScripts',
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             $this->app[WidgetsRegistryInterface::class]->registerWidget($messageType);
113 113
         }
114 114
 
115
-        $this->app->singleton('sleeping_owl.message', function () use ($messageTypes) {
115
+        $this->app->singleton('sleeping_owl.message', function() use ($messageTypes) {
116 116
             return new \SleepingOwl\Admin\Widgets\Messages\MessageStack($messageTypes);
117 117
         });
118 118
     }
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
         $this->app->bind(\KodiComponents\Navigation\Contracts\PageInterface::class, \SleepingOwl\Admin\Navigation\Page::class);
127 127
         $this->app->bind(\KodiComponents\Navigation\Contracts\BadgeInterface::class, \SleepingOwl\Admin\Navigation\Badge::class);
128 128
 
129
-        $this->app->singleton('sleeping_owl.navigation', function () {
129
+        $this->app->singleton('sleeping_owl.navigation', function() {
130 130
             return new \SleepingOwl\Admin\Navigation();
131 131
         });
132 132
     }
133 133
 
134 134
     protected function registerWysiwyg()
135 135
     {
136
-        $this->app->singleton('sleeping_owl.wysiwyg', function () {
136
+        $this->app->singleton('sleeping_owl.wysiwyg', function() {
137 137
             return new \SleepingOwl\Admin\Wysiwyg\Manager();
138 138
         });
139 139
     }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         $directory = $this->getBootstrapPath();
147 147
 
148
-        if (! is_dir($directory)) {
148
+        if (!is_dir($directory)) {
149 149
             return;
150 150
         }
151 151
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             ->notName('routes.php')
156 156
             ->notName('navigation.php')
157 157
             ->in($directory)
158
-            ->sort(function ($a) {
158
+            ->sort(function($a) {
159 159
                 return $a->getFilename() != 'bootstrap.php';
160 160
             });
161 161
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     protected function registerCustomRoutes()
173 173
     {
174 174
         if (file_exists($file = $this->getBootstrapPath('routes.php'))) {
175
-            $this->registerRoutes(function (Router $route) use ($file) {
175
+            $this->registerRoutes(function(Router $route) use ($file) {
176 176
                 require $file;
177 177
             });
178 178
         }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
     protected function registerDefaultRoutes()
182 182
     {
183
-        $this->registerRoutes(function (Router $router) {
183
+        $this->registerRoutes(function(Router $router) {
184 184
             $router->pattern('adminModelId', '[a-zA-Z0-9_-]+');
185 185
 
186 186
             $aliases = $this->app['sleeping_owl']->modelAliases();
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             if (count($aliases) > 0) {
189 189
                 $router->pattern('adminModel', implode('|', $aliases));
190 190
 
191
-                $this->app['router']->bind('adminModel', function ($model, \Illuminate\Routing\Route $route) use ($aliases) {
191
+                $this->app['router']->bind('adminModel', function($model, \Illuminate\Routing\Route $route) use ($aliases) {
192 192
                     $class = array_search($model, $aliases);
193 193
 
194 194
                     if ($class === false) {
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         $this->app['router']->group([
229 229
             'prefix' => $this->getConfig('url_prefix'),
230 230
             'middleware' => $this->getConfig('middleware'),
231
-        ], function ($route) use ($callback) {
231
+        ], function($route) use ($callback) {
232 232
             call_user_func($callback, $route);
233 233
         });
234 234
     }
Please login to merge, or discard this patch.
src/AliasBinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      */
92 92
     public function __call($name, $arguments)
93 93
     {
94
-        if (! $this->hasAlias($name)) {
94
+        if (!$this->hasAlias($name)) {
95 95
             throw new BadMethodCallException($name);
96 96
         }
97 97
 
Please login to merge, or discard this patch.
src/Traits/SqlQueryOperators.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function setOperator($operator)
56 56
     {
57
-        if (! array_key_exists($operator, $this->sqlOperators)) {
57
+        if (!array_key_exists($operator, $this->sqlOperators)) {
58 58
             throw new FilterOperatorException("Operator [$operator] not found");
59 59
         }
60 60
 
@@ -117,13 +117,13 @@  discard block
 block discarded – undo
117 117
                 break;
118 118
             case 'whereBetween':
119 119
             case 'whereNotBetween':
120
-                if (! is_array($value)) {
120
+                if (!is_array($value)) {
121 121
                     $value = explode(',', $value, 2);
122 122
                 }
123 123
                 break;
124 124
             case 'whereIn':
125 125
             case 'whereNotIn':
126
-                if (! is_array($value)) {
126
+                if (!is_array($value)) {
127 127
                     $value = explode(',', $value);
128 128
                 }
129 129
                 break;
Please login to merge, or discard this patch.
src/Model/SectionModelConfiguration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function fireDisplay()
34 34
     {
35
-        if (! method_exists($this, 'onDisplay')) {
35
+        if (!method_exists($this, 'onDisplay')) {
36 36
             return;
37 37
         }
38 38
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function fireCreate()
53 53
     {
54
-        if (! method_exists($this, 'onCreate')) {
54
+        if (!method_exists($this, 'onCreate')) {
55 55
             return;
56 56
         }
57 57
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function fireEdit($id)
80 80
     {
81
-        if (! method_exists($this, 'onEdit')) {
81
+        if (!method_exists($this, 'onEdit')) {
82 82
             return;
83 83
         }
84 84
 
Please login to merge, or discard this patch.
src/Model/ModelConfiguration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function isCreatable()
203 203
     {
204
-        if (! is_callable($this->getCreate())) {
204
+        if (!is_callable($this->getCreate())) {
205 205
             return false;
206 206
         }
207 207
 
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      */
226 226
     public function isEditable(Model $model)
227 227
     {
228
-        if (! is_callable($this->getEdit())) {
228
+        if (!is_callable($this->getEdit())) {
229 229
             return false;
230 230
         }
231 231
 
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
      */
348 348
     public function fireDisplay()
349 349
     {
350
-        if (! is_callable($this->getDisplay())) {
350
+        if (!is_callable($this->getDisplay())) {
351 351
             return;
352 352
         }
353 353
 
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
      */
389 389
     public function fireCreate()
390 390
     {
391
-        if (! is_callable($this->getCreate())) {
391
+        if (!is_callable($this->getCreate())) {
392 392
             return;
393 393
         }
394 394
 
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
      */
436 436
     public function fireEdit($id)
437 437
     {
438
-        if (! is_callable($this->getEdit())) {
438
+        if (!is_callable($this->getEdit())) {
439 439
             return;
440 440
         }
441 441
 
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
         $repository = $this->getRepository();
703 703
         $item = $repository->find($id);
704 704
 
705
-        if (is_null($item) || ! $this->isEditable($item)) {
705
+        if (is_null($item) || !$this->isEditable($item)) {
706 706
             abort(404);
707 707
         }
708 708
 
Please login to merge, or discard this patch.
src/Auth/Administrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function setPasswordAttribute($value)
34 34
     {
35
-        if (! empty($value)) {
35
+        if (!empty($value)) {
36 36
             $this->attributes['password'] = bcrypt($value);
37 37
         }
38 38
     }
Please login to merge, or discard this patch.
src/Console/Commands/UserManagerCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             return;
70 70
         }
71 71
 
72
-        if (! is_null($userClass::where('email', $email)->first())) {
72
+        if (!is_null($userClass::where('email', $email)->first())) {
73 73
             $this->error("User with same email [{$email}] exists.");
74 74
 
75 75
             return;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         }
121 121
 
122 122
         $confirm = $this->confirm("Are you sure want to delete user with id [{$id}]?", false);
123
-        if (! $confirm) {
123
+        if (!$confirm) {
124 124
             return;
125 125
         }
126 126
 
Please login to merge, or discard this patch.