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
src/Display/DisplayTabsCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function onlyActive()
15 15
     {
16
-        return $this->filter(function (TabInterface $tab) {
16
+        return $this->filter(function(TabInterface $tab) {
17 17
             $element = $tab->getContent();
18 18
 
19 19
             if ($element instanceof FormElementInterface) {
20
-                return ! $element->isReadonly();
20
+                return !$element->isReadonly();
21 21
             }
22 22
 
23 23
             return true;
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function onlyVisible()
31 31
     {
32
-        return $this->filter(function (TabInterface $tab) {
32
+        return $this->filter(function(TabInterface $tab) {
33 33
             return $tab->isVisible();
34 34
         });
35 35
     }
Please login to merge, or discard this patch.
src/Console/Commands/InstallCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
         collect([
25 25
             Installation\PublishAssets::class,
26 26
         ])
27
-            ->map(function ($installer) {
27
+            ->map(function($installer) {
28 28
                 return new $installer($this, $this->config);
29 29
             })
30
-            ->filter(function ($installer) {
31
-                return $this->option('force') ? true : ! $installer->installed();
32
-            })->each(function ($installer) {
30
+            ->filter(function($installer) {
31
+                return $this->option('force') ? true : !$installer->installed();
32
+            })->each(function($installer) {
33 33
                 $installer->install();
34 34
                 $installer->showInfo();
35 35
             });
Please login to merge, or discard this patch.
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/Traits/FormElements.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function initializeElements()
25 25
     {
26
-        $this->getElements()->each(function ($element) {
26
+        $this->getElements()->each(function($element) {
27 27
             if ($element instanceof Initializable) {
28 28
                 $element->initialize();
29 29
             }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         foreach ($this->getElements() as $element) {
43 43
             if ($element instanceof ElementsInterface) {
44
-                if (! is_null($found = $element->getElement($path))) {
44
+                if (!is_null($found = $element->getElement($path))) {
45 45
                     return $found;
46 46
                 }
47 47
             }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     protected function setModelForElements(Model $model)
137 137
     {
138
-        $this->getElements()->each(function ($element) use ($model) {
138
+        $this->getElements()->each(function($element) use ($model) {
139 139
             $element = $this->getElementContainer($element);
140 140
 
141 141
             if ($element instanceof WithModel) {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     protected function getValidationRulesFromElements(array $rules = [])
155 155
     {
156
-        $this->getElements()->onlyActive()->each(function ($element) use (&$rules) {
156
+        $this->getElements()->onlyActive()->each(function($element) use (&$rules) {
157 157
             $element = $this->getElementContainer($element);
158 158
 
159 159
             if ($element instanceof Validable) {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     protected function getValidationMessagesForElements(array $messages = [])
173 173
     {
174
-        $this->getElements()->onlyActive()->each(function ($element) use (&$messages) {
174
+        $this->getElements()->onlyActive()->each(function($element) use (&$messages) {
175 175
             $element = $this->getElementContainer($element);
176 176
 
177 177
             if ($element instanceof Validable) {
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     protected function getValidationLabelsForElements(array $labels = [])
191 191
     {
192
-        $this->getElements()->onlyActive()->each(function ($element) use (&$labels) {
192
+        $this->getElements()->onlyActive()->each(function($element) use (&$labels) {
193 193
             $element = $this->getElementContainer($element);
194 194
 
195 195
             if ($element instanceof Validable) {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
     protected function saveElements()
204 204
     {
205
-        $this->getElements()->onlyActive()->each(function ($element) {
205
+        $this->getElements()->onlyActive()->each(function($element) {
206 206
             $element = $this->getElementContainer($element);
207 207
 
208 208
             if ($element instanceof FormElementInterface) {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
     protected function afterSaveElements()
215 215
     {
216
-        $this->getElements()->onlyActive()->each(function ($element) {
216
+        $this->getElements()->onlyActive()->each(function($element) {
217 217
             $element = $this->getElementContainer($element);
218 218
 
219 219
             if ($element instanceof FormElementInterface) {
Please login to merge, or discard this patch.
src/Wysiwyg/Manager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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.