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/Interception/AdvisorTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function testCreate()
16 16
     {
17 17
         $advisor = new Advisor(
18
-            'ad1', 'TargetClass@originMethod', function ($target, $args) {
18
+            'ad1', 'TargetClass@originMethod', function($target, $args) {
19 19
             return $target($args);
20 20
         }
21 21
         );
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
 
31 31
         $advisor = new Advisor(
32
-            'ad1', 'TargetClass@originMethod', function ($target, $args) {
32
+            'ad1', 'TargetClass@originMethod', function($target, $args) {
33 33
             return $target($args);
34 34
         }
35 35
         );
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $this->assertEquals(
87 87
             'foo',
88 88
             $advice(
89
-                function ($arg) {
89
+                function($arg) {
90 90
                     return $arg;
91 91
                 },
92 92
                 'foo'
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     public function testSetAdvice(Advisor $advisor)
102 102
     {
103 103
         $advisor->setAdvice(
104
-            function ($target, $args) {
104
+            function($target, $args) {
105 105
                 return $target($args).'bar';
106 106
             }
107 107
         );
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $this->assertEquals(
112 112
             'foobar',
113 113
             $advice(
114
-                function ($arg) {
114
+                function($arg) {
115 115
                     return $arg;
116 116
                 },
117 117
                 'foo'
Please login to merge, or discard this patch.
core/tests/Interception/ProxyInvocationHandlerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $handler = $this->getHandler(null, 'origin', $advisorList);
37 37
 
38 38
         $args = ['1', '2'];
39
-        $originMethod = function ($a, $b) {
39
+        $originMethod = function($a, $b) {
40 40
             return $a.$b;
41 41
         };
42 42
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $handler = $this->getHandler(null, 'origin', $advisorList);
74 74
 
75 75
         $args = ['1', '2'];
76
-        $originMethod = function ($a, $b) {
76
+        $originMethod = function($a, $b) {
77 77
             return $a.$b;
78 78
         };
79 79
 
Please login to merge, or discard this patch.
core/tests/Interception/ClassPassTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
     {
33 33
         $m = \Mockery::mock('\Xpressengine\Interception\Proxy\ProxyConfig');
34 34
         $m->shouldReceive('getTargetName')->andReturnUsing(
35
-            function () use ($string) {
35
+            function() use ($string) {
36 36
                 return trim($string, '\\');
37 37
             }
38 38
         );
39 39
         $m->shouldReceive('getProxyName')->andReturnUsing(
40
-            function () use ($string) {
41
-                return 'Proxy_' . str_replace('\\', '_', trim($string, '\\'));
40
+            function() use ($string) {
41
+                return 'Proxy_'.str_replace('\\', '_', trim($string, '\\'));
42 42
             }
43 43
         );
44 44
         return $m;
Please login to merge, or discard this patch.
core/tests/Permission/PermissionRepositoryTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         $conn->shouldReceive('table')->andReturn($query);
19 19
         $query->shouldReceive('where')->once()->with('siteKey', 'default')->andReturn($query);
20 20
         $query->shouldReceive('where')->once()->with('name', 'board.notice')->andReturn($query);
21
-        $query->shouldReceive('first')->once()->withNoArgs()->andReturn((object)[
21
+        $query->shouldReceive('first')->once()->withNoArgs()->andReturn((object) [
22 22
             'id' => 1,
23 23
             'name' => 'board.notice',
24 24
             'grants' => '{"access":{"type":"power","value":"guest"},"create":{"type":"power","value":"member"},"read":{"type":"power","value":"guest"},"update":{"type":"group","value":["group_id_1","group_id_2"]},"delete":{"type":"group","value":["group_id_1","group_id_2"]}}',
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $keys = '';
36 36
         $comma = '';
37 37
         foreach ($registered as $key => $value) {
38
-            $keys .= $comma . $key;
38
+            $keys .= $comma.$key;
39 39
             $comma = ',';
40 40
         }
41 41
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         ]);
55 55
 
56 56
         $conn->shouldReceive('table')->andReturn($query);
57
-        $query->shouldReceive('insertGetId')->once()->with(m::on(function ($array) {
57
+        $query->shouldReceive('insertGetId')->once()->with(m::on(function($array) {
58 58
             return $array['name'] === 'board.notice'
59 59
             && $array['grants'] === '{"access":{"type":"power","value":"guest"},"create":{"type":"power","value":"member"}}';
60 60
         }))->andReturn(1);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $conn->shouldReceive('table')->andReturn($query);
87 87
         $query->shouldReceive('where')->once()->with('id', 1)->andReturn($query);
88 88
 
89
-        $query->shouldReceive('update')->once()->with(m::on(function ($array) {
89
+        $query->shouldReceive('update')->once()->with(m::on(function($array) {
90 90
             return $array['grants'] === '{"access":{"type":"power","value":"guest"},"create":{"type":"power","value":"member"}}';
91 91
         }))->andReturnNull();
92 92
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         $query->shouldReceive('where')->once()->with('siteKey', 'default')->andReturn($query);
127 127
         $query->shouldReceive('whereRaw')->once()->with("'board.notice.b1' like concat(`name`, '.', '%')")->andReturn($query);
128 128
         $query->shouldReceive('where')->once()->with('name', '<>', 'board.notice.b1')->andReturn($query);
129
-        $query->shouldReceive('get')->once()->withNoArgs()->andReturn((object)[
129
+        $query->shouldReceive('get')->once()->withNoArgs()->andReturn((object) [
130 130
             [
131 131
                 'id' => 1,
132 132
                 'type' => 'instance',
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
         $conn->shouldReceive('table')->andReturn($query);
166 166
         $query->shouldReceive('where')->twice()->with('siteKey', 'default')->andReturnSelf();
167
-        $query->shouldReceive('where')->twice()->with(m::on(function ($closure) use ($query) {
167
+        $query->shouldReceive('where')->twice()->with(m::on(function($closure) use ($query) {
168 168
             $query->shouldReceive('where')->once()->with('name', 'prev.from')->andReturnSelf();
169 169
             $query->shouldReceive('orWhere')->once()->with('name', 'like', 'prev.from.%')->andReturnSelf();
170 170
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
         $conn->shouldReceive('table')->andReturn($query);
198 198
         $query->shouldReceive('where')->once()->with('siteKey', 'default')->andReturnSelf();
199
-        $query->shouldReceive('where')->once()->with(m::on(function ($closure) use ($query) {
199
+        $query->shouldReceive('where')->once()->with(m::on(function($closure) use ($query) {
200 200
             $query->shouldReceive('where')->once()->with('name', 'prev.from')->andReturnSelf();
201 201
             $query->shouldReceive('orWhere')->once()->with('name', 'like', 'prev.from.%')->andReturnSelf();
202 202
 
Please login to merge, or discard this patch.
core/tests/Plugin/PluginHandlerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -239,11 +239,11 @@
 block discarded – undo
239 239
 
240 240
     private function getHandler($dir = null, $plugins = null, $factory = null, $register = null, $app = null)
241 241
     {
242
-        if($dir === null) $dir = __DIR__.'/plugins';
243
-        if($plugins === null) $plugins = $this->makeCollection();
244
-        if($factory === null) $factory = $this->makeViewFactory();
245
-        if($register === null) $register = $this->makeRegister();
246
-        if($app === null) $app = $this->makeApp();
242
+        if ($dir === null) $dir = __DIR__.'/plugins';
243
+        if ($plugins === null) $plugins = $this->makeCollection();
244
+        if ($factory === null) $factory = $this->makeViewFactory();
245
+        if ($register === null) $register = $this->makeRegister();
246
+        if ($app === null) $app = $this->makeApp();
247 247
         return new PluginHandler($dir, $plugins, $factory, $register, $app);
248 248
     }
249 249
 }
Please login to merge, or discard this patch.
core/tests/Plugin/FilePluginCacheTest.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
     protected function getCache(Repository $repo = null, $cacheKey = 'list')
89 89
     {
90
-        if($repo === null) {
90
+        if ($repo === null) {
91 91
             $repo = $this->makeRepo();
92 92
         }
93 93
 
Please login to merge, or discard this patch.
core/tests/Plugin/plugins/plugin_sample/plugin.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -56,14 +56,14 @@  discard block
 block discarded – undo
56 56
     {
57 57
         // 라우트 등록
58 58
         intercept('Plugin@addPluginRoutes', 'route_for_pluginsample',
59
-            function ($target, &$args) {
59
+            function($target, &$args) {
60 60
                 $routes = $args[0];
61 61
                 $this->registerAssignedRoute($routes);
62 62
                 $target($args);
63 63
             }
64 64
         );
65 65
 
66
-        $args::get('/manage', function () {
66
+        $args::get('/manage', function() {
67 67
            return 'hihihi';
68 68
         });
69 69
     }
@@ -72,16 +72,16 @@  discard block
 block discarded – undo
72 72
     {
73 73
 
74 74
 
75
-        $routes->{$this->pluginId} = function () {
75
+        $routes->{$this->pluginId} = function() {
76 76
 
77 77
             // for static action
78 78
             require_once('board_manager.php');
79 79
 
80
-            Route::get('/manage', function () {
80
+            Route::get('/manage', function() {
81 81
                 $boardManager = BoardManager::getInstance();
82 82
                 return $boardManager->getIndex();
83 83
             });
84
-            Route::get('/manage/list', function () {
84
+            Route::get('/manage/list', function() {
85 85
                 $boardManager = BoardManager::getInstance();
86 86
                 return $boardManager->getList();
87 87
             });
@@ -89,17 +89,17 @@  discard block
 block discarded – undo
89 89
             // for dynamic action(using alias)
90 90
             require_once('board.php');
91 91
 
92
-            Route::get('{bid}/list', function ($bid) {
92
+            Route::get('{bid}/list', function($bid) {
93 93
                 $board = Board::getInstance();
94 94
                 return $board->getList($bid);
95 95
             });
96 96
 
97
-            Route::get('{bid}/setting', function ($bid) {
97
+            Route::get('{bid}/setting', function($bid) {
98 98
                 $board = Board::getInstance();
99 99
                 return $board->getSetting($bid);
100 100
             });
101 101
 
102
-            Route::get('{bid}/{act?}', function ($bid, $act = null) {
102
+            Route::get('{bid}/{act?}', function($bid, $act = null) {
103 103
 
104 104
                 $act    = $act ?: \Input::get('act', 'list');
105 105
                 $board  = Board::getInstance();
Please login to merge, or discard this patch.
core/tests/Plugin/PluginEntityTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -145,14 +145,14 @@
 block discarded – undo
145 145
      */
146 146
     public function testGetters($entity)
147 147
     {
148
-        $this->assertEquals('title',$entity->getTitle());
149
-        $this->assertEquals(__DIR__.'/plugins/plugin_sample',$entity->getPath());
148
+        $this->assertEquals('title', $entity->getTitle());
149
+        $this->assertEquals(__DIR__.'/plugins/plugin_sample', $entity->getPath());
150 150
         $this->assertEquals('khongchi plugin.', $entity->getDescription());
151 151
         $this->assertCount(6, $entity->getSupport());
152 152
         $this->assertEquals('khongchi/plugin_sample', $entity->getName());
153 153
         $this->assertEquals(['xpressengine', 'board'], $entity->getKeywords());
154
-        $this->assertEquals('khongchi',$entity->getAuthors()[0]['name']);
155
-        $this->assertEquals('LGPL-2.0',$entity->getLicense());
154
+        $this->assertEquals('khongchi', $entity->getAuthors()[0]['name']);
155
+        $this->assertEquals('LGPL-2.0', $entity->getLicense());
156 156
     }
157 157
 
158 158
     private function getMetaData()
Please login to merge, or discard this patch.
core/tests/DynamicField/RegisterHandlerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
         ];
164 164
         $pluginRegister->shouldReceive('get')->with(RegisterHandler::FIELD_TYPE)->andReturn($types);
165 165
         $pluginRegister->shouldReceive('get')->with(
166
-            'type|' . RegisterHandler::FIELD_TYPE
166
+            'type|'.RegisterHandler::FIELD_TYPE
167 167
         )->andReturn($skins);
168 168
 
169 169
         $result = $handler->getSkins($dfHandler);
Please login to merge, or discard this patch.