Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 2 | private function mapFormatBlocks($value): string |
|
35 | { |
||
36 | // Any date masking codes are returned as lower case values |
||
37 | 2 | if (is_object($value)) { |
|
38 | // We can't explicitly test for Stringable until PHP >= 8.0 |
||
39 | 2 | return $value; |
|
40 | } |
||
41 | |||
42 | // Wrap any string literals in quotes, so that they're clearly defined as string literals |
||
43 | 2 | return $this->wrapLiteral($value); |
|
44 | } |
||
51 |