Formatting fixes and cleanup.
This commit is contained in:
parent
a1e14a3e60
commit
51fb71e469
41 changed files with 394 additions and 392 deletions
|
|
@ -34,7 +34,7 @@ class CardExport extends Command
|
|||
public function handle()
|
||||
{
|
||||
$data = collect();
|
||||
foreach(Card::with(['character', 'raid'])->get() as $card) {
|
||||
foreach (Card::with(['character', 'raid'])->get() as $card) {
|
||||
|
||||
$row = collect([
|
||||
'message' => $card->body,
|
||||
|
|
|
|||
|
|
@ -39,12 +39,12 @@ class CardImport extends Command
|
|||
|
||||
try {
|
||||
$json = json_decode($data, false, 8, JSON_THROW_ON_ERROR);
|
||||
} catch(\JsonException $ex) {
|
||||
} catch (\JsonException $ex) {
|
||||
$this->error("Json: " . $ex->getMessage());
|
||||
return;
|
||||
}
|
||||
|
||||
foreach($json as $item) {
|
||||
foreach ($json as $item) {
|
||||
|
||||
$data = [
|
||||
'body' => $item->message,
|
||||
|
|
|
|||
|
|
@ -34,4 +34,4 @@ class InstallLogo extends Command
|
|||
|
||||
Storage::disk('resources')->copy('logos/' . $filename, 'images/logo.png');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue