@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\readmetester\Parser; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\readmetester; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\readmetester\Console; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\readmetester\Runner; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\readmetester\Example; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\readmetester\Example; |
| 6 | 6 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | if (isset($examples[$name])) { |
| 102 | - throw new \RuntimeException("Example '$name' already exists in definition " . ($index + 1)); |
|
| 102 | + throw new \RuntimeException("Example '$name' already exists in definition ".($index + 1)); |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | if (!$this->filter->isValid($name)) { |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\readmetester; |
| 6 | 6 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->filename)) as $fileInfo) { |
| 30 | 30 | $basePath = realpath($this->filename); |
| 31 | 31 | if (in_array(strtolower($fileInfo->getExtension()), ['md', 'mdown', 'markdown'])) { |
| 32 | - $displayPath = rtrim($this->filename, '/') . str_replace($basePath, '', $fileInfo->getRealPath()); |
|
| 32 | + $displayPath = rtrim($this->filename, '/').str_replace($basePath, '', $fileInfo->getRealPath()); |
|
| 33 | 33 | yield $displayPath => $this->readFile($fileInfo->getRealPath()); |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\readmetester\PHPUnit; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace hanneskod\readmetester\Expectation; |
| 6 | 6 | |