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 ( ed9166...b2510c )
by butschster
09:02 queued 02:41
created
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
             }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     protected function setModelForElements(Model $model)
147 147
     {
148
-        $this->getElements()->each(function ($element) use ($model) {
148
+        $this->getElements()->each(function($element) use ($model) {
149 149
             $element = $this->getElementContainer($element);
150 150
 
151 151
             if ($element instanceof WithModel) {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     protected function getValidationRulesFromElements(array $rules = [])
165 165
     {
166
-        $this->getElements()->onlyActive()->each(function ($element) use (&$rules) {
166
+        $this->getElements()->onlyActive()->each(function($element) use (&$rules) {
167 167
             $element = $this->getElementContainer($element);
168 168
 
169 169
             if ($element instanceof Validable) {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
      */
182 182
     protected function getValidationMessagesForElements(array $messages = [])
183 183
     {
184
-        $this->getElements()->onlyActive()->each(function ($element) use (&$messages) {
184
+        $this->getElements()->onlyActive()->each(function($element) use (&$messages) {
185 185
             $element = $this->getElementContainer($element);
186 186
 
187 187
             if ($element instanceof Validable) {
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     protected function getValidationLabelsForElements(array $labels = [])
201 201
     {
202
-        $this->getElements()->onlyActive()->each(function ($element) use (&$labels) {
202
+        $this->getElements()->onlyActive()->each(function($element) use (&$labels) {
203 203
             $element = $this->getElementContainer($element);
204 204
 
205 205
             if ($element instanceof Validable) {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      */
218 218
     protected function saveElements(\Illuminate\Http\Request $request)
219 219
     {
220
-        $this->getElements()->onlyActive()->each(function ($element) use ($request) {
220
+        $this->getElements()->onlyActive()->each(function($element) use ($request) {
221 221
             $element = $this->getElementContainer($element);
222 222
 
223 223
             if ($element instanceof FormElementInterface) {
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      */
234 234
     protected function afterSaveElements(\Illuminate\Http\Request $request)
235 235
     {
236
-        $this->getElements()->onlyActive()->each(function ($element) use ($request) {
236
+        $this->getElements()->onlyActive()->each(function($element) use ($request) {
237 237
             $element = $this->getElementContainer($element);
238 238
 
239 239
             if ($element instanceof FormElementInterface) {
Please login to merge, or discard this patch.
src/Display/DisplayDatatablesAsync.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     }
119 119
 
120 120
     /**
121
-     * @param mixed $distinct
121
+     * @param string|null $distinct
122 122
      *
123 123
      * @return $this
124 124
      */
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * Apply offset and limit to the query.
164 164
      *
165
-     * @param $query
165
+     * @param Builder $query
166 166
      * @param \Illuminate\Http\Request $request
167 167
      */
168 168
     protected function applyOffset($query, \Illuminate\Http\Request $request)
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      * Convert collection to the datatables structure.
205 205
      *
206 206
      * @param \Illuminate\Http\Request $request
207
-     * @param array|Collection $collection
207
+     * @param Collection $collection
208 208
      * @param int $totalCount
209 209
      * @param int $filteredCount
210 210
      *
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public static function registerRoutes(Router $router)
25 25
     {
26 26
         $routeName = 'admin.display.async';
27
-        if (! $router->has($routeName)) {
27
+        if (!$router->has($routeName)) {
28 28
             $router->get('{adminModel}/async/{adminDisplayName?}', [
29 29
                 'as' => $routeName,
30 30
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\DisplayController@async',
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         }
33 33
 
34 34
         $routeName = 'admin.display.async.inlineEdit';
35
-        if (! $router->has($routeName)) {
35
+        if (!$router->has($routeName)) {
36 36
             $router->post('{adminModel}/async/{adminDisplayName?}', [
37 37
                 'as' => $routeName,
38 38
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\AdminController@inlineEdit',
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         $totalCount = $query->count();
143 143
         $filteredCount = 0;
144 144
 
145
-        if (! is_null($this->distinct)) {
145
+        if (!is_null($this->distinct)) {
146 146
             $filteredCount = $query->distinct()->count($this->getDistinct());
147 147
         }
148 148
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             return;
191 191
         }
192 192
 
193
-        $query->where(function ($query) use ($search) {
193
+        $query->where(function($query) use ($search) {
194 194
             $columns = $this->getColumns()->all();
195 195
             foreach ($columns as $column) {
196 196
                 if (in_array(get_class($column), $this->searchableColumns)) {
Please login to merge, or discard this patch.
src/Templates/TemplateDefault.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-     * @return Manager
57
+     * @return Breadcrumbs
58 58
      */
59 59
     public function breadcrumbs()
60 60
     {
Please login to merge, or discard this patch.
src/Templates/Breadcrumbs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             list($name, $params) = $this->currentRoute->get();
35 35
         }
36 36
 
37
-        if (! $this->exists($name)) {
37
+        if (!$this->exists($name)) {
38 38
             return '';
39 39
         }
40 40
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function renderIfExistsArray($name, $params = [])
62 62
     {
63
-        if (! $this->exists($name)) {
63
+        if (!$this->exists($name)) {
64 64
             return '';
65 65
         }
66 66
 
Please login to merge, or discard this patch.
src/Display/Filter/FilterCustom.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($name, $title);
23 23
 
24
-        if (! is_null($callback)) {
24
+        if (!is_null($callback)) {
25 25
             $this->setCallback($callback);
26 26
         }
27 27
     }
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
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function __construct($label = null, Closure $callback = null)
33 33
     {
34 34
         parent::__construct($label);
35
-        if (! is_null($callback)) {
35
+        if (!is_null($callback)) {
36 36
             $this->setCallback($callback);
37 37
         }
38 38
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function getModelValue()
68 68
     {
69
-        if (! is_callable($callback = $this->getCallback())) {
69
+        if (!is_callable($callback = $this->getCallback())) {
70 70
             throw new \Exception('Invalid custom column callback');
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/Form/Element/Upload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
         if ($request->input($this->getPath().'_remove')) {
44 44
             $this->setModelAttribute(null);
45
-        } elseif (! is_null($value)) {
45
+        } elseif (!is_null($value)) {
46 46
             $this->setModelAttribute($value);
47 47
         }
48 48
     }
Please login to merge, or discard this patch.
src/Form/Element/Image.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
      */
28 28
     public function customValidation(Validator $validator)
29 29
     {
30
-        $validator->after(function ($validator) {
30
+        $validator->after(function($validator) {
31 31
             /** @var \Illuminate\Http\UploadedFile $file */
32 32
             $file = array_get($validator->attributes(), 'file');
33 33
 
34 34
             $size = getimagesize($file->getRealPath());
35 35
 
36
-            if (! $size) {
36
+            if (!$size) {
37 37
                 $validator->errors()->add('file', trans('sleeping_owl::validation.not_image'));
38 38
             }
39 39
         });
Please login to merge, or discard this patch.
src/Form/Element/Password.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $value = $this->getValueFromModel();
25 25
 
26
-        if (! $this->isAllowedEmptyValue() and $this->getModel()->exists and empty($value)) {
26
+        if (!$this->isAllowedEmptyValue() and $this->getModel()->exists and empty($value)) {
27 27
             return;
28 28
         }
29 29
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $data = parent::getValidationRules();
39 39
 
40
-        if (! $this->isAllowedEmptyValue() and $this->getModel()->exists) {
40
+        if (!$this->isAllowedEmptyValue() and $this->getModel()->exists) {
41 41
             foreach ($data as $field => $rules) {
42 42
                 foreach ($rules as $i => $rule) {
43 43
                     if ($rule == 'required') {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function hashWithBcrypt()
75 75
     {
76
-        return $this->mutateValue(function ($value) {
76
+        return $this->mutateValue(function($value) {
77 77
             return bcrypt($value);
78 78
         });
79 79
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function hashWithMD5()
85 85
     {
86
-        return $this->mutateValue(function ($value) {
86
+        return $this->mutateValue(function($value) {
87 87
             return md5($value);
88 88
         });
89 89
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function hashWithSHA1()
95 95
     {
96
-        return $this->mutateValue(function ($value) {
96
+        return $this->mutateValue(function($value) {
97 97
             return sha1($value);
98 98
         });
99 99
     }
Please login to merge, or discard this patch.