Skip to content

Commit 367c5db

Browse files
committed
refactor: add exit code to return
1 parent fde2631 commit 367c5db

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

system/Commands/Database/ShowTableInfo.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ public function run(array $params)
127127
CLI::error('Database has no tables!', 'light_gray', 'red');
128128
CLI::newLine();
129129

130-
return;
130+
return EXIT_ERROR;
131131
}
132132

133133
if (array_key_exists('show', $params)) {
134134
$this->showAllTables($tables);
135135

136-
return;
136+
return EXIT_ERROR;
137137
}
138138

139139
$tableName = $params[0] ?? null;
@@ -154,10 +154,12 @@ public function run(array $params)
154154
if (array_key_exists('metadata', $params)) {
155155
$this->showFieldMetaData($tableName);
156156

157-
return;
157+
return EXIT_SUCCESS;
158158
}
159159

160160
$this->showDataOfTable($tableName, $limitRows, $limitFieldValue);
161+
162+
return EXIT_SUCCESS;
161163
}
162164

163165
private function showDBConfig(): void

0 commit comments

Comments
 (0)