@@ -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('92193684-b2a9-84ca-cd07-d1631a3813d2'); |
| 6 | 6 | $logfile->setPath(__DIR__); |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | // -------- |
| 19 | 19 | |
| 20 | -set_exception_handler(function (Throwable $e) use($logfile, $logger) { |
|
| 20 | +set_exception_handler(function(Throwable $e) use($logfile, $logger) { |
|
| 21 | 21 | $logfile->captureException($e); |
| 22 | 22 | $logger->error($e->getMessage(), ['exception' => $e]); |
| 23 | 23 | }); |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $count = count($value); |
| 114 | 114 | |
| 115 | 115 | if ($count > 100) { |
| 116 | - return 'Array of length ' . $count; |
|
| 116 | + return 'Array of length '.$count; |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | $types = []; |
@@ -129,10 +129,10 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | if (count($types) > 3) { |
| 132 | - return 'Mixed Array of length ' . $count; |
|
| 132 | + return 'Mixed Array of length '.$count; |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - return 'Array<'.implode('|', $types).'> of length ' . $count; |
|
| 135 | + return 'Array<'.implode('|', $types).'> of length '.$count; |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | protected function normalise($value): string |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | $frame->setFile(__FILE__); |
| 24 | 24 | $frame->setPath(__DIR__.'/../tests'); |
| 25 | - $this->assertEquals(__DIR__ .'/', $frame->getPath()); |
|
| 25 | + $this->assertEquals(__DIR__.'/', $frame->getPath()); |
|
| 26 | 26 | $this->assertTrue($frame->hasPath()); |
| 27 | 27 | $this->assertEquals(basename(__FILE__), $frame->getRelativeFilepath()); |
| 28 | 28 | } |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | if (is_string($data) && !preg_match('//u', $data)) { |
| 133 | 133 | $data = preg_replace_callback( |
| 134 | 134 | '/[\x80-\xFF]+/', |
| 135 | - function ($m) { |
|
| 135 | + function($m) { |
|
| 136 | 136 | return utf8_encode($m[0]); |
| 137 | 137 | }, |
| 138 | 138 | $data |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | throw new \InvalidArgumentException('Path does not exist: '.$path); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - $this->path = $realpath . '/'; |
|
| 33 | + $this->path = $realpath.'/'; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | public function hasTags(): bool |