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
Push — master ( a8b84b...aba133 )
by masaru
02:24
created
src/Monar/MonarProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function register()
10 10
     {
11
-        $this->app->bind(Factory::class, function () {
11
+        $this->app->bind(Factory::class, function() {
12 12
             return new MonarManager($this->app);
13 13
         });
14 14
 
Please login to merge, or discard this patch.
src/Monar/AbstractDriver.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
         $response = $this->client->request($method, $url, $options);
88 88
 
89 89
         $error = $response->getHeader('ERROR');
90
-        if (! empty($error)) {
90
+        if (!empty($error)) {
91 91
             $errorStr = is_array($error) ? implode(',', $error) : $error;
92 92
             throw new MonarException("url: {$url}. method: {$method}. error:{$errorStr}");
93 93
         }
Please login to merge, or discard this patch.
src/Monar/ShitarabaDriver.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
114 114
     {
115 115
         $lines = array_filter(explode("\n", $body), 'strlen');
116 116
 
117
-        return collect(array_map(function ($line) {
118
-            list($number, $name, $email, $date, $body, , $resid) = explode('<>', $line);
117
+        return collect(array_map(function($line) {
118
+            list($number, $name, $email, $date, $body,, $resid) = explode('<>', $line);
119 119
             $name = trim(strip_tags($name));
120 120
             $body = strip_tags($body, '<br>');
121 121
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     {
135 135
         $threads = array_filter(explode("\n", $body), 'strlen');
136 136
 
137
-        return collect(array_map(function ($elem) {
137
+        return collect(array_map(function($elem) {
138 138
             list($id, $tmp) = explode('.cgi,', $elem);
139 139
             preg_match('/^(.*)\(([0-9]+)\)\z/', $tmp, $matches);
140 140
 
@@ -157,13 +157,13 @@  discard block
 block discarded – undo
157 157
     protected function messagesUrl($start = 1, $end = null)
158 158
     {
159 159
         $url = "{$this->baseUrl}/bbs/rawmode.cgi/{$this->category}/{$this->board}/{$this->thread}/";
160
-        if (! is_null($start) && ! is_null($end)) {
160
+        if (!is_null($start) && !is_null($end)) {
161 161
             return $url."{$start}-{$end}";
162 162
         }
163
-        if (! is_null($start) && is_null($end)) {
163
+        if (!is_null($start) && is_null($end)) {
164 164
             return $url."{$start}-";
165 165
         }
166
-        if (is_null($start) && ! is_null($end)) {
166
+        if (is_null($start) && !is_null($end)) {
167 167
             return $url."-{$end}";
168 168
         }
169 169
 
Please login to merge, or discard this patch.
src/Monar/TwoChanDriver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $parsed = parse_url($this->url);
92 92
         $paths = $this->renewArray(explode('/', parse_url($this->url, PHP_URL_PATH)));
93 93
 
94
-        $this->baseUrl = $parsed['scheme'] . '://' . $parsed['host'];
94
+        $this->baseUrl = $parsed['scheme'].'://'.$parsed['host'];
95 95
         $this->category = '';
96 96
 
97 97
         if (count($paths) === 1) {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $lines = array_filter(explode("\n", $body), 'strlen');
116 116
         $number = 0;
117 117
 
118
-        return collect(array_map(function ($line) use (&$number) {
118
+        return collect(array_map(function($line) use (&$number) {
119 119
             $number++;
120 120
             list($name, $email, $date, $body) = explode('<>', $line);
121 121
             $name = trim(strip_tags($name));
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     {
139 139
         $threads = array_filter(explode("\n", $body), 'strlen');
140 140
 
141
-        return collect(array_map(function ($elem) {
141
+        return collect(array_map(function($elem) {
142 142
             list($id, $tmp) = explode('.dat<>', $elem);
143 143
             preg_match('/^(.*)\(([0-9]+)\)\z/', $tmp, $matches);
144 144
 
Please login to merge, or discard this patch.