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 (184ec4)
by butschster
06:08
created
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.
src/Form/Element/Wysiwyg.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
      */
166 166
     public function setModelAttribute($value)
167 167
     {
168
-        if (! empty($this->filteredFieldKey)) {
168
+        if (!empty($this->filteredFieldKey)) {
169 169
             parent::setModelAttribute($value);
170 170
 
171 171
             $this->setModelAttributeKey($this->filteredFieldKey);
Please login to merge, or discard this patch.
src/Form/Element/Images.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function storeAsJson()
17 17
     {
18
-        $this->mutateValue(function ($value) {
18
+        $this->mutateValue(function($value) {
19 19
             return json_encode($value);
20 20
         });
21 21
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function storeAsComaSeparatedValue()
31 31
     {
32
-        $this->mutateValue(function ($value) {
32
+        $this->mutateValue(function($value) {
33 33
             return implode(',', $value);
34 34
         });
35 35
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $name = $this->getName();
47 47
         $value = $request->input($name, '');
48 48
 
49
-        if (! empty($value)) {
49
+        if (!empty($value)) {
50 50
             $value = explode(',', $value);
51 51
         } else {
52 52
             $value = [];
Please login to merge, or discard this patch.
src/Form/Element/File.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $routeName = 'admin.form.element.'.static::$route;
24 24
 
25
-        if (! $router->has($routeName)) {
25
+        if (!$router->has($routeName)) {
26 26
             $router->post('{adminModel}/'.static::$route.'/{field}/{id?}', [
27 27
                 'as' => $routeName,
28 28
                 'uses' => 'SleepingOwl\Admin\Http\Controllers\UploadController@fromField',
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function getUploadPath(UploadedFile $file)
93 93
     {
94
-        if (! is_callable($this->uploadPath)) {
94
+        if (!is_callable($this->uploadPath)) {
95 95
             return $this->defaultUploadPath($file);
96 96
         }
97 97
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getUploadFileName(UploadedFile $file)
119 119
     {
120
-        if (! is_callable($this->uploadFileName)) {
120
+        if (!is_callable($this->uploadFileName)) {
121 121
             return $this->defaultUploadFilename($file);
122 122
         }
123 123
 
Please login to merge, or discard this patch.
src/Form/Element/DateRange.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function getDefaultFrom()
33 33
     {
34
-        if (! $this->defaultFrom) {
34
+        if (!$this->defaultFrom) {
35 35
             $this->defaultFrom = Carbon::now();
36 36
         }
37 37
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function getDefaultTo()
59 59
     {
60
-        if (! $this->defaultTo) {
60
+        if (!$this->defaultTo) {
61 61
             $this->defaultTo = Carbon::now();
62 62
         }
63 63
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function setModelAttribute($value)
87 87
     {
88
-        $value = ! empty($value) ? array_map(function ($date) {
88
+        $value = !empty($value) ? array_map(function($date) {
89 89
             return Carbon::createFromFormat($this->getPickerFormat(), $date);
90 90
         }, explode('::', $value)) : null;
91 91
 
Please login to merge, or discard this patch.