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
Pull Request — master (#331)
by
unknown
18:50 queued 12:04
created
src/Traits/FormElements.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function initializeElements()
20 20
     {
21
-        $this->getElements()->each(function ($element) {
21
+        $this->getElements()->each(function($element) {
22 22
             if ($element instanceof Initializable) {
23 23
                 $element->initialize();
24 24
             }
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         foreach ($this->getElements() as $element) {
38 38
             if ($element instanceof ElementsInterface) {
39
-                if (! is_null($found = $element->getElement($path))) {
39
+                if (!is_null($found = $element->getElement($path))) {
40 40
                     return $found;
41 41
                 }
42 42
             }
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     protected function setModelForElements(Model $model)
132 132
     {
133
-        $this->getElements()->each(function ($element) use ($model) {
133
+        $this->getElements()->each(function($element) use ($model) {
134 134
             $element = $this->getElementContainer($element);
135 135
             if ($element instanceof FormElementInterface) {
136 136
                 $element->setModel($model);
@@ -145,9 +145,9 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @return array
147 147
      */
148
-    protected function getValidationRulesFromElements(array $rules = [])
148
+    protected function getValidationRulesFromElements(array $rules = [ ])
149 149
     {
150
-        $this->getElements()->each(function ($element) use (&$rules) {
150
+        $this->getElements()->each(function($element) use (&$rules) {
151 151
             $element = $this->getElementContainer($element);
152 152
             if ($element instanceof FormElementInterface) {
153 153
                 $rules += $element->getValidationRules();
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
      *
163 163
      * @return array
164 164
      */
165
-    protected function getValidationMessagesForElements(array $messages = [])
165
+    protected function getValidationMessagesForElements(array $messages = [ ])
166 166
     {
167
-        $this->getElements()->each(function ($element) use (&$messages) {
167
+        $this->getElements()->each(function($element) use (&$messages) {
168 168
             $element = $this->getElementContainer($element);
169 169
             if ($element instanceof NamedFormElement) {
170 170
                 $messages += $element->getValidationMessages();
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
      *
180 180
      * @return array
181 181
      */
182
-    protected function getValidationLabelsForElements(array $labels = [])
182
+    protected function getValidationLabelsForElements(array $labels = [ ])
183 183
     {
184
-        $this->getElements()->each(function ($element) use (&$labels) {
184
+        $this->getElements()->each(function($element) use (&$labels) {
185 185
             $element = $this->getElementContainer($element);
186 186
             if ($element instanceof NamedFormElement) {
187 187
                 $labels += $element->getValidationLabels();
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
     protected function saveElements()
195 195
     {
196
-        $this->getElements()->each(function ($element) {
196
+        $this->getElements()->each(function($element) {
197 197
             $element = $this->getElementContainer($element);
198 198
             if ($element instanceof FormElementInterface) {
199 199
                 $element->save();
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
     protected function afterSaveElements()
205 205
     {
206
-        $this->getElements()->each(function ($element) {
206
+        $this->getElements()->each(function($element) {
207 207
             $element = $this->getElementContainer($element);
208 208
             if ($element instanceof FormElementInterface) {
209 209
                 $element->afterSave();
Please login to merge, or discard this patch.
resources/lang/tr/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/assets.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 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;
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 */
15 15
 
16 16
 WysiwygManager::register('ckeditor')
17
-    ->js(null, '//cdn.ckeditor.com/4.5.7/standard/ckeditor.js', ['jquery']);
17
+    ->js(null, '//cdn.ckeditor.com/4.5.7/standard/ckeditor.js', [ 'jquery' ]);
18 18
 
19 19
 WysiwygManager::register('tinymce')
20
-    ->js(null, '//cdn.tinymce.com/4/tinymce.min.js', ['jquery']);
20
+    ->js(null, '//cdn.tinymce.com/4/tinymce.min.js', [ 'jquery' ]);
21 21
 
22 22
 WysiwygManager::register('simplemde', new \SleepingOwl\Admin\Wysiwyg\MarkdownFilter())
23
-    ->js(null, '//cdn.jsdelivr.net/simplemde/latest/simplemde.min.js', ['jquery'])
23
+    ->js(null, '//cdn.jsdelivr.net/simplemde/latest/simplemde.min.js', [ 'jquery' ])
24 24
     ->css(null, '//cdn.jsdelivr.net/simplemde/latest/simplemde.min.css');
Please login to merge, or discard this patch.
config/sleeping_owl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     |
46 46
     */
47 47
 
48
-    'middleware' => ['web'],
48
+    'middleware' => [ 'web' ],
49 49
 
50 50
     /*
51 51
     |--------------------------------------------------------------------------
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
          * See https://github.com/NextStepWebs/simplemde-markdown-editor
134 134
          */
135 135
         'simplemde' => [
136
-            'hideIcons' => ['side-by-side', 'fullscreen'],
136
+            'hideIcons' => [ 'side-by-side', 'fullscreen' ],
137 137
         ],
138 138
     ],
139 139
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     | Select default settings for datatable
146 146
     |
147 147
     */
148
-    'datatables' => [],
148
+    'datatables' => [ ],
149 149
 
150 150
     /*
151 151
     |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
src/Templates/TemplateDefault.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
     public function __construct()
11 11
     {
12
-        Meta::addJs('admin-default', resources_url('js/admin-app.js'), ['admin-scripts'])
12
+        Meta::addJs('admin-default', resources_url('js/admin-app.js'), [ 'admin-scripts' ])
13 13
             ->addJs('admin-scripts', route('admin.scripts'))
14 14
             ->addCss('admin-default', resources_url('css/admin-app.css'));
15 15
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      *
55 55
      * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
56 56
      */
57
-    public function view($view, $data = [], $mergeData = [])
57
+    public function view($view, $data = [ ], $mergeData = [ ])
58 58
     {
59 59
         if ($view instanceof \Illuminate\View\View) {
60 60
             return $view->with($data);
Please login to merge, or discard this patch.
src/Form/Element/File.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $routeName = 'admin.form.element.'.static::$route;
28 28
 
29
-        if (! $router->has($routeName)) {
30
-            $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', ['as' => $routeName, function (
29
+        if (!$router->has($routeName)) {
30
+            $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [ 'as' => $routeName, function(
31 31
                 Request $request,
32 32
                 ModelConfigurationInterface $model,
33 33
                 $field,
34 34
                 $id = null
35 35
             ) {
36
-                if (! is_null($id)) {
36
+                if (!is_null($id)) {
37 37
                     $item = $model->getRepository()->find($id);
38
-                    if (is_null($item) || ! $model->isEditable($item)) {
38
+                    if (is_null($item) || !$model->isEditable($item)) {
39 39
                         return new JsonResponse([
40 40
                             'message' => trans('lang.message.access_denied'),
41 41
                         ], 403);
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
                     $form = $model->fireEdit($id);
45 45
                 } else {
46
-                    if (! $model->isCreatable()) {
46
+                    if (!$model->isCreatable()) {
47 47
                         return new JsonResponse([
48 48
                             'message' => trans('lang.message.access_denied'),
49 49
                         ], 403);
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
                     $form = $model->fireCreate();
53 53
                 }
54 54
 
55
-                $messages = [];
56
-                $labels = [];
55
+                $messages = [ ];
56
+                $labels = [ ];
57 57
                 $rules = static::defaultUploadValidationRules();
58 58
 
59
-                if (! is_null($element = $form->getElement($field))) {
59
+                if (!is_null($element = $form->getElement($field))) {
60 60
                     $rules = $element->getUploadValidationRules();
61 61
                     $messages = $element->getUploadValidationMessages();
62 62
                     $labels = $element->getUploadValidationLabels();
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
                 $file = $request->file('file');
77 77
 
78 78
                 /** @var File $element */
79
-                if (! is_null($element = $form->getElement($field))) {
79
+                if (!is_null($element = $form->getElement($field))) {
80 80
                     $filename = $element->getUploadFileName($file);
81 81
                     $path = $element->getUploadPath($file);
82 82
                     $settings = $element->getUploadSettings();
83 83
                 } else {
84 84
                     $filename = static::defaultUploadFilename($file);
85 85
                     $path = static::defaultUploadPath($file);
86
-                    $settings = [];
86
+                    $settings = [ ];
87 87
                 }
88 88
 
89 89
                 static::saveFile($file, public_path($path), $filename, $settings);
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                     'url' => asset($value),
95 95
                     'value' => $value,
96 96
                 ]);
97
-            }]);
97
+            } ]);
98 98
         }
99 99
     }
100 100
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     protected static function defaultUploadValidationRules()
143 143
     {
144 144
         return [
145
-            'file' => ['required', 'file'],
145
+            'file' => [ 'required', 'file' ],
146 146
         ];
147 147
     }
148 148
 
@@ -159,21 +159,21 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * @var array
161 161
      */
162
-    protected $uploadSettings = [];
162
+    protected $uploadSettings = [ ];
163 163
 
164 164
     /**
165 165
      * @var array
166 166
      */
167
-    protected $uploadValidationRules = ['required', 'file'];
167
+    protected $uploadValidationRules = [ 'required', 'file' ];
168 168
 
169 169
     /**
170 170
      * @return array
171 171
      */
172 172
     public function getUploadValidationMessages()
173 173
     {
174
-        $messages = [];
174
+        $messages = [ ];
175 175
         foreach ($this->validationMessages as $rule => $message) {
176
-            $messages["file.{$rule}"] = $message;
176
+            $messages[ "file.{$rule}" ] = $message;
177 177
         }
178 178
 
179 179
         return $messages;
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function getUploadValidationLabels()
186 186
     {
187
-        return ['file' => $this->getLabel()];
187
+        return [ 'file' => $this->getLabel() ];
188 188
     }
189 189
 
190 190
     /**
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function getUploadValidationRules()
194 194
     {
195
-        return ['file' => array_unique($this->uploadValidationRules)];
195
+        return [ 'file' => array_unique($this->uploadValidationRules) ];
196 196
     }
197 197
 
198 198
     /**
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function getUploadPath(UploadedFile $file)
204 204
     {
205
-        if (! is_callable($this->uploadPath)) {
205
+        if (!is_callable($this->uploadPath)) {
206 206
             return static::defaultUploadPath($file);
207 207
         }
208 208
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     public function getUploadFileName(UploadedFile $file)
230 230
     {
231
-        if (! is_callable($this->uploadFileName)) {
231
+        if (!is_callable($this->uploadFileName)) {
232 232
             return static::defaultUploadFilename($file);
233 233
         }
234 234
 
@@ -279,11 +279,11 @@  discard block
 block discarded – undo
279 279
      */
280 280
     public function addValidationRule($rule, $message = null)
281 281
     {
282
-        $uploadRules = ['file', 'image', 'mime', 'size', 'dimensions', 'max', 'min', 'between'];
282
+        $uploadRules = [ 'file', 'image', 'mime', 'size', 'dimensions', 'max', 'min', 'between' ];
283 283
 
284 284
         foreach ($uploadRules as $uploadRule) {
285 285
             if (strpos($rule, $uploadRule) !== false) {
286
-                $this->uploadValidationRules[] = $rule;
286
+                $this->uploadValidationRules[ ] = $rule;
287 287
 
288 288
                 if (is_null($message)) {
289 289
                     return $this;
Please login to merge, or discard this patch.
src/Repository/TreeRepository.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -210,9 +210,9 @@  discard block
 block discarded – undo
210 210
     {
211 211
         $instance = $this->find($id);
212 212
         $attributes = $instance->getAttributes();
213
-        $attributes[$this->getLeftColumn($instance)] = $left;
214
-        $attributes[$this->getRightColumn($instance)] = $right;
215
-        $attributes[$this->getParentColumn($instance)] = $parentId;
213
+        $attributes[ $this->getLeftColumn($instance) ] = $left;
214
+        $attributes[ $this->getRightColumn($instance) ] = $right;
215
+        $attributes[ $this->getParentColumn($instance) ] = $parentId;
216 216
         $instance->setRawAttributes($attributes);
217 217
         $instance->save();
218 218
     }
@@ -327,11 +327,11 @@  discard block
 block discarded – undo
327 327
     protected function recursiveReorder($root, $parentId, $left)
328 328
     {
329 329
         $right = $left + 1;
330
-        $children = array_get($root, 'children', []);
330
+        $children = array_get($root, 'children', [ ]);
331 331
         foreach ($children as $child) {
332
-            $right = $this->recursiveReorder($child, $root['id'], $right);
332
+            $right = $this->recursiveReorder($child, $root[ 'id' ], $right);
333 333
         }
334
-        $this->move($root['id'], $parentId, $left, $right);
334
+        $this->move($root[ 'id' ], $parentId, $left, $right);
335 335
         $left = $right + 1;
336 336
 
337 337
         return $left;
@@ -346,15 +346,15 @@  discard block
 block discarded – undo
346 346
     protected function recursiveReorderSimple(array $data, $parentId)
347 347
     {
348 348
         foreach ($data as $order => $item) {
349
-            $id = $item['id'];
349
+            $id = $item[ 'id' ];
350 350
 
351 351
             $instance = $this->find($id);
352 352
             $instance->{$this->getParentField()} = $parentId;
353 353
             $instance->{$this->getOrderField()} = $order;
354 354
             $instance->save();
355 355
 
356
-            if (isset($item['children'])) {
357
-                $this->recursiveReorderSimple($item['children'], $id);
356
+            if (isset($item[ 'children' ])) {
357
+                $this->recursiveReorderSimple($item[ 'children' ], $id);
358 358
             }
359 359
         }
360 360
     }
@@ -370,14 +370,14 @@  discard block
 block discarded – undo
370 370
     protected function getChildren($collection, $id)
371 371
     {
372 372
         $parentField = $this->getParentField();
373
-        $result = [];
373
+        $result = [ ];
374 374
         foreach ($collection as $instance) {
375
-            if ((int)$instance->$parentField != $id) {
375
+            if ((int) $instance->$parentField != $id) {
376 376
                 continue;
377 377
             }
378 378
 
379 379
             $instance->setRelation('children', $this->getChildren($collection, $instance->getKey()));
380
-            $result[] = $instance;
380
+            $result[ ] = $instance;
381 381
         }
382 382
 
383 383
         return new Collection($result);
Please login to merge, or discard this patch.
src/Http/Controllers/AdminController.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -39,34 +39,34 @@  discard block
 block discarded – undo
39 39
     public function __construct(Request $request, \Illuminate\Contracts\Foundation\Application $application)
40 40
     {
41 41
         $this->application = $application;
42
-        $this->navigation = $application['sleeping_owl.navigation'];
42
+        $this->navigation = $application[ 'sleeping_owl.navigation' ];
43 43
         $this->navigation->setCurrentUrl($request->url());
44 44
 
45
-        if (! Breadcrumbs::exists('home')) {
46
-            Breadcrumbs::register('home', function ($breadcrumbs) {
45
+        if (!Breadcrumbs::exists('home')) {
46
+            Breadcrumbs::register('home', function($breadcrumbs) {
47 47
                 $breadcrumbs->push(trans('sleeping_owl::lang.dashboard'), route('admin.dashboard'));
48 48
             });
49 49
         }
50 50
 
51
-        $breadcrumbs = [];
51
+        $breadcrumbs = [ ];
52 52
 
53 53
         if ($currentPage = $this->navigation->getCurrentPage()) {
54 54
             foreach ($currentPage->getPathArray() as $page) {
55
-                $breadcrumbs[] = [
56
-                    'id' => $page['id'],
57
-                    'title' => $page['title'],
58
-                    'url' => $page['url'],
55
+                $breadcrumbs[ ] = [
56
+                    'id' => $page[ 'id' ],
57
+                    'title' => $page[ 'title' ],
58
+                    'url' => $page[ 'url' ],
59 59
                     'parent' => $this->parentBreadcrumb,
60 60
                 ];
61 61
 
62
-                $this->parentBreadcrumb = $page['id'];
62
+                $this->parentBreadcrumb = $page[ 'id' ];
63 63
             }
64 64
         }
65 65
 
66 66
         foreach ($breadcrumbs as  $breadcrumb) {
67
-            Breadcrumbs::register($breadcrumb['id'], function ($breadcrumbs) use ($breadcrumb) {
68
-                $breadcrumbs->parent($breadcrumb['parent']);
69
-                $breadcrumbs->push($breadcrumb['title'], $breadcrumb['url']);
67
+            Breadcrumbs::register($breadcrumb[ 'id' ], function($breadcrumbs) use ($breadcrumb) {
68
+                $breadcrumbs->parent($breadcrumb[ 'parent' ]);
69
+                $breadcrumbs->push($breadcrumb[ 'title' ], $breadcrumb[ 'url' ]);
70 70
             });
71 71
         }
72 72
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function getDisplay(ModelConfigurationInterface $model)
96 96
     {
97
-        if (! $model->isDisplayable()) {
97
+        if (!$model->isDisplayable()) {
98 98
             abort(404);
99 99
         }
100 100
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     public function getCreate(ModelConfigurationInterface $model)
110 110
     {
111
-        if (! $model->isCreatable()) {
111
+        if (!$model->isCreatable()) {
112 112
             abort(404);
113 113
         }
114 114
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function postStore(ModelConfigurationInterface $model, Request $request)
128 128
     {
129
-        if (! $model->isCreatable()) {
129
+        if (!$model->isCreatable()) {
130 130
             abort(404);
131 131
         }
132 132
 
@@ -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
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         $editForm = $model->fireEdit($id);
205 205
         $item     = $editForm->getModel();
206 206
 
207
-        if (is_null($item) || ! $model->isEditable($item)) {
207
+        if (is_null($item) || !$model->isEditable($item)) {
208 208
             abort(404);
209 209
         }
210 210
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         $display = $model->fireDisplay();
258 258
 
259 259
         /** @var ColumnEditableInterface|null $column */
260
-        $column = $display->getColumns()->all()->filter(function ($column) use ($field) {
260
+        $column = $display->getColumns()->all()->filter(function($column) use ($field) {
261 261
             return ($column instanceof ColumnEditableInterface) and $field == $column->getName();
262 262
         })->first();
263 263
 
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         $repository = $model->getRepository();
269 269
         $item = $repository->find($id);
270 270
 
271
-        if (is_null($item) || ! $model->isEditable($item)) {
271
+        if (is_null($item) || !$model->isEditable($item)) {
272 272
             abort(404);
273 273
         }
274 274
 
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
     {
294 294
         $item = $model->getRepository()->find($id);
295 295
 
296
-        if (is_null($item) || ! $model->isDeletable($item)) {
296
+        if (is_null($item) || !$model->isDeletable($item)) {
297 297
             abort(404);
298 298
         }
299 299
 
@@ -320,13 +320,13 @@  discard block
 block discarded – undo
320 320
      */
321 321
     public function deleteDestroy(ModelConfigurationInterface $model, Request $request, $id)
322 322
     {
323
-        if (! $model->isRestorableModel()) {
323
+        if (!$model->isRestorableModel()) {
324 324
             abort(404);
325 325
         }
326 326
 
327 327
         $item = $model->getRepository()->findOnlyTrashed($id);
328 328
 
329
-        if (is_null($item) || ! $model->isRestorable($item)) {
329
+        if (is_null($item) || !$model->isRestorable($item)) {
330 330
             abort(404);
331 331
         }
332 332
 
@@ -353,13 +353,13 @@  discard block
 block discarded – undo
353 353
      */
354 354
     public function postRestore(ModelConfigurationInterface $model, Request $request, $id)
355 355
     {
356
-        if (! $model->isRestorableModel()) {
356
+        if (!$model->isRestorableModel()) {
357 357
             abort(404);
358 358
         }
359 359
 
360 360
         $item = $model->getRepository()->findOnlyTrashed($id);
361 361
 
362
-        if (is_null($item) || ! $model->isRestorable($item)) {
362
+        if (is_null($item) || !$model->isRestorable($item)) {
363 363
             abort(404);
364 364
         }
365 365
 
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
     {
428 428
         $lang = trans('sleeping_owl::lang');
429 429
         if ($lang == 'sleeping_owl::lang') {
430
-            $lang = trans('sleeping_owl::lang', [], 'messages', 'en');
430
+            $lang = trans('sleeping_owl::lang', [ ], 'messages', 'en');
431 431
         }
432 432
 
433 433
         $data = [
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
     {
471 471
         if (($backUrl = $request->input('_redirectBack')) == \URL::previous()) {
472 472
             $backUrl = null;
473
-            $request->merge(['_redirectBack' => $backUrl]);
473
+            $request->merge([ '_redirectBack' => $backUrl ]);
474 474
         }
475 475
 
476 476
         return $backUrl;
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      */
488 488
     protected function registerBreadcrumb($title, $parent)
489 489
     {
490
-        Breadcrumbs::register('render', function ($breadcrumbs) use ($title, $parent) {
490
+        Breadcrumbs::register('render', function($breadcrumbs) use ($title, $parent) {
491 491
             $breadcrumbs->parent($parent);
492 492
             $breadcrumbs->push($title);
493 493
         });
Please login to merge, or discard this patch.
src/Providers/SleepingOwlServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         /* Workaround to allow use ServiceProvider-based configurations in old fashion */
53 53
         if (is_file(app_path('Providers/AdminSectionsServiceProvider.php'))) {
54
-            $this->app->register($this->app->getNamespace() . 'Providers\\AdminSectionsServiceProvider');
54
+            $this->app->register($this->app->getNamespace().'Providers\\AdminSectionsServiceProvider');
55 55
         }
56 56
     }
57 57
 
Please login to merge, or discard this patch.