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 ( 414922...a9bc98 )
by butschster
12:35
created
src/Display/Column/Filter/Select.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @var array
30 30
      */
31
-    protected $options = [];
31
+    protected $options = [ ];
32 32
 
33 33
     /**
34 34
      * @var string
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             $model = new $model;
61 61
         }
62 62
 
63
-        if (! ($model instanceof Model)) {
63
+        if (!($model instanceof Model)) {
64 64
             throw new \Exception('Model must be an instance of Illuminate\Database\Eloquent\Model');
65 65
         }
66 66
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function getOptions()
116 116
     {
117
-        if (! is_null($this->getModel()) and ! is_null($this->getDisplay())) {
117
+        if (!is_null($this->getModel()) and !is_null($this->getDisplay())) {
118 118
             $this->loadOptions();
119 119
         }
120 120
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             $parts = explode('.', $name);
201 201
             $fieldName = array_pop($parts);
202 202
             $relationName = implode('.', $parts);
203
-            $query->whereHas($relationName, function ($q) use ($search, $fieldName) {
203
+            $query->whereHas($relationName, function($q) use ($search, $fieldName) {
204 204
                 $this->buildQuery($q, $fieldName, $search);
205 205
             });
206 206
         }
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
     protected function loadOptions()
210 210
     {
211
-        $repository = app(RepositoryInterface::class, [$this->getModel()]);
211
+        $repository = app(RepositoryInterface::class, [ $this->getModel() ]);
212 212
 
213 213
         $key = $repository->getModel()->getKeyName();
214 214
         $options = $repository->getQuery()->get()->lists($this->getDisplay(), $key);
Please login to merge, or discard this patch.
src/Display/Column/Checkbox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     {
22 22
         parent::__construct($label);
23 23
         $this->setLabel(
24
-            Form::checkbox(null, 1, false, ['class' => 'adminCheckboxAll']
24
+            Form::checkbox(null, 1, false, [ 'class' => 'adminCheckboxAll' ]
25 25
         ));
26 26
 
27 27
         $this->setOrderable(false);
Please login to merge, or discard this patch.
src/Display/Column/Custom.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function __construct($label = null, Closure $callback = null)
29 29
     {
30 30
         parent::__construct($label);
31
-        if (! is_null($callback)) {
31
+        if (!is_null($callback)) {
32 32
             $this->setCallback($callback);
33 33
         }
34 34
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     protected function getValue(Model $model)
65 65
     {
66
-        if (! is_callable($callback = $this->getCallback())) {
66
+        if (!is_callable($callback = $this->getCallback())) {
67 67
             throw new \Exception('Invalid custom column callback');
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Display/Column/Order.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         Route::post('{adminModel}/{adminModelId}/up', [
19 19
             'as' => 'admin.model.move-up',
20
-            function ($model, $id) {
20
+            function($model, $id) {
21 21
                 $instance = $model->getRepository()->find($id);
22 22
                 $instance->moveUp();
23 23
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         Route::post('{adminModel}/{adminModelId}/down', [
29 29
             'as' => 'admin.model.move-down',
30
-            function ($model, $id) {
30
+            function($model, $id) {
31 31
                 $instance = $model->getRepository()->find($id);
32 32
                 $instance->moveDown();
33 33
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function getModel()
50 50
     {
51
-        if (! in_array(OrderableModel::class, trait_uses_recursive($class = get_class($this->model)))) {
51
+        if (!in_array(OrderableModel::class, trait_uses_recursive($class = get_class($this->model)))) {
52 52
             throw new \Exception("Model [$class] should uses trait [SleepingOwl\\Admin\\Traits\\OrderableModel]");
53 53
         }
54 54
 
Please login to merge, or discard this patch.
src/Display/Column/DateTime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@
 block discarded – undo
58 58
         $value = $this->getModelValue();
59 59
         $originalValue = $value;
60 60
 
61
-        if (! is_null($value)) {
62
-            if (! $value instanceof Carbon) {
61
+        if (!is_null($value)) {
62
+            if (!$value instanceof Carbon) {
63 63
                 $value = Carbon::parse($value);
64 64
             }
65 65
 
Please login to merge, or discard this patch.
src/Display/Column/Url.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/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public function toArray()
47 47
     {
48 48
         $value = $this->getModelValue();
49
-        if (! empty($value) && (strpos($value, '://') === false)) {
49
+        if (!empty($value) && (strpos($value, '://') === false)) {
50 50
             $value = asset($value);
51 51
         }
52 52
 
Please login to merge, or discard this patch.
src/Display/Extension/Scopes.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * @var string[]
11 11
      */
12
-    protected $scopes = [];
12
+    protected $scopes = [ ];
13 13
 
14 14
     /**
15 15
      * @return string[]
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function push($scope)
40 40
     {
41
-        if (! is_array($scope)) {
41
+        if (!is_array($scope)) {
42 42
             $scope = func_get_args();
43 43
         }
44 44
 
45
-        $this->scopes[] = $scope;
45
+        $this->scopes[ ] = $scope;
46 46
 
47 47
         return $this;
48 48
     }
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
     public function modifyQuery(Builder $query)
66 66
     {
67 67
         foreach ($this->scopes as $scope) {
68
-            if (! is_null($scope)) {
68
+            if (!is_null($scope)) {
69 69
                 if (is_array($scope)) {
70 70
                     $method = array_shift($scope);
71 71
                     $params = $scope;
72 72
                 } else {
73 73
                     $method = $scope;
74
-                    $params = [];
74
+                    $params = [ ];
75 75
                 }
76 76
 
77 77
                 call_user_func_array([
Please login to merge, or discard this patch.
src/Display/Extension/Actions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function set($actions)
51 51
     {
52
-        if (! is_array($actions)) {
52
+        if (!is_array($actions)) {
53 53
             $actions = func_get_args();
54 54
         }
55 55
 
@@ -145,13 +145,13 @@  discard block
 block discarded – undo
145 145
             return;
146 146
         }
147 147
 
148
-        $this->all()->each(function (ActionInterface $action) {
148
+        $this->all()->each(function(ActionInterface $action) {
149 149
             $action->initialize();
150 150
         });
151 151
 
152 152
         $this->setHtmlAttribute('data-type', 'display-actions');
153 153
 
154
-        if (! $this->hasHtmlAttribute('class')) {
154
+        if (!$this->hasHtmlAttribute('class')) {
155 155
             $this->setHtmlAttribute('class', 'panel-footer');
156 156
         }
157 157
     }
Please login to merge, or discard this patch.