Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 2 | public function createFilename(FeatureNode $feature, ScenarioInterface $scenario, OutlineNode $outline = null) |
|
21 | { |
||
22 | 2 | $filename = Transliterator::transliterate($feature->getTitle(), $this->separator) . DIRECTORY_SEPARATOR; |
|
23 | |||
24 | 2 | if ($outline) { |
|
25 | 1 | $filename .= Transliterator::transliterate($outline->getTitle(), $this->separator) |
|
26 | 1 | . DIRECTORY_SEPARATOR . $this->separator; |
|
27 | 1 | } |
|
28 | |||
29 | 2 | $filename .= Transliterator::transliterate($scenario->getTitle(), $this->separator); |
|
30 | |||
31 | 2 | if ($outline) { |
|
32 | 1 | $filename .= $this->separator; |
|
33 | 1 | } |
|
34 | |||
35 | 2 | return $filename; |
|
36 | } |
||
37 | } |
||
38 |