@@ -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 | } |
@@ -24,6 +24,6 @@ |
||
| 24 | 24 | throw new \InvalidArgumentException('Path does not exist: '.$path); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - $this->path = $realpath . '/'; |
|
| 27 | + $this->path = $realpath.'/'; |
|
| 28 | 28 | } |
| 29 | 29 | } |
@@ -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 |
@@ -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('5d428582-7733-151c-4eaf-d23d0ebdca3b '); |
| 6 | 6 | $logfile->getSender()->setHost('localhost:3030'); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | // -------- |
| 25 | 25 | |
| 26 | -set_exception_handler(function (Throwable $e) use($logfile, $logger) { |
|
| 26 | +set_exception_handler(function(Throwable $e) use($logfile, $logger) { |
|
| 27 | 27 | $logger->error($e->getMessage(), ['exception' => $e]); |
| 28 | 28 | }); |
| 29 | 29 | |
@@ -33,6 +33,6 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | try { |
| 35 | 35 | fail('this'); |
| 36 | -} catch(ErrorException $e) { |
|
| 36 | +} catch (ErrorException $e) { |
|
| 37 | 37 | throw new RuntimeException('doh!', 0, $e); |
| 38 | 38 | } |