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 ( eb7034...336670 )
by
unknown
10:15
created
core/tests/User/UserGroupRepositoryTest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,6 @@
 block discarded – undo
102 102
     /**
103 103
      * getRepository
104 104
      *
105
-     * @param null $model
106 105
      *
107 106
      * @return Mockery\MockInterface
108 107
      */
Please login to merge, or discard this patch.
core/tests/User/UserRepositoryTest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,6 @@
 block discarded – undo
102 102
     /**
103 103
      * getRepository
104 104
      *
105
-     * @param null $model
106 105
      *
107 106
      * @return Mockery\MockInterface
108 107
      */
Please login to merge, or discard this patch.
core/tests/User/VirtualGroupRepositoryTest.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * getRepository
75 75
      *
76
-     * @param null $model
77 76
      *
77
+     * @param Mockery\Mock $users
78 78
      * @return VirtualGroupRepository
79 79
      */
80 80
     protected function makeRepository($users = null, $vGroups = null, $getter = null)
@@ -114,7 +114,6 @@  discard block
 block discarded – undo
114 114
     /**
115 115
      * getRepository
116 116
      *
117
-     * @param null $model
118 117
      *
119 118
      * @return Mockery\MockInterface
120 119
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     protected function makeRepository($users = null, $vGroups = null, $getter = null)
81 81
     {
82 82
 
83
-        $vGroups = $vGroups?:[
83
+        $vGroups = $vGroups ?: [
84 84
             'facebook' => [
85 85
                 'title' => 'fb_group'
86 86
             ],
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 'title' => 'github_group'
92 92
             ],
93 93
         ];
94
-        $getter = $getter?:function ($user) {
94
+        $getter = $getter ?: function($user) {
95 95
             $providers = [];
96 96
             if ($user->getAccountByProvider('facebook')) {
97 97
                 $providers[] = 'facebook';
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             return $providers;
106 106
         };
107 107
 
108
-        $users = $users?:$this->makeUsers();
108
+        $users = $users ?: $this->makeUsers();
109 109
 
110 110
         return new VirtualGroupRepository($users, $vGroups, $getter);
111 111
     }
Please login to merge, or discard this patch.
core/tests/User/UserHandlerTest.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $hasher = $this->getHasher();
35 35
         $hasher->shouldReceive('make')->once()->with('secret')->andReturn('encrypted');
36 36
         /** @var Mockery\MockInterface $handler */
37
-        $handler = $this->getHandlerMock(null,null,null,null,null,null,$hasher);
37
+        $handler = $this->getHandlerMock(null, null, null, null, null, null, $hasher);
38 38
         $handler->shouldReceive('validateForCreate')->withAnyArgs()->andReturn(true);
39 39
 
