Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | protected function getTableNames() |
||
26 | { |
||
27 | $schemas = DB::getConfig('used_schemas') ?: [DB::getConfig('schema')]; |
||
28 | |||
29 | $schemaCount = count($schemas); |
||
30 | |||
31 | $binds = implode(',', array_fill(0, $schemaCount, '?')); |
||
32 | |||
33 | return collect( |
||
34 | DB::select("SELECT schemaname || '.' || tablename AS table FROM pg_catalog.pg_tables WHERE schemaname IN (".$binds.')', $schemas) |
||
35 | )->pluck('table')->reject(function ($value, $key) { |
||
|
|||
36 | $tableName = explode('.', $value)[1]; |
||
37 | |||
38 | return $tableName === 'spatial_ref_sys'; |
||
39 | }); |
||
40 | } |
||
41 | } |
||
42 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.