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 (#219)
by
unknown
06:47
created
src/Form/FormDefault.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
     }
192 192
 
193 193
     /**
194
-     * @return Collection[]
194
+     * @return FormElementInterface[]
195 195
      */
196 196
     public function getItems()
197 197
     {
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * Form items.
51 51
      * @var FormElementInterface[]
52 52
      */
53
-    protected $items = [];
53
+    protected $items = [ ];
54 54
 
55 55
     /**
56 56
      * Form action url.
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         }
96 96
 
97 97
         $this->initialized = true;
98
-        $this->repository = app(RepositoryInterface::class, [$this->class]);
98
+        $this->repository = app(RepositoryInterface::class, [ $this->class ]);
99 99
 
100 100
         $this->setModel(app($this->class));
101 101
         $this->initializeItems();
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      */
206 206
     public function setItems($items)
207 207
     {
208
-        if (! is_array($items)) {
208
+        if (!is_array($items)) {
209 209
             $items = func_get_args();
210 210
         }
211 211
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public function addItem(FormElementInterface $item)
223 223
     {
224
-        $this->items[] = $item;
224
+        $this->items[ ] = $item;
225 225
 
226 226
         return $this;
227 227
     }
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
         $items = $this->getItems();
269 269
 
270
-        array_walk_recursive($items, function ($item) {
270
+        array_walk_recursive($items, function($item) {
271 271
             if ($item instanceof FormElementInterface) {
272 272
                 $item->setModel($this->model);
273 273
             }
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 
294 294
         $items = $this->getItems();
295 295
 
296
-        array_walk_recursive($items, function ($item) {
296
+        array_walk_recursive($items, function($item) {
297 297
             if ($item instanceof FormElementInterface) {
298 298
                 $item->save();
299 299
             }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 
306 306
         $this->saveHasOneRelations();
307 307
 
308
-        array_walk_recursive($items, function ($item) {
308
+        array_walk_recursive($items, function($item) {
309 309
             if ($item instanceof FormElementInterface) {
310 310
                 $item->afterSave();
311 311
             }
@@ -350,13 +350,13 @@  discard block
 block discarded – undo
350 350
             return;
351 351
         }
352 352
 
353
-        $rules = [];
354
-        $messages = [];
355
-        $titles = [];
353
+        $rules = [ ];
354
+        $messages = [ ];
355
+        $titles = [ ];
356 356
 
357 357
         $items = $this->getItems();
358 358
 
359
-        array_walk_recursive($items, function ($item) use (&$rules, &$messages, &$titles) {
359
+        array_walk_recursive($items, function($item) use (&$rules, &$messages, &$titles) {
360 360
             if ($item instanceof FormElementInterface) {
361 361
                 $rules += $item->getValidationRules();
362 362
                 $messages += $item->getValidationMessages();
@@ -415,12 +415,12 @@  discard block
 block discarded – undo
415 415
     {
416 416
         $items = $this->getItems();
417 417
 
418
-        array_walk_recursive($items, function ($item) {
418
+        array_walk_recursive($items, function($item) {
419 419
             if ($item instanceof Initializable) {
420 420
                 $item->initialize();
421 421
             }
422 422
 
423
-            if ($item instanceof Upload and ! $this->hasHtmlAttribute('enctype')) {
423
+            if ($item instanceof Upload and !$this->hasHtmlAttribute('enctype')) {
424 424
                 $this->setHtmlAttribute('enctype', 'multipart/form-data');
425 425
             }
426 426
         });
Please login to merge, or discard this patch.
src/Form/FormPanel.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     }
118 118
 
119 119
     /**
120
-     * @param       $place
120
+     * @param       string $place
121 121
      * @param array $items
122 122
      */
123 123
     protected function placeItemsTo($place, array $items)
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
         parent::__construct();
23 23
 
24 24
         $this->items = [
25
-            static::POSITION_HEADER => [],
26
-            static::POSITION_BODY => [],
27
-            static::POSITION_FOOTER => [],
25
+            static::POSITION_HEADER => [ ],
26
+            static::POSITION_BODY => [ ],
27
+            static::POSITION_FOOTER => [ ],
28 28
         ];
29 29
     }
30 30
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function setItems($items)
49 49
     {
50
-        if (! is_array($items)) {
50
+        if (!is_array($items)) {
51 51
             $items = func_get_args();
52 52
         }
53 53
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function addItem(FormElementInterface $item)
65 65
     {
66
-        $this->items[static::POSITION_BODY][] = $item;
66
+        $this->items[ static::POSITION_BODY ][ ] = $item;
67 67
 
68 68
         return $this;
69 69
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function addHeader($items)
77 77
     {
78
-        if (! is_array($items)) {
78
+        if (!is_array($items)) {
79 79
             $items = func_get_args();
80 80
         }
81 81
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function addBody($items)
93 93
     {
94
-        if (! is_array($items)) {
94
+        if (!is_array($items)) {
95 95
             $items = func_get_args();
96 96
         }
97 97
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function addFooter($items)
109 109
     {
110
-        if (! is_array($items)) {
110
+        if (!is_array($items)) {
111 111
             $items = func_get_args();
112 112
         }
113 113
 
@@ -122,16 +122,16 @@  discard block
 block discarded – undo
122 122
      */
123 123
     protected function placeItemsTo($place, array $items)
124 124
     {
125
-        if (! isset($this->items[$place])) {
125
+        if (!isset($this->items[ $place ])) {
126 126
             return;
127 127
         }
128 128
 
129
-        if (count($this->items[$place]) > 0) {
130
-            $this->items[$place][] = static::SEPARATOR;
129
+        if (count($this->items[ $place ]) > 0) {
130
+            $this->items[ $place ][ ] = static::SEPARATOR;
131 131
         }
132 132
 
133 133
         foreach ($items as $item) {
134
-            $this->items[$place][] = $item;
134
+            $this->items[ $place ][ ] = $item;
135 135
         }
136 136
     }
137 137
 }
Please login to merge, or discard this patch.
src/Model/ModelConfiguration.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     }
242 242
 
243 243
     /**
244
-     * @return string|\Symfony\Component\Translation\TranslatorInterface
244
+     * @return string|null
245 245
      */
246 246
     public function getCreateTitle()
247 247
     {
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     }
266 266
 
267 267
     /**
268
-     * @return string|\Symfony\Component\Translation\TranslatorInterface
268
+     * @return string|null
269 269
      */
270 270
     public function getEditTitle()
271 271
     {
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
     }
592 592
 
593 593
     /**
594
-     * @param $id
594
+     * @param integer $id
595 595
      *
596 596
      * @return mixed|void
597 597
      */
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
     }
629 629
 
630 630
     /**
631
-     * @param $id
631
+     * @param integer $id
632 632
      *
633 633
      * @return mixed
634 634
      */
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
     }
641 641
 
642 642
     /**
643
-     * @param $id
643
+     * @param integer $id
644 644
      *
645 645
      * @return bool|mixed
646 646
      */
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
     }
697 697
 
698 698
     /**
699
-     * @param string|int $id
699
+     * @param integer $id
700 700
      *
701 701
      * @return string
702 702
      */
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
     }
819 819
 
820 820
     /**
821
-     * @return null|string
821
+     * @return boolean
822 822
      */
823 823
     public function hasCustomControllerClass()
824 824
     {
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     public function getRepository()
179 179
     {
180 180
         if (is_null($this->repository)) {
181
-            $this->repository = app(RepositoryInterface::class, [$this->getClass()]);
181
+            $this->repository = app(RepositoryInterface::class, [ $this->getClass() ]);
182 182
         }
183 183
 
184 184
         return $this->repository;
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     public function getCreateTitle()
247 247
     {
248 248
         if (is_null($this->createTitle)) {
249
-            return trans('sleeping_owl::lang.model.create', ['title' => $this->getTitle()]);
249
+            return trans('sleeping_owl::lang.model.create', [ 'title' => $this->getTitle() ]);
250 250
         }
251 251
 
252 252
         return $this->createTitle;
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     public function getEditTitle()
271 271
     {
272 272
         if (is_null($this->editTitle)) {
273
-            return trans('sleeping_owl::lang.model.edit', ['title' => $this->getTitle()]);
273
+            return trans('sleeping_owl::lang.model.edit', [ 'title' => $this->getTitle() ]);
274 274
         }
275 275
 
276 276
         return $this->editTitle;
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
      */
425 425
     public function isCreatable()
426 426
     {
427
-        if (! is_callable($this->getCreate())) {
427
+        if (!is_callable($this->getCreate())) {
428 428
             return false;
429 429
         }
430 430
 
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
      */
449 449
     public function isEditable(Model $model)
450 450
     {
451
-        if (! is_callable($this->getEdit())) {
451
+        if (!is_callable($this->getEdit())) {
452 452
             return false;
453 453
         }
454 454
 
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
      */
525 525
     public function can($action, Model $model)
526 526
     {
527
-        if (! $this->checkAccess) {
527
+        if (!$this->checkAccess) {
528 528
             return true;
529 529
         }
530 530
 
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
      */
557 557
     public function fireDisplay()
558 558
     {
559
-        if (! is_callable($this->display)) {
559
+        if (!is_callable($this->display)) {
560 560
             return;
561 561
         }
562 562
 
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
      */
575 575
     public function fireCreate()
576 576
     {
577
-        if (! is_callable($this->create)) {
577
+        if (!is_callable($this->create)) {
578 578
             return;
579 579
         }
580 580
 
@@ -597,11 +597,11 @@  discard block
 block discarded – undo
597 597
      */
598 598
     public function fireEdit($id)
599 599
     {
600
-        if (! is_callable($this->edit)) {
600
+        if (!is_callable($this->edit)) {
601 601
             return;
602 602
         }
603 603
 
604
-        $edit = app()->call($this->edit, ['id' => $id]);
604
+        $edit = app()->call($this->edit, [ 'id' => $id ]);
605 605
         if ($edit instanceof DisplayInterface) {
606 606
             $edit->setModelClass($this->getClass());
607 607
             $edit->initialize();
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
     public function fireDelete($id)
636 636
     {
637 637
         if (is_callable($this->getDelete())) {
638
-            return app()->call($this->getDelete(), [$id]);
638
+            return app()->call($this->getDelete(), [ $id ]);
639 639
         }
640 640
     }
641 641
 
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
     public function fireRestore($id)
648 648
     {
649 649
         if (is_callable($this->getRestore())) {
650
-            return app()->call($this->getRestore(), [$id]);
650
+            return app()->call($this->getRestore(), [ $id ]);
651 651
         }
652 652
 
653 653
         return $this->getRestore();
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
      *
659 659
      * @return string
660 660
      */
661
-    public function getDisplayUrl(array $parameters = [])
661
+    public function getDisplayUrl(array $parameters = [ ])
662 662
     {
663 663
         array_unshift($parameters, $this->getAlias());
664 664
 
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
      *
671 671
      * @return string
672 672
      */
673
-    public function getCreateUrl(array $parameters = [])
673
+    public function getCreateUrl(array $parameters = [ ])
674 674
     {
675 675
         array_unshift($parameters, $this->getAlias());
676 676
 
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
      */
693 693
     public function getEditUrl($id)
694 694
     {
695
-        return route('admin.model.edit', [$this->getAlias(), $id]);
695
+        return route('admin.model.edit', [ $this->getAlias(), $id ]);
696 696
     }
697 697
 
698 698
     /**
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
      */
703 703
     public function getUpdateUrl($id)
704 704
     {
705
-        return route('admin.model.update', [$this->getAlias(), $id]);
705
+        return route('admin.model.update', [ $this->getAlias(), $id ]);
706 706
     }
707 707
 
708 708
     /**
@@ -712,7 +712,7 @@  discard block
 block discarded – undo
712 712
      */
713 713
     public function getDeleteUrl($id)
714 714
     {
715
-        return route('admin.model.destroy', [$this->getAlias(), $id]);
715
+        return route('admin.model.destroy', [ $this->getAlias(), $id ]);
716 716
     }
717 717
 
718 718
     /**
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
      */
723 723
     public function getRestoreUrl($id)
724 724
     {
725
-        return route('admin.model.restore', [$this->getAlias(), $id]);
725
+        return route('admin.model.restore', [ $this->getAlias(), $id ]);
726 726
     }
727 727
 
728 728
     /**
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
      */
823 823
     public function hasCustomControllerClass()
824 824
     {
825
-        return ! is_null($controller = $this->getControllerClass()) and class_exists($controller);
825
+        return !is_null($controller = $this->getControllerClass()) and class_exists($controller);
826 826
     }
827 827
 
828 828
     /**
@@ -863,7 +863,7 @@  discard block
 block discarded – undo
863 863
      */
864 864
     public function fireEvent($event, $halt = true, Model $model = null)
865 865
     {
866
-        if (! isset(static::$dispatcher)) {
866
+        if (!isset(static::$dispatcher)) {
867 867
             return true;
868 868
         }
869 869
 
@@ -878,7 +878,7 @@  discard block
 block discarded – undo
878 878
 
879 879
         $method = $halt ? 'until' : 'fire';
880 880
 
881
-        return static::$dispatcher->$method($event, [$this, $model]);
881
+        return static::$dispatcher->$method($event, [ $this, $model ]);
882 882
     }
883 883
 
884 884
     /**
@@ -927,7 +927,7 @@  discard block
 block discarded – undo
927 927
         ])) {
928 928
             array_unshift($arguments, $method);
929 929
 
930
-            return call_user_func_array([$this, 'registerEvent'], $arguments);
930
+            return call_user_func_array([ $this, 'registerEvent' ], $arguments);
931 931
         }
932 932
 
933 933
         throw new BadMethodCallException($method);
Please login to merge, or discard this patch.
src/Display/Column/Link.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     /**
8 8
      * @var array
9 9
      */
10
-    protected $linkAttributes = [];
10
+    protected $linkAttributes = [ ];
11 11
 
12 12
     /**
13 13
      * @return array
Please login to merge, or discard this patch.
src/Display/Column/RelatedLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         parent::__construct($name, $label);
27 27
         $this->originalName = $name;
28 28
 
29
-        if (! is_null($model)) {
29
+        if (!is_null($model)) {
30 30
             $this->setModel($model);
31 31
         }
32 32
 
Please login to merge, or discard this patch.
src/Display/Display.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * @var array
51 51
      */
52
-    protected $with = [];
52
+    protected $with = [ ];
53 53
 
54 54
     /**
55 55
      * @var string
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $this->repository = $this->makeRepository();
155 155
         $this->repository->with($this->with);
156 156
 
157
-        $this->extensions->each(function (DisplayExtensionInterface $extension) {
157
+        $this->extensions->each(function(DisplayExtensionInterface $extension) {
158 158
             if ($extension instanceof Initializable) {
159 159
                 $extension->initialize();
160 160
             }
@@ -188,9 +188,9 @@  discard block
 block discarded – undo
188 188
             $this->title,
189 189
         ];
190 190
 
191
-        $this->getExtensions()->each(function (DisplayExtensionInterface $extension) use (&$titles) {
191
+        $this->getExtensions()->each(function(DisplayExtensionInterface $extension) use (&$titles) {
192 192
             if (method_exists($extension, $method = 'getTitle')) {
193
-                $titles[] = call_user_func([$extension, $method]);
193
+                $titles[ ] = call_user_func([ $extension, $method ]);
194 194
             }
195 195
         });
196 196
 
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
             $extension = $this->extensions->get($method);
254 254
 
255 255
             if (method_exists($extension, 'set')) {
256
-                return call_user_func_array([$extension, 'set'], $arguments);
256
+                return call_user_func_array([ $extension, 'set' ], $arguments);
257 257
             }
258 258
         }
259 259
 
@@ -273,6 +273,6 @@  discard block
 block discarded – undo
273 273
      */
274 274
     protected function makeRepository()
275 275
     {
276
-        return app($this->repositoryClass, [$this->modelClass]);
276
+        return app($this->repositoryClass, [ $this->modelClass ]);
277 277
     }
278 278
 }
Please login to merge, or discard this patch.
src/Display/DisplayTree.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
     public static function registerRoutes()
15 15
     {
16
-        Route::post('{adminModel}/reorder', function (ModelConfiguration $model) {
16
+        Route::post('{adminModel}/reorder', function(ModelConfiguration $model) {
17 17
             $model->fireDisplay()->getRepository()->reorder(
18 18
                 Request::input('data')
19 19
             );
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @var array
30 30
      */
31
-    protected $parameters = [];
31
+    protected $parameters = [ ];
32 32
 
33 33
     /**
34 34
      * @var bool
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      */
188 188
     public function setParameter($key, $value)
189 189
     {
190
-        $this->parameters[$key] = $value;
190
+        $this->parameters[ $key ] = $value;
191 191
 
192 192
         return $this;
193 193
     }
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
             'value'       => $this->getValue(),
231 231
             'creatable'   => $model->isCreatable(),
232 232
             'createUrl'   => $model->getCreateUrl($this->getParameters() + Request::all()),
233
-            'controls'    => [app('sleeping_owl.table.column')->treeControl()],
233
+            'controls'    => [ app('sleeping_owl.table.column')->treeControl() ],
234 234
         ];
235 235
     }
236 236
 
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
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * @var ModelConfiguration[]
16 16
      */
17
-    protected $models = [];
17
+    protected $models = [ ];
18 18
 
19 19
     /**
20 20
      * @var TemplateInterface
@@ -24,14 +24,14 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @var NavigationPage[]
26 26
      */
27
-    protected $menuItems = [];
27
+    protected $menuItems = [ ];
28 28
 
29 29
     /**
30 30
      * @return string[]
31 31
      */
32 32
     public function modelAliases()
33 33
     {
34
-        return array_map(function (ModelConfiguration $model) {
34
+        return array_map(function(ModelConfiguration $model) {
35 35
             return $model->getAlias();
36 36
         }, $this->getModels());
37 37
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             $class = get_class($class);
64 64
         }
65 65
 
66
-        if (! $this->hasModel($class)) {
66
+        if (!$this->hasModel($class)) {
67 67
             $this->registerModel($class);
68 68
         }
69 69
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function setModel($class, $model)
96 96
     {
97
-        $this->models[$class] = $model;
97
+        $this->models[ $class ] = $model;
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
src/AliasBinder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * @var array
11 11
      */
12
-    protected $aliases = [];
12
+    protected $aliases = [ ];
13 13
 
14 14
     /**
15 15
      * Register new alias.
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function add($alias, $class)
23 23
     {
24
-        $this->aliases[$alias] = $class;
24
+        $this->aliases[ $alias ] = $class;
25 25
 
26 26
         if (method_exists($class, 'registerRoutes')) {
27 27
             app('router')->group([
28 28
                 'prefix'     => config('sleeping_owl.url_prefix'),
29 29
                 'middleware' => config('sleeping_owl.middleware'),
30
-            ], function () use ($class) {
31
-                call_user_func([$class, 'registerRoutes']);
30
+            ], function() use ($class) {
31
+                call_user_func([ $class, 'registerRoutes' ]);
32 32
             });
33 33
         }
34 34
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function getAlias($alias)
60 60
     {
61
-        return $this->aliases[$alias];
61
+        return $this->aliases[ $alias ];
62 62
     }
63 63
 
64 64
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function __call($name, $arguments)
85 85
     {
86
-        if (! $this->hasAlias($name)) {
86
+        if (!$this->hasAlias($name)) {
87 87
             throw new BadMethodCallException($name);
88 88
         }
89 89
 
Please login to merge, or discard this patch.