Remove newline from update_groups scripts

This commit is contained in:
DariusIII
2018-03-13 12:09:32 +01:00
parent 56b38e0975
commit 511d2aa92d
+4 -4
View File
@@ -19,13 +19,13 @@ if ($nntp->doConnect() !== true) {
exit(ColorCLI::error('Unable to connect to usenet.'));
}
ColorCLI::doEcho(ColorCLI::header('Getting first/last for all your active groups.'), true);
ColorCLI::doEcho(ColorCLI::header('Getting first/last for all your active groups.'));
$data = $nntp->getGroups();
if ($nntp->isError($data)) {
exit(ColorCLI::error('Failed to getGroups() from nntp server.'));
}
ColorCLI::doEcho(ColorCLI::header('Inserting new values into short_groups table.'), true);
ColorCLI::doEcho(ColorCLI::header('Inserting new values into short_groups table.'));
DB::unprepared('TRUNCATE TABLE short_groups');
DB::commit();
@@ -43,10 +43,10 @@ foreach ($data as $newgroup) {
'updated' => Carbon::now(),
]
);
ColorCLI::doEcho(ColorCLI::primary('Updated '.$newgroup['group']), true);
ColorCLI::doEcho(ColorCLI::primary('Updated '.$newgroup['group']));
}
}
ColorCLI::doEcho(ColorCLI::header('Running time: '.$consoleTools->convertTimer(time() - $start)), true);
ColorCLI::doEcho(ColorCLI::header('Running time: '.$consoleTools->convertTimer(time() - $start)));
function myInArray($array, $value, $key)
{