@@ -41,13 +41,13 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function configure(ArrayNodeDefinition $builder) |
| 43 | 43 | { |
| 44 | - $normalizeTags = function ($tags) { |
|
| 45 | - return array_map(function ($tag) { |
|
| 44 | + $normalizeTags = function($tags) { |
|
| 45 | + return array_map(function($tag) { |
|
| 46 | 46 | return ltrim($tag, '@'); |
| 47 | 47 | }, $tags); |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | - $defineCassetteFilenamingStrategy = function ($item) { |
|
| 50 | + $defineCassetteFilenamingStrategy = function($item) { |
|
| 51 | 51 | if (isset($item['use_scenario_name']) && true === $item['use_scenario_name']) { |
| 52 | 52 | $item['cassette_filenaming_strategy'] = 'by_scenario_name'; |
| 53 | 53 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function createFileNamingStrategy($strategyName) |
| 10 | 10 | { |
| 11 | - switch($strategyName) { |
|
| 11 | + switch ($strategyName) { |
|
| 12 | 12 | case 'by_tags': |
| 13 | 13 | return new ByTagsFileNamingStrategy(); |
| 14 | 14 | case 'by_scenario_name': |
@@ -19,11 +19,11 @@ |
||
| 19 | 19 | |
| 20 | 20 | public function createFilename(FeatureNode $feature, ScenarioInterface $scenario, OutlineNode $outline = null) |
| 21 | 21 | { |
| 22 | - $filename = Transliterator::transliterate($feature->getTitle(), $this->separator) . DIRECTORY_SEPARATOR; |
|
| 22 | + $filename = Transliterator::transliterate($feature->getTitle(), $this->separator).DIRECTORY_SEPARATOR; |
|
| 23 | 23 | |
| 24 | 24 | if ($outline) { |
| 25 | 25 | $filename .= Transliterator::transliterate($outline->getTitle(), $this->separator) |
| 26 | - . DIRECTORY_SEPARATOR . $this->separator; |
|
| 26 | + . DIRECTORY_SEPARATOR.$this->separator; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | $filename .= Transliterator::transliterate($scenario->getTitle(), $this->separator); |
@@ -1,4 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -echo 'Hello ' . ltrim($_SERVER['REQUEST_URI'], '/'); |
|
| 3 | +echo 'Hello '.ltrim($_SERVER['REQUEST_URI'], '/'); |
|
| 4 | 4 | |