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/Traits/Assets.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return $this
21 21
      */
22
-    public function addScript($handle, $script, array $dependency = [])
22
+    public function addScript($handle, $script, array $dependency = [ ])
23 23
     {
24 24
         if (is_null($handle)) {
25 25
             $handle = $script;
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @return $this
39 39
      */
40
-    public function addStyle($handle, $style, array $attributes = [])
40
+    public function addStyle($handle, $style, array $attributes = [ ])
41 41
     {
42 42
         if (is_null($handle)) {
43 43
             $handle = $style;
Please login to merge, or discard this patch.
src/Traits/SqlQueryOperators.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -16,26 +16,26 @@  discard block
 block discarded – undo
16 16
      * @var array
17 17
      */
18 18
     protected $sqlOperators = [
19
-        'equal' => ['method' => 'where', 'op' => '='],
20
-        'not_equal' => ['method' => 'where', 'op' => '!='],
21
-        'less' => ['method' => 'where', 'op' => '<'],
22
-        'less_or_equal' => ['method' => 'where', 'op' => '<='],
23
-        'greater' => ['method' => 'where', 'op' => '>'],
24
-        'greater_or_equal' => ['method' => 'where', 'op' => '>='],
25
-        'begins_with' => ['method' => 'where', 'op' => 'like', 'mod' => '?%'],
26
-        'not_begins_with' => ['method' => 'where', 'op' => 'not like', 'mod' => '?%'],
27
-        'contains' => ['method' => 'where', 'op' => 'like', 'mod' => '%?%'],
28
-        'not_contains' => ['method' => 'where', 'op' => 'not like', 'mod' => '%?%'],
29
-        'ends_with' => ['method' => 'where', 'op' => 'like', 'mod' => '%?'],
30
-        'not_ends_with' => ['method' => 'where', 'op' => 'not like', 'mod' => '%?'],
31
-        'is_empty' => ['method' => 'where', 'op' => '=', 'value' => ''],
32
-        'is_not_empty' => ['method' => 'where', 'op' => '!=', 'value' => ''],
33
-        'is_null' => ['method' => 'whereNull'],
34
-        'is_not_null' => ['method' => 'whereNotNull'],
35
-        'between' => ['method' => 'whereBetween'],
36
-        'not_between' => ['method' => 'whereNotBetween'],
37
-        'in' => ['method' => 'whereIn'],
38
-        'not_in' => ['method' => 'whereNotIn'],
19
+        'equal' => [ 'method' => 'where', 'op' => '=' ],
20
+        'not_equal' => [ 'method' => 'where', 'op' => '!=' ],
21
+        'less' => [ 'method' => 'where', 'op' => '<' ],
22
+        'less_or_equal' => [ 'method' => 'where', 'op' => '<=' ],
23
+        'greater' => [ 'method' => 'where', 'op' => '>' ],
24
+        'greater_or_equal' => [ 'method' => 'where', 'op' => '>=' ],
25
+        'begins_with' => [ 'method' => 'where', 'op' => 'like', 'mod' => '?%' ],
26
+        'not_begins_with' => [ 'method' => 'where', 'op' => 'not like', 'mod' => '?%' ],
27
+        'contains' => [ 'method' => 'where', 'op' => 'like', 'mod' => '%?%' ],
28
+        'not_contains' => [ 'method' => 'where', 'op' => 'not like', 'mod' => '%?%' ],
29
+        'ends_with' => [ 'method' => 'where', 'op' => 'like', 'mod' => '%?' ],
30
+        'not_ends_with' => [ 'method' => 'where', 'op' => 'not like', 'mod' => '%?' ],
31
+        'is_empty' => [ 'method' => 'where', 'op' => '=', 'value' => '' ],
32
+        'is_not_empty' => [ 'method' => 'where', 'op' => '!=', 'value' => '' ],
33
+        'is_null' => [ 'method' => 'whereNull' ],
34
+        'is_not_null' => [ 'method' => 'whereNotNull' ],
35
+        'between' => [ 'method' => 'whereBetween' ],
36
+        'not_between' => [ 'method' => 'whereNotBetween' ],
37
+        'in' => [ 'method' => 'whereIn' ],
38
+        'not_in' => [ 'method' => 'whereNotIn' ],
39 39
     ];
40 40
 
41 41
     /**
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function setOperator($operator)
56 56
     {
57
-        if (! array_key_exists($operator, $this->sqlOperators)) {
57
+        if (!array_key_exists($operator, $this->sqlOperators)) {
58 58
             throw new FilterOperatorException("Operator [$operator] not found");
59 59
         }
60 60
 
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
     protected function buildQuery(Builder $query, $column, $value)
72 72
     {
73 73
         $params = $this->getOperatorParams();
74
-        $method = $params['method'];
74
+        $method = $params[ 'method' ];
75 75
 
76 76
         switch ($method) {
77 77
             case 'where':
78 78
                 $value = str_replace('?', $value, array_get($params, 'mod', '?'));
79
-                $query->where($column, $params['op'], $value);
79
+                $query->where($column, $params[ 'op' ], $value);
80 80
                 break;
81 81
             case 'whereNull':
82 82
             case 'whereNotNull':
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function getOperatorParams()
100 100
     {
101
-        return array_get($this->sqlOperators, $this->getOperator(), ['method' => 'where', 'op' => '=']);
101
+        return array_get($this->sqlOperators, $this->getOperator(), [ 'method' => 'where', 'op' => '=' ]);
102 102
     }
103 103
 
104 104
     /**
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     protected function prepareValue($value)
110 110
     {
111 111
         $params = $this->getOperatorParams();
112
-        $method = $params['method'];
112
+        $method = $params[ 'method' ];
113 113
         switch ($method) {
114 114
             case 'where':
115 115
             case 'whereNull':
@@ -117,13 +117,13 @@  discard block
 block discarded – undo
117 117
                 break;
118 118
             case 'whereBetween':
119 119
             case 'whereNotBetween':
120
-                if (! is_array($value)) {
120
+                if (!is_array($value)) {
121 121
                     $value = explode(',', $value, 2);
122 122
                 }
123 123
                 break;
124 124
             case 'whereIn':
125 125
             case 'whereNotIn':
126
-                if (! is_array($value)) {
126
+                if (!is_array($value)) {
127 127
                     $value = explode(',', $value);
128 128
                 }
129 129
                 break;
Please login to merge, or discard this patch.
src/Traits/Accessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
         } else {
31 31
             $method = 'set'.ucfirst($name);
32 32
             if (method_exists($this, 'set'.ucfirst($name))) {
33
-                $this->attributes[$name] = $this->{$method}($value);
33
+                $this->attributes[ $name ] = $this->{$method}($value);
34 34
             } else {
35
-                $this->attributes[$name] = $value;
35
+                $this->attributes[ $name ] = $value;
36 36
             }
37 37
         }
38 38
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function __isset($name)
69 69
     {
70
-        return isset($this->attributes[$name]);
70
+        return isset($this->attributes[ $name ]);
71 71
     }
72 72
 
73 73
     /**
@@ -75,6 +75,6 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function __unset($name)
77 77
     {
78
-        unset($this->attributes[$name]);
78
+        unset($this->attributes[ $name ]);
79 79
     }
80 80
 }
Please login to merge, or discard this patch.
src/Commands/UserManagerCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $userClass = $this->getUserClass();
55 55
 
56
-        $headers = ['id', 'name', 'email'];
56
+        $headers = [ 'id', 'name', 'email' ];
57 57
         $users = $userClass::get($headers);
58 58
 
59 59
         $this->table($headers, $users);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             return;
70 70
         }
71 71
 
72
-        if (! is_null($userClass::where('email', $email)->first())) {
72
+        if (!is_null($userClass::where('email', $email)->first())) {
73 73
             $this->error("User with same email [{$email}] exists.");
74 74
 
75 75
             return;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         }
121 121
 
122 122
         $confirm = $this->confirm("Are you sure want to delete user with id [{$id}]?", false);
123
-        if (! $confirm) {
123
+        if (!$confirm) {
124 124
             return;
125 125
         }
126 126
 
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
173 173
     protected function getOptions()
174 174
     {
175 175
         return [
176
-            ['create', 'c', InputOption::VALUE_NONE, 'Create new user.'],
177
-            ['delete', 'd', InputOption::VALUE_NONE, 'Delete user.'],
178
-            ['password', 'p', InputOption::VALUE_NONE, 'Change user password.'],
176
+            [ 'create', 'c', InputOption::VALUE_NONE, 'Create new user.' ],
177
+            [ 'delete', 'd', InputOption::VALUE_NONE, 'Delete user.' ],
178
+            [ 'password', 'p', InputOption::VALUE_NONE, 'Change user password.' ],
179 179
         ];
180 180
     }
181 181
 }
Please login to merge, or discard this patch.
src/Auth/Administrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
      */
33 33
     public function setPasswordAttribute($value)
34 34
     {
35
-        if (! empty($value)) {
36
-            $this->attributes['password'] = bcrypt($value);
35
+        if (!empty($value)) {
36
+            $this->attributes[ 'password' ] = bcrypt($value);
37 37
         }
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Templates/TemplateDefault.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
             'Sortable',
20 20
         ]);
21 21
 
22
-        Meta::AddJs('adminScripts', route('admin.scripts'), ['libraries']);
22
+        Meta::AddJs('adminScripts', route('admin.scripts'), [ 'libraries' ]);
23 23
     }
24 24
 
25 25
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
64 64
      */
65
-    public function view($view, $data = [], $mergeData = [])
65
+    public function view($view, $data = [ ], $mergeData = [ ])
66 66
     {
67 67
         if ($view instanceof \Illuminate\View\View) {
68 68
             return $view->with($data);
Please login to merge, or discard this patch.
src/Contracts/TemplateInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,5 +23,5 @@
 block discarded – undo
23 23
      *
24 24
      * @return \BladeView|bool|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
25 25
      */
26
-    public function view($view, $data = [], $mergeData = []);
26
+    public function view($view, $data = [ ], $mergeData = [ ]);
27 27
 }
Please login to merge, or discard this patch.
src/Form/FormElement.php 1 patch
Spacing   +7 added lines, -7 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 $validationRules = [];
31
+    protected $validationRules = [ ];
32 32
 
33 33
     public function __construct()
34 34
     {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function getValidationMessages()
47 47
     {
48
-        return [];
48
+        return [ ];
49 49
     }
50 50
 
51 51
     /**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function getValidationLabels()
55 55
     {
56
-        return [];
56
+        return [ ];
57 57
     }
58 58
 
59 59
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function addValidationRule($rule, $message = null)
74 74
     {
75
-        $this->validationRules[] = $rule;
75
+        $this->validationRules[ ] = $rule;
76 76
 
77 77
         return $this;
78 78
     }
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function setValidationRules($validationRules)
86 86
     {
87
-        if (! is_array($validationRules)) {
87
+        if (!is_array($validationRules)) {
88 88
             $validationRules = func_get_args();
89 89
         }
90 90
 
91
-        $this->validationRules = [];
91
+        $this->validationRules = [ ];
92 92
         foreach ($validationRules as $rule) {
93
-            $this->validationRules[] = explode('|', $rule);
93
+            $this->validationRules[ ] = explode('|', $rule);
94 94
         }
95 95
 
96 96
         return $this;
Please login to merge, or discard this patch.
src/Form/Element/MultiSelect.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         ];
92 92
 
93 93
         if ($this->isTaggable()) {
94
-            $attributes['class'] .= ' input-taggable';
94
+            $attributes[ 'class' ] .= ' input-taggable';
95 95
         }
96 96
 
97 97
         return [
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $attribute = $this->getAttribute();
117 117
 
118 118
         if (is_null(Request::input($this->getPath()))) {
119
-            $values = [];
119
+            $values = [ ];
120 120
         } else {
121 121
             $values = $this->getValue();
122 122
         }
@@ -125,19 +125,19 @@  discard block
 block discarded – undo
125 125
 
126 126
         if ($relation instanceof \Illuminate\Database\Eloquent\Relations\BelongsToMany) {
127 127
             foreach ($values as $i => $value) {
128
-                if (! array_key_exists($value, $this->getOptions()) and $this->isTaggable()) {
128
+                if (!array_key_exists($value, $this->getOptions()) and $this->isTaggable()) {
129 129
                     $model = clone $this->getModelForOptions();
130 130
                     $model->{$this->getDisplay()} = $value;
131 131
                     $model->save();
132 132
 
133
-                    $values[$i] = $model->getKey();
133
+                    $values[ $i ] = $model->getKey();
134 134
                 }
135 135
             }
136 136
 
137 137
             $relation->sync($values);
138 138
         } elseif ($relation instanceof \Illuminate\Database\Eloquent\Relations\HasMany) {
139 139
             foreach ($relation->get() as $item) {
140
-                if (! in_array($item->getKey(), $values)) {
140
+                if (!in_array($item->getKey(), $values)) {
141 141
                     if ($this->isDeleteRelatedItem()) {
142 142
                         $item->delete();
143 143
                     } else {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                 $item = $model->find($value);
154 154
 
155 155
                 if (is_null($item)) {
156
-                    if (! $this->isTaggable()) {
156
+                    if (!$this->isTaggable()) {
157 157
                         continue;
158 158
                     }
159 159
 
Please login to merge, or discard this patch.