@@ -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); |
@@ -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)) { |