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.
Passed
Branch development (886517)
by butschster
08:25
created
src/Form/Element/Wysiwyg.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
             $filteredValue = $value;
163 163
         }
164 164
 
165
-        if (! empty($this->filteredFieldKey)) {
165
+        if (!empty($this->filteredFieldKey)) {
166 166
             parent::setValue($model, $attribute, $value);
167 167
             parent::setValue($model, $this->filteredFieldKey, $filteredValue);
168 168
         } else {
Please login to merge, or discard this patch.
src/Form/Element/DependentSelect.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
     {
18 18
         $routeName = 'admin.form.element.dependent-select';
19 19
 
20
-        if (! $router->has($routeName)) {
21
-            $router->post('{adminModel}/dependent-select/{field}/{id?}', ['as' => $routeName, function (
20
+        if (!$router->has($routeName)) {
21
+            $router->post('{adminModel}/dependent-select/{field}/{id?}', ['as' => $routeName, function(
22 22
                 Request $request,
23 23
                 ModelConfigurationInterface $model,
24 24
                 $field,
25 25
                 $id = null
26 26
             ) {
27
-                if (! is_null($id)) {
27
+                if (!is_null($id)) {
28 28
                     $item = $model->getRepository()->find($id);
29
-                    if (is_null($item) || ! $model->isEditable($item)) {
29
+                    if (is_null($item) || !$model->isEditable($item)) {
30 30
                         return new JsonResponse([
31 31
                             'message' => trans('lang.message.access_denied'),
32 32
                         ], 403);
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
                     $form = $model->fireEdit($id);
36 36
                 } else {
37
-                    if (! $model->isCreatable()) {
37
+                    if (!$model->isCreatable()) {
38 38
                         return new JsonResponse([
39 39
                             'message' => trans('lang.message.access_denied'),
40 40
                         ], 403);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                 $options = array_except($options, $element->exclude);
63 63
 
64 64
                 return new JsonResponse([
65
-                    'output' => collect($options)->map(function ($value, $key) {
65
+                    'output' => collect($options)->map(function($value, $key) {
66 66
                         return ['id' => $key, 'name' => $value];
67 67
                     }),
68 68
                     'selected' => $element->getValue(),
Please login to merge, or discard this patch.
src/Form/Columns/Columns.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             $element = new Column($element);
66 66
         }
67 67
 
68
-        if (! ($element instanceof ColumnInterface)) {
68
+        if (!($element instanceof ColumnInterface)) {
69 69
             throw new \Exception('Column should be instance of ColumnInterface');
70 70
         }
71 71
 
@@ -80,16 +80,16 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $this->setHtmlAttribute('class', 'row');
82 82
 
83
-        $count = $this->getElements()->filter(function (ColumnInterface $column) {
83
+        $count = $this->getElements()->filter(function(ColumnInterface $column) {
84 84
             return $column->getWidth() === 0;
85 85
         })->count();
86 86
 
87
-        $width = $this->maxWidth - $this->getElements()->sum(function (ColumnInterface $column) {
87
+        $width = $this->maxWidth - $this->getElements()->sum(function(ColumnInterface $column) {
88 88
             return $column->getWidth();
89 89
         });
90 90
 
91
-        $this->getElements()->each(function (ColumnInterface $column) use ($width, $count) {
92
-            if (! $column->getWidth()) {
91
+        $this->getElements()->each(function(ColumnInterface $column) use ($width, $count) {
92
+            if (!$column->getWidth()) {
93 93
                 $column->setWidth(floor($width / $count));
94 94
             }
95 95
         });
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function setSize($size)
131 131
     {
132
-        $this->getColumns()->each(function (ColumnInterface $column) use ($size) {
132
+        $this->getColumns()->each(function(ColumnInterface $column) use ($size) {
133 133
             $column->setSize($size);
134 134
         });
135 135
     }
Please login to merge, or discard this patch.
src/Display/Column/Filter/Select.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $model = new $model;
69 69
         }
70 70
 
71
-        if (! ($model instanceof Model)) {
71
+        if (!($model instanceof Model)) {
72 72
             throw new \Exception('Model must be an instance of Illuminate\Database\Eloquent\Model');
73 73
         }
74 74
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function getOptions()
124 124
     {
125
-        if (! is_null($this->getModel()) and ! is_null($this->getDisplay())) {
125
+        if (!is_null($this->getModel()) and !is_null($this->getDisplay())) {
126 126
             $this->loadOptions();
127 127
         }
128 128
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             $parts = explode('.', $name);
209 209
             $fieldName = array_pop($parts);
210 210
             $relationName = implode('.', $parts);
211
-            $query->whereHas($relationName, function ($q) use ($search, $fieldName) {
211
+            $query->whereHas($relationName, function($q) use ($search, $fieldName) {
212 212
                 $this->buildQuery($q, $fieldName, $search);
213 213
             });
214 214
         }
Please login to merge, or discard this patch.
src/Display/Column/Filter/Range.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
 
119 119
         $name = $column->getName();
120 120
 
121
-        if (! empty($from) && ! empty($to)) {
121
+        if (!empty($from) && !empty($to)) {
122 122
             $this->setOperator('between');
123 123
             $search = [$from, $to];
124
-        } elseif (! empty($from)) {
124
+        } elseif (!empty($from)) {
125 125
             $this->setOperator('greater_or_equal');
126 126
             $search = $from;
127
-        } elseif (! empty($to)) {
127
+        } elseif (!empty($to)) {
128 128
             $this->setOperator('less_or_equal');
129 129
             $search = $to;
130 130
         } else {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $parts = explode('.', $name);
138 138
             $fieldName = array_pop($parts);
139 139
             $relationName = implode('.', $parts);
140
-            $query->whereHas($relationName, function ($q) use ($search, $fieldName) {
140
+            $query->whereHas($relationName, function($q) use ($search, $fieldName) {
141 141
                 $this->buildQuery($q, $fieldName, $search);
142 142
             });
143 143
         }
Please login to merge, or discard this patch.
src/Display/DisplayTab.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@
 block discarded – undo
60 60
     {
61 61
         $this->content = $content;
62 62
 
63
-        if (! is_null($label)) {
63
+        if (!is_null($label)) {
64 64
             $this->setLabel($label);
65 65
         }
66 66
 
67
-        if (! is_null($icon)) {
67
+        if (!is_null($icon)) {
68 68
             $this->setIcon($icon);
69 69
         }
70 70
     }
Please login to merge, or discard this patch.
src/Display/Extension/Apply.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
      */
27 27
     public function set($applies)
28 28
     {
29
-        if (! is_array($applies)) {
29
+        if (!is_array($applies)) {
30 30
             $applies = func_get_args();
31 31
         }
32 32
 
Please login to merge, or discard this patch.
src/Display/DisplayDatatables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      */
88 88
     public function setOrder($order)
89 89
     {
90
-        if (! is_array($order)) {
90
+        if (!is_array($order)) {
91 91
             $order = func_get_args();
92 92
         }
93 93
 
Please login to merge, or discard this patch.
src/Display/Filter/FilterBase.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $this->setName($name);
37 37
 
38
-        if (! is_null($title)) {
38
+        if (!is_null($title)) {
39 39
             $this->setTitle($title);
40 40
         }
41 41
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function getAlias()
79 79
     {
80
-        if (! $this->alias) {
80
+        if (!$this->alias) {
81 81
             return $this->getName();
82 82
         }
83 83
 
@@ -149,6 +149,6 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function isActive()
151 151
     {
152
-        return ! is_null($this->getValue());
152
+        return !is_null($this->getValue());
153 153
     }
154 154
 }
Please login to merge, or discard this patch.