Code Duplication    Length = 9-10 lines in 2 locations

sources/lib/Command/InspectDatabase.php 1 location

@@ 90-98 (lines=9) @@
87
            ->setHeaders(['name', 'oid ', 'relations', 'owner', 'comment'])
88
            ;
89
90
        foreach ($iterator as $schema_info) {
91
            $table->addRow([
92
                sprintf("<fg=yellow>%s</fg=yellow>", $schema_info['name']),
93
                $schema_info['oid'],
94
                $schema_info['relations'],
95
                $schema_info['owner'],
96
                wordwrap($schema_info['comment'])
97
            ]);
98
        }
99
100
        $table->render();
101
    }

sources/lib/Command/InspectSchema.php 1 location

@@ 98-107 (lines=10) @@
95
            ->setHeaders(['name', 'type', 'oid ', 'owner', 'size', 'comment'])
96
            ;
97
98
        foreach ($info as $table_info) {
99
            $table->addRow([
100
                sprintf("<fg=yellow>%s</fg=yellow>", $table_info['name']),
101
                $table_info['type'],
102
                $table_info['oid'],
103
                $table_info['owner'],
104
                $table_info['size'],
105
                wordwrap($table_info['comment'])
106
            ]);
107
        }
108
109
        $table->render();
110
    }