| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public static function forSourcePath($rel_path) |
||
| 36 | { |
||
| 37 | return new static( |
||
| 38 | "Cannot find template source file '$rel_path'" |
||
|
1 ignored issue
–
show
|
|||
| 39 | ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
It is generally a best practice as it is often more readable to use concatenation instead of interpolation for variables inside strings.