@@ -8,7 +8,7 @@ |
||
| 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 | |
@@ -117,8 +117,8 @@ discard block |
||
| 117 | 117 | { |
| 118 | 118 | $lines = array_filter(explode("\n", $body), '\strlen'); |
| 119 | 119 | |
| 120 | - return collect(array_map(function ($line) { |
|
| 121 | - [$number, $name, $email, $date, $body, , $resid] = explode('<>', $line); |
|
| 120 | + return collect(array_map(function($line) { |
|
| 121 | + [$number, $name, $email, $date, $body,, $resid] = explode('<>', $line); |
|
| 122 | 122 | $name = trim(strip_tags($name)); |
| 123 | 123 | $body = strip_tags($body, '<br>'); |
| 124 | 124 | |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | { |
| 138 | 138 | $threads = array_filter(explode("\n", $body), '\strlen'); |
| 139 | 139 | |
| 140 | - return collect(array_map(function ($elem) { |
|
| 140 | + return collect(array_map(function($elem) { |
|
| 141 | 141 | [$id, $tmp] = explode('.cgi,', $elem); |
| 142 | 142 | preg_match('/^(.*)\((\d+)\)\z/', $tmp, $matches); |
| 143 | 143 | |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | $lines = array_filter(explode("\n", $body), '\strlen'); |
| 127 | 127 | $number = 0; |
| 128 | 128 | |
| 129 | - return collect(array_map(function ($line) use (&$number) { |
|
| 129 | + return collect(array_map(function($line) use (&$number) { |
|
| 130 | 130 | $number++; |
| 131 | 131 | [$name, $email, $date, $body] = explode('<>', $line); |
| 132 | 132 | $name = trim(strip_tags($name)); |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | { |
| 150 | 150 | $threads = array_filter(explode("\n", $body), '\strlen'); |
| 151 | 151 | |
| 152 | - return collect(array_map(function ($elem) { |
|
| 152 | + return collect(array_map(function($elem) { |
|
| 153 | 153 | [$id, $tmp] = explode('.dat<>', $elem); |
| 154 | 154 | preg_match('/^(.*)\((\d+)\)\z/', $tmp, $matches); |
| 155 | 155 | |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | $error = $response->getHeader('ERROR'); |
| 92 | 92 | |
| 93 | - if (! empty($error)) { |
|
| 93 | + if (!empty($error)) { |
|
| 94 | 94 | $errorStr = \is_array($error) ? implode(',', $error) : $error; |
| 95 | 95 | throw new MonarException("url: {$url}. method: {$method}. error:{$errorStr}"); |
| 96 | 96 | } |