@@ -39,7 +39,7 @@ |
||
39 | 39 | public function transformArgument(DefinitionCall $definitionCall, $argumentIndex, $argumentValue) { |
40 | 40 | $replacements = array(); |
41 | 41 | foreach ($this->matches as $match) { |
42 | - $replacements[ $match[0] ] = BehatVariablesDatabase::get($match[1]); |
|
42 | + $replacements[$match[0]] = BehatVariablesDatabase::get($match[1]); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | return strtr($argumentValue, $replacements); |
@@ -158,6 +158,8 @@ discard block |
||
158 | 158 | |
159 | 159 | /** |
160 | 160 | * |
161 | + * @param string $filename |
|
162 | + * @param string $content |
|
161 | 163 | */ |
162 | 164 | private function createFile($filename, $content) { |
163 | 165 | $path = dirname($filename); |
@@ -170,6 +172,7 @@ discard block |
||
170 | 172 | |
171 | 173 | /** |
172 | 174 | * |
175 | + * @param string $path |
|
173 | 176 | */ |
174 | 177 | private static function clearDirectory($path) { |
175 | 178 | $files = scandir($path); |