| 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 |
||
| 26 | 591 | public function getTableNameParts(string $name, bool $withColumn = false): array |
|
| 27 | { |
||
| 28 | 591 | if (preg_match_all('/([^.\[\]]+)|\[([^\[\]]+)]/', $name, $matches) > 0) { |
|
| 29 | 589 | $parts = array_slice($matches[0], -4, 4); |
|
| 30 | } else { |
||
| 31 | 2 | $parts = [$name]; |
|
| 32 | } |
||
| 33 | |||
| 34 | 591 | return $this->unquoteParts($parts, $withColumn); |
|
| 35 | } |
||
| 37 |