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/Media/ThumbnailerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,11 +33,11 @@
 block discarded – undo
33 33
         Thumbnailer::setManager($manager);
34 34
         $instance = new Thumbnailer();
35 35
 
36
-        $imageContent = file_get_contents(__DIR__ . '/sample.png');
36
+        $imageContent = file_get_contents(__DIR__.'/sample.png');
37 37
         $mockCommand = m::mock('Xpressengine\Media\Commands\CommandInterface');
38 38
 
39 39
         $mockCommand->shouldReceive('getName')->andReturn('letter');
40
-        $mockCommand->shouldReceive('setOriginDimension')->once()->with(m::on(function ($object) {
40
+        $mockCommand->shouldReceive('setOriginDimension')->once()->with(m::on(function($object) {
41 41
             return $object instanceof Dimension;
42 42
         }));
43 43
         $mockCommand->shouldReceive('getMethod')->andReturn('resize');
Please login to merge, or discard this patch.
core/tests/Interception/ProxyTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $advisorStore = $proxy->getAdvisorCollection();
47 47
 
48 48
         $advisor1 = new Advisor(
49
-            'ad1', 'Xpressengine\Tests\Interception\Document@insertDocument', function ($target, $title, $content) {
49
+            'ad1', 'Xpressengine\Tests\Interception\Document@insertDocument', function($target, $title, $content) {
50 50
             return 'ad1('.$target($title, $content).')';
51 51
         }
52 52
         );
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $advisor2 = new Advisor(
56 56
             'ad2',
57 57
             ['Xpressengine\Tests\Interception\Document@insertDocument', 'Xpressengine\Tests\Interception\Document@checkInput'],
58
-            function ($target, $title, $content) {
58
+            function($target, $title, $content) {
59 59
                 if ($target->invokedMethod == 'insertDocument') {
60 60
                     return 'ad2('.$target($title, $content).')';
61 61
                 }
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
                 return [$title, $content];
67 67
             }
68 68
         );
69
-        $advisorStore->put($advisor2, ['before'=>['ad1','ad3']]);
69
+        $advisorStore->put($advisor2, ['before'=>['ad1', 'ad3']]);
70 70
 
71 71
         $advisor3 = new Advisor(
72 72
             'ad3',
73 73
             'Xpressengine\Tests\Interception\Document@checkInput',
74
-            function ($target, $title, $content) {
74
+            function($target, $title, $content) {
75 75
                 return ['modified '.$title.' by ad2', 'modified '.$content.' by ad2'];
76 76
             },
77 77
             'ad1'
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             new Advisor(
94 94
                 'ad1',
95 95
                 'Xpressengine\Tests\Interception\Document@add',
96
-                function ($target, $obj) {
96
+                function($target, $obj) {
97 97
                     $obj->title = 'modified '.$obj->title;
98 98
                     return $target($obj);
99 99
                 }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
         $advisor1 = new Advisor(
116 116
             'ad1', 'Xpressengine\Tests\Interception\Document@magicMethod',
117
-            function ($target, $title, $content) {
117
+            function($target, $title, $content) {
118 118
                 return 'ad1('.$target($title, $content).')';
119 119
             }
120 120
         );
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         $advisor2 = new Advisor(
124 124
             'ad2', 'Xpressengine\Tests\Interception\Document@magicMethod',
125
-            function ($target, $title, $content) {
125
+            function($target, $title, $content) {
126 126
                 return 'ad2('.$target($title, $content).')';
127 127
             }
128 128
         );
Please login to merge, or discard this patch.
core/tests/Interception/InterceptionTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
         $interceptor->addAdvisor(
22 22
             'Xpressengine\Tests\Interception\Document@insertDocument',
23 23
             'ad1',
24
-            function ($target, $title, $content) {
24
+            function($target, $title, $content) {
25 25
                 return 'ad1('.$target($title, $content).')';
26 26
             }
27 27
         );
28 28
         $interceptor->addAdvisor(
29 29
             ['Xpressengine\Tests\Interception\Document@insertDocument', 'Xpressengine\Tests\Interception\Document@checkInput'],
30 30
             ['ad2' => ['ad1', 'ad3']],
31
-            function ($target, $title, $content) {
31
+            function($target, $title, $content) {
32 32
                 if ($target->invokedMethod == 'insertDocument') {
33 33
                     return 'ad2('.$target($title, $content).')';
34 34
                 }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $interceptor->addAdvisor(
60 60
             ['Xpressengine\Tests\Interception\Document@insertDocument', 'Xpressengine\Tests\Interception\Document@checkInput'],
61 61
             ['ad2' => ['ad3']],
62
-            function ($target, $title, $content) {
62
+            function($target, $title, $content) {
63 63
                 if ($target->invokedMethod == 'insertDocument') {
64 64
                     return 'ad2('.$target($title, $content).')';
65 65
                 }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $interceptor->addAdvisor(
75 75
             'Xpressengine\Tests\Interception\Document@insertDocument',
76 76
             ['ad1' => ['after' => 'ad2']],
77
-            function ($target, $title, $content) {
77
+            function($target, $title, $content) {
78 78
                 return 'ad1('.$target($title, $content).')';
79 79
             }
80 80
         );
Please login to merge, or discard this patch.
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/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/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/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.
core/tests/Storage/StorageTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         $mockFile = m::mock('stdClass');
20 20
 
21 21
         $instance->expects($this->once())->method('createModel')->willReturn($mockFile);
22
-        $resource = file_get_contents(__DIR__ . '/sample.png');
22
+        $resource = file_get_contents(__DIR__.'/sample.png');
23 23
 
24 24
         $mockGuest = m::mock('Xpressengine\Member\Entities\Guest');
25 25
         $mockGuest->shouldReceive('getId')->andReturnNull();
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $uploaded = m::mock('Symfony\Component\HttpFoundation\File\UploadedFile');
29 29
         $uploaded->shouldReceive('isValid')->andReturn(true);
30 30
         $uploaded->shouldReceive('getClientOriginalName')->andReturn('foo.jpg');
31
-        $uploaded->shouldReceive('getPathname')->andReturn(__DIR__ . '/sample.png');
31
+        $uploaded->shouldReceive('getPathname')->andReturn(__DIR__.'/sample.png');
32 32
         $uploaded->shouldReceive('getMimeType')->andReturn('image/png');
33 33
         $uploaded->shouldReceive('getSize')->andReturn(123456);
34 34
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $handler->shouldReceive('store')
40 40
             ->once()
41
-            ->with($resource, m::on(function () { return true; }), 'local')
41
+            ->with($resource, m::on(function() { return true; }), 'local')
42 42
             ->andReturn(true);
43 43
 
44 44
         $mockFile->shouldReceive('save')->andReturn(true);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         list($handler, $auth, $keygen, $distributor, $temps) = $this->getMocks();
73 73
         $instance = new Storage($handler, $auth, $keygen, $distributor, $temps);
74 74
 
75
-        $resource = file_get_contents(__DIR__ . '/sample.png');
75
+        $resource = file_get_contents(__DIR__.'/sample.png');
76 76
 
77 77
         $mockGuest = m::mock('Xpressengine\Member\Entities\Guest');
78 78
         $mockGuest->shouldReceive('getId')->andReturnNull();
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $uploaded = m::mock('Symfony\Component\HttpFoundation\File\UploadedFile');
82 82
         $uploaded->shouldReceive('isValid')->andReturn(true);
83 83
         $uploaded->shouldReceive('getClientOriginalName')->andReturn('foo.jpg');
84
-        $uploaded->shouldReceive('getPathname')->andReturn(__DIR__ . '/sample.png');
84
+        $uploaded->shouldReceive('getPathname')->andReturn(__DIR__.'/sample.png');
85 85
 
86 86
         $keygen->shouldReceive('generate')->once()->andReturn('made-key');
87 87
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
         $handler->shouldReceive('store')
91 91
             ->once()
92
-            ->with($resource, m::on(function () { return true; }), 'local')
92
+            ->with($resource, m::on(function() { return true; }), 'local')
93 93
             ->andReturn(false);
94 94
 
95 95
         try {
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $keygen->shouldReceive('generate')->andReturn('made-key');
121 121
         $temps->shouldReceive('create')->once()->with('file_get_content')->andReturn($mockTempFile);
122 122
 
123
-        $handler->shouldReceive('store')->once()->with('file_get_content', m::on(function () {
123
+        $handler->shouldReceive('store')->once()->with('file_get_content', m::on(function() {
124 124
             return true;
125 125
         }), 'local')->andReturn(true);
126 126
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         $mockFile->shouldReceive('getKey')->andReturn('file-id');
191 191
 
192 192
         $mockConn->shouldReceive('table')->once()->with('fileable_table')->andReturnSelf();
193
-        $mockConn->shouldReceive('insert')->once()->with(m::on(function ($args) {
193
+        $mockConn->shouldReceive('insert')->once()->with(m::on(function($args) {
194 194
             return $args['fileId'] == 'file-id' && $args['fileableId'] == 'fileable-id';
195 195
         }))->andReturnSelf();
196 196
 
Please login to merge, or discard this patch.
core/src/Xpressengine/Site/SiteHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -333,6 +333,6 @@
 block discarded – undo
333 333
      */
334 334
     public function setModel($model)
335 335
     {
336
-        $this->model = '\\' . ltrim($model, '\\');
336
+        $this->model = '\\'.ltrim($model, '\\');
337 337
     }
338 338
 }
Please login to merge, or discard this patch.