| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public static function identifier($reference, $tick='`'): string |
||
| 15 | { |
||
| 16 | if (is_array($reference)) { |
||
| 17 | $identifier = $reference[0]; |
||
| 18 | if (isset($reference[1])) { |
||
| 19 | $identifier = $identifier.$tick . '.' . $tick.$reference[1]; |
||
| 20 | } |
||
| 21 | $reference = $identifier; |
||
| 22 | } |
||
| 23 | |||
| 24 | return sprintf('`%s`', $reference); |
||
| 25 | } |
||
| 27 |