@@ -69,7 +69,7 @@ |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | |
| 72 | - /** |
|
| 72 | + /** |
|
| 73 | 73 | * @Given the command line argument :argument |
| 74 | 74 | */ |
| 75 | 75 | public function theCommandLineArgument($argument) |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | public function __construct() |
| 35 | 35 | { |
| 36 | - $this->sourceDir = sys_get_temp_dir() . '/readmetester-behat-' . rand() . '/'; |
|
| 36 | + $this->sourceDir = sys_get_temp_dir().'/readmetester-behat-'.rand().'/'; |
|
| 37 | 37 | mkdir($this->sourceDir); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function aMarkdownFile(PyStringNode $string) |
| 49 | 49 | { |
| 50 | - file_put_contents($this->sourceDir . rand() . '.md', (string)$string); |
|
| 50 | + file_put_contents($this->sourceDir.rand().'.md', (string)$string); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function aSourceFile($filename, PyStringNode $string) |
| 57 | 57 | { |
| 58 | - file_put_contents($this->sourceDir . $filename, (string)$string); |
|
| 58 | + file_put_contents($this->sourceDir.$filename, (string)$string); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | */ |
| 74 | 74 | public function iRunReadmeTester() |
| 75 | 75 | { |
| 76 | - $command = realpath('bin/readme-tester') . " test {$this->sourceDir} --format=json " . implode(' ', $this->args); |
|
| 76 | + $command = realpath('bin/readme-tester')." test {$this->sourceDir} --format=json ".implode(' ', $this->args); |
|
| 77 | 77 | $cwd = getcwd(); |
| 78 | 78 | chdir($this->sourceDir); |
| 79 | 79 | exec($command, $output, $this->returnValue); |
@@ -29,7 +29,7 @@ |
||
| 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 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | private function isRegexp(string $input): bool |
| 42 | 42 | { |
| 43 | - set_error_handler(function () { |
|
| 43 | + set_error_handler(function() { |
|
| 44 | 44 | }); |
| 45 | 45 | $result = preg_match($input, ''); |
| 46 | 46 | restore_error_handler(); |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | if (isset($examples[$name])) { |
| 106 | - throw new \RuntimeException("Example '$name' already exists in definition " . ($index + 1)); |
|
| 106 | + throw new \RuntimeException("Example '$name' already exists in definition ".($index + 1)); |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | if (!$this->filter->isValid($name)) { |