@@ -147,7 +147,7 @@ |
||
| 147 | 147 | if (\is_string($data) && !\preg_match('//u', $data)) { |
| 148 | 148 | $data = \preg_replace_callback( |
| 149 | 149 | '/[\x80-\xFF]+/', |
| 150 | - function ($m) { |
|
| 150 | + function($m) { |
|
| 151 | 151 | return \utf8_encode($m[0]); |
| 152 | 152 | }, |
| 153 | 153 | $data |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -require __DIR__ . '/vendor/autoload.php'; |
|
| 3 | +require __DIR__.'/vendor/autoload.php'; |
|
| 4 | 4 | |
| 5 | 5 | $logfile = new Logfile\Logfile('edebc96b-85df-cf14-1487-72fb8ee7a171'); |
| 6 | 6 | $logfile->getSender()->setHost('localhost:8077'); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | // -------- |
| 29 | 29 | |
| 30 | -set_exception_handler(function (Throwable $e) use($logfile, $logger) { |
|
| 30 | +set_exception_handler(function(Throwable $e) use($logfile, $logger) { |
|
| 31 | 31 | $logger->error($e->getMessage(), ['exception' => $e]); |
| 32 | 32 | }); |
| 33 | 33 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | try { |
| 39 | 39 | $logger->warning('fail coming up...'); |
| 40 | 40 | fail('this'); |
| 41 | -} catch(ErrorException $e) { |
|
| 41 | +} catch (ErrorException $e) { |
|
| 42 | 42 | $logger->error('doh coming up...'); |
| 43 | 43 | throw new RuntimeException('doh!', 0, $e); |
| 44 | 44 | } |