40 40
         $data = [
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $hasher = $this->getHasher();
60 60
         $hasher->shouldReceive('make')->once()->with('secret')->andReturn('encrypted');
61 61
         /** @var Mockery\MockInterface $handler */
62
-        $handler = $this->getHandlerMock(null,null,null,null,null,null,$hasher);
62
+        $handler = $this->getHandlerMock(null, null, null, null, null, null, $hasher);
63 63
         $handler->shouldReceive('validateForCreate')->withAnyArgs()->andReturn(true);
64 64
 
65 65
         $data = [
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $hasher = $this->getHasher();
98 98
         $hasher->shouldReceive('make')->once()->with('secret')->andReturn('encrypted');
99 99
         /** @var Mockery\MockInterface $handler */
100
-        $handler = $this->getHandlerMock(null,null,null,null,null,null,$hasher);
100
+        $handler = $this->getHandlerMock(null, null, null, null, null, null, $hasher);
101 101
         $handler->shouldReceive('validateForCreate')->withAnyArgs()->andReturn(true);
102 102
 
103 103
         $data = [
@@ -135,23 +135,23 @@  discard block
 block discarded – undo
135 135
         $hasher = $this->getHasher();
136 136
         $hasher->shouldReceive('make')->once()->with('secret')->andReturn('encrypted');
137 137
         /** @var Mockery\MockInterface $handler */
138
-        $handler = $this->getHandlerMock(null,null,null,null,null,null,$hasher);
138
+        $handler = $this->getHandlerMock(null, null, null, null, null, null, $hasher);
139 139
         $handler->shouldReceive('validateForCreate')->withAnyArgs()->andReturn(true);
140 140
 
141 141
         $data = [
142 142
             'displayName' => 'foo',
143 143
             'password' => 'secret',
144
-            'groupId' => ['bar','baz']
144
+            'groupId' => ['bar', 'baz']
145 145
         ];
146 146
 
147 147
         /** @var Mockery\MockInterface $users */
148 148
         $users = $handler->users();
149 149
         $user = $this->makeUser();
150
-        $user->shouldReceive('joinGroups')->with(['bar','baz'])->andReturnSelf();
150
+        $user->shouldReceive('joinGroups')->with(['bar', 'baz'])->andReturnSelf();
151 151
 
152 152
         /** @var Mockery\MockInterface $groups */
153 153
         $groups = $handler->groups();
154
-        $groups->shouldReceive('whereIn')->once()->with('id', ['bar','baz'])->andReturnSelf();
154
+        $groups->shouldReceive('whereIn')->once()->with('id', ['bar', 'baz'])->andReturnSelf();
155 155
         $groups->shouldReceive('get')->once()->andReturn([]);
156 156
 
157 157
         $users->shouldReceive('create')
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         $hasher = $this->getHasher();
169 169
         $hasher->shouldReceive('make')->once()->with('secret')->andReturn('encrypted');
170 170
         /** @var Mockery\MockInterface $handler */
171
-        $handler = $this->getHandlerMock(null,null,null,null,null,null,$hasher);
171
+        $handler = $this->getHandlerMock(null, null, null, null, null, null, $hasher);
172 172
         $handler->shouldReceive('validateForCreate')->withAnyArgs()->andReturn(true);
173 173
 
174 174
         $data = [
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
 
425 425
         /** @var Mockery\MockInterface $accounts */
426 426
         $accounts = $handler->accounts();
427
-        $accounts->shouldReceive('where')->once()->with(['accountId'=>'foo','provider'=>'foo'])->andReturnSelf();
427
+        $accounts->shouldReceive('where')->once()->with(['accountId'=>'foo', 'provider'=>'foo'])->andReturnSelf();
428 428
         $accounts->shouldReceive('first')->once()->andReturn(true);
429 429
 
430 430
 
Please login to merge, or discard this patch.
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -574,6 +574,10 @@  discard block
 block discarded – undo
574 574
     }
575 575
 
576 576
     /**
577
+     * @param Mockery\MockInterface $users
578
+     * @param Mockery\MockInterface $groups
579
+     * @param Mockery\MockInterface $hasher
580
+     * @param Mockery\MockInterface $validator
577 581
      * @return \Xpressengine\User\UserHandler
578 582
      */
579 583
     private function getHandler(
@@ -640,7 +644,8 @@  discard block
 block discarded – undo
640 644
     }
641 645
 
642 646
     /**
643
-     * @return \Xpressengine\User\UserHandler
647
+     * @param Mockery\MockInterface $hasher
648
+     * @return Mockery\Mock
644 649
      */
645 650
     private function getHandlerMock(
646 651
         $users = null,
Please login to merge, or discard this patch.
core/tests/User/PendingEmailRepositoryTest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,6 @@
 block discarded – undo
102 102
     /**
103 103
      * getRepository
104 104
      *
105
-     * @param null $model
106 105
      *
107 106
      * @return Mockery\MockInterface
108 107
      */
Please login to merge, or discard this patch.
core/src/Xpressengine/Translation/Translator.php 2 patches
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
      * @param string $id         다국어 key
156 156
      * @param array  $parameters 인자
157 157
      * @param null   $domain     domain
158
-     * @param null   $locale     locale
159
-     * @return mixed
158
+     * @param string   $locale     locale
159
+     * @return string
160 160
      */
161 161
     public function trans($id, array $parameters = array(), $domain = null, $locale = null)
162 162
     {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      * @param array  $parameters 인자
202 202
      * @param null   $domain     domain
203 203
      * @param null   $locale     locale
204
-     * @return mixed
204
+     * @return string
205 205
      */
206 206
     public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null)
207 207
     {
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
      *
220 220
      * @param string $key     다국어 key
221 221
      * @param array  $replace 변경 데이터
222
-     * @param null   $locale  로케일
223
-     * @return mixed
222
+     * @param null|string   $locale  로케일
223
+     * @return string
224 224
      */
225 225
     public function get($key, array $replace = [], $locale = null)
226 226
     {
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      * @param int    $number  숫자
243 243
      * @param array  $replace 변경 데이터
244 244
      * @param null   $locale  로케일
245
-     * @return mixed
245
+     * @return string
246 246
      */
247 247
     public function choice($key, $number, array $replace = [], $locale = null)
248 248
     {
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 
256 256
     /**
257 257
      * @param string $key 다국어 key
258
-     * @return mixed
258
+     * @return string
259 259
      */
260 260
     public function getOriginalLine($key)
261 261
     {
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      * @param string $item      아이템
269 269
      * @param string $locale    로케일
270 270
      * @param array  $replace   변경 데이터
271
-     * @return mixed
271
+     * @return string
272 272
      */
273 273
     protected function getLine($namespace, $item, $locale, array $replace)
274 274
     {
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      *
283 283
      * @param string $line    원시 라인
284 284
      * @param array  $replace 변경 데이터
285
-     * @return mixed
285
+     * @return string
286 286
      */
287 287
     protected function makeReplacements($line, array $replace)
288 288
     {
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      * 먼저 해석하여 정확도를 높여줍니다.
303 303
      *
304 304
      * @param array $replace 변경 데이터
305
-     * @return array
305
+     * @return Collection
306 306
      */
307 307
     protected function sortReplacements(array $replace)
308 308
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
             return $id;
182 182
         }
183 183
 
184
-        $userKeyHead = $this->userKeyPrefix . '::';
184
+        $userKeyHead = $this->userKeyPrefix.'::';
185 185
         if (substr($id, 0, strlen($userKeyHead)) == $userKeyHead) {
186 186
             return '';
187 187
         }
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         $sentence = $this->choice($id, $number, $parameters, $locale);
209 209
 
210 210
         if ($sentence == $id) {
211
-            return $number . ' ' . $this->makeUnknownSentence($id);
211
+            return $number.' '.$this->makeUnknownSentence($id);
212 212
         }
213 213
 
214 214
         return $sentence;
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      */
307 307
     protected function sortReplacements(array $replace)
308 308
     {
309
-        return (new Collection($replace))->sortBy(function ($value, $key) {
309
+        return (new Collection($replace))->sortBy(function($value, $key) {
310 310
             return mb_strlen($key) * -1;
311 311
         });
312 312
     }
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      */
362 362
     public function getSelector()
363 363
     {
364
-        if (! isset($this->selector)) {
364
+        if (!isset($this->selector)) {
365 365
             $this->selector = new MessageSelector;
366 366
         }
367 367
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
      */
376 376
     public function genUserKey()
377 377
     {
378
-        return $this->userKeyPrefix . '::' . $this->keyGen->generate();
378
+        return $this->userKeyPrefix.'::'.$this->keyGen->generate();
379 379
     }
380 380
 
381 381
     /**
Please login to merge, or discard this patch.
resources/UIObjects/Settings/SettingsPermission.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@
 block discarded – undo
64 64
         }
65 65
     }
66 66
 
67
+    /**
68
+     * @param AbstractUIObject $content
69
+     */
67 70
     private function generateBox($title, $content)
68 71
     {
69 72
         return "<div class=\"form-group\">
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 use XeFrontend;
4 4
 use Xpressengine\Permission\Grant;
5 5
 use Xpressengine\Permission\Permission;
6
-use Xpressengine\Permission\PermissionHandler;
7 6
 use Xpressengine\UIObject\AbstractUIObject;
8 7
 
9 8
 class SettingsPermission extends AbstractUIObject
Please login to merge, or discard this patch.
resources/FieldSkins/Boolean/DefaultSkin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $config = $this->config;
60 60
         $boolean = '';
61
-        if (isset($args[$config->get('id') . 'Boolean'])) {
62
-            $boolean = $args[$config->get('id') . 'Boolean'];
61
+        if (isset($args[$config->get('id').'Boolean'])) {
62
+            $boolean = $args[$config->get('id').'Boolean'];
63 63
         }
64 64
 
65 65
         return View::make('dynamicField/boolean/default/edit', [
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $config = $this->config;
81 81
         $boolean = '';
82
-        if (isset($args[$config->get('id') . 'Boolean'])) {
83
-            $boolean = $args[$config->get('id') . 'Boolean'];
82
+        if (isset($args[$config->get('id').'Boolean'])) {
83
+            $boolean = $args[$config->get('id').'Boolean'];
84 84
         }
85 85
 
86 86
         return View::make('dynamicField/boolean/default/show', [
Please login to merge, or discard this patch.
resources/FieldSkins/Number/DefaultSkin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function settings(ConfigEntity $config = null)
26 26
     {
27
-        return View::make('dynamicField/number/default/createSkin', ['config' => $config,])->render();
27
+        return View::make('dynamicField/number/default/createSkin', ['config' => $config, ])->render();
28 28
     }
29 29
 
30 30
     public function create(array $inputs)
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $config = $this->config;
41 41
         $num = '';
42
-        if (isset($args[$config->get('id') . 'Num'])) {
43
-            $num = $args[$config->get('id') . 'Num'];
42
+        if (isset($args[$config->get('id').'Num'])) {
43
+            $num = $args[$config->get('id').'Num'];
44 44
         }
45 45
 
46 46
 
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $config = $this->config;
56 56
         $num = '';
57
-        if (isset($args[$config->get('id') . 'Num'])) {
58
-            $num = $args[$config->get('id') . 'Num'];
57
+        if (isset($args[$config->get('id').'Num'])) {
58
+            $num = $args[$config->get('id').'Num'];
59 59
         }
60 60
 
61 61
         return View::make('dynamicField/number/default/show', [
Please login to merge, or discard this patch.