Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | function determineTableName(string $tableName, array $emConfig = []): string |
||
46 | { |
||
47 | $schema = $emConfig['connection']['schema'] ?? null; |
||
48 | // $tablePrefix = $emConfig['connection']['table_prefix'] ?? null; // TODO |
||
49 | |||
50 | if ($schema === null) { |
||
51 | return $tableName; |
||
52 | } |
||
53 | |||
54 | return sprintf('%s.%s', $schema, $tableName); |
||
55 | } |
||
56 |