Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 244 | public function getTableNameParts(string $name): array |
|
24 | { |
||
25 | 244 | if (preg_match_all('/([^.\[\]]+)|\[([^\[\]]+)]/', $name, $matches)) { |
|
26 | 242 | $parts = array_slice($matches[0], -4, 4); |
|
27 | } else { |
||
28 | 2 | $parts = [$name]; |
|
29 | } |
||
30 | |||
31 | 244 | return array_map(fn ($part) => $this->unquoteSimpleTableName($part), $parts); |
|
32 | } |
||
34 |