Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class TwigToPh extends AbstractHandler { |
||
17 | |||
18 | /** |
||
19 | * TestSet: |
||
20 | * <code> |
||
21 | * Dear {{%%customer.first_name%%}}, This is {{ "now"|date(null, "Europe/Rome") }} with {%%agent.alias%%} Airbnb. {% for user in users %} e {%%ciao%%} |
||
22 | * {# note: disabled template because we no longer use this |
||
23 | * {% for user in users %} |
||
24 | * ... |
||
25 | * {% endfor %} |
||
26 | * |
||
27 | * ... {variable} |
||
28 | * #} |
||
29 | * </code> |
||
30 | * |
||
31 | * @param $segment |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | 88 | public function transform( string $segment ): string { |
|
53 | } |