Skip to content

Commit

Permalink
Adjust code style
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Aug 14, 2019
1 parent ccc836e commit 818eb20
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions app/Console/Commands/NntmuxResetPostProcessing.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public function handle()
}
}


private function resetConsole(): void
{
$qry = Release::query()->whereNotNull('consoleinfo_id')->whereBetween('categories_id', [Category::GAME_ROOT, Category::GAME_OTHER])->get();
Expand All @@ -143,9 +142,9 @@ private function resetConsole(): void
[
'consoleinfo_id' => null,
]);
$this->consoleTools->overWritePrimary('Resetting console releases: ' . $this->consoleTools->percentString(++$conCount, $total));
$this->consoleTools->overWritePrimary('Resetting console releases: '.$this->consoleTools->percentString(++$conCount, $total));
}
$this->colorCli->header(number_format($conCount) . ' consoleinfo_id\'s reset.');
$this->colorCli->header(number_format($conCount).' consoleinfo_id\'s reset.');
} else {
$this->colorCli->header('No releases to reset');
}
Expand All @@ -163,9 +162,9 @@ private function resetMovies(): void
'movieinfo_id' => null,
'imdbid' => null,
]);
$this->consoleTools->overWritePrimary('Resetting Movie releases: ' . $this->consoleTools->percentString(++$conCount, $total));
$this->consoleTools->overWritePrimary('Resetting Movie releases: '.$this->consoleTools->percentString(++$conCount, $total));
}
$this->colorCli->header(number_format($conCount) . ' movieinfo_id\'s reset.');
$this->colorCli->header(number_format($conCount).' movieinfo_id\'s reset.');
} else {
$this->colorCli->header('No releases to reset');
}
Expand All @@ -182,9 +181,9 @@ private function resetGames(): void
[
'gamesinfo_id' => null,
]);
$this->consoleTools->overWritePrimary('Resetting PC GAME releases: ' . $this->consoleTools->percentString(++$conCount, $total));
$this->consoleTools->overWritePrimary('Resetting PC GAME releases: '.$this->consoleTools->percentString(++$conCount, $total));
}
$this->colorCli->header(number_format($conCount) . ' gamesinfo_id\'s reset.');
$this->colorCli->header(number_format($conCount).' gamesinfo_id\'s reset.');
} else {
$this->colorCli->header('No releases to reset');
}
Expand All @@ -201,9 +200,9 @@ private function resetBooks(): void
[
'bookinfo_id' => null,
]);
$this->consoleTools->overWritePrimary('Resetting book releases: ' . $this->consoleTools->percentString(++$conCount, $total));
$this->consoleTools->overWritePrimary('Resetting book releases: '.$this->consoleTools->percentString(++$conCount, $total));
}
$this->colorCli->header(number_format($conCount) . ' bookinfo_id\'s reset.');
$this->colorCli->header(number_format($conCount).' bookinfo_id\'s reset.');
} else {
$this->colorCli->header('No releases to reset');
}
Expand All @@ -220,9 +219,9 @@ private function resetMusic(): void
[
'musicinfo_id' => null,
]);
$this->consoleTools->overWritePrimary('Resetting music releases: ' . $this->consoleTools->percentString(++$conCount, $total));
$this->consoleTools->overWritePrimary('Resetting music releases: '.$this->consoleTools->percentString(++$conCount, $total));
}
$this->colorCli->header(number_format($conCount) . ' musicinfo_id\'s reset.');
$this->colorCli->header(number_format($conCount).' musicinfo_id\'s reset.');
} else {
$this->colorCli->header('No releases to reset');
}
Expand All @@ -239,9 +238,9 @@ private function resetAdult(): void
[
'xxxinfo_id' => null,
]);
$this->consoleTools->overWritePrimary('Resetting xxx releases: ' . $this->consoleTools->percentString(++$conCount, $total));
$this->consoleTools->overWritePrimary('Resetting xxx releases: '.$this->consoleTools->percentString(++$conCount, $total));
}
$this->colorCli->header(number_format($conCount) . ' xxxinfo_id\'s reset.');
$this->colorCli->header(number_format($conCount).' xxxinfo_id\'s reset.');
} else {
$this->colorCli->header('No releases to reset');
}
Expand All @@ -259,9 +258,9 @@ private function resetTv(): void
'videos_id' => 0,
'tv_episodes_id' => 0,
]);
$this->consoleTools->overWritePrimary('Resetting tv releases: ' . $this->consoleTools->percentString(++$conCount, $total));
$this->consoleTools->overWritePrimary('Resetting tv releases: '.$this->consoleTools->percentString(++$conCount, $total));
}
$this->colorCli->header(number_format($conCount) . ' video_id\'s reset.');
$this->colorCli->header(number_format($conCount).' video_id\'s reset.');
} else {
$this->colorCli->header('No releases to reset');
}
Expand All @@ -283,9 +282,9 @@ private function resetMisc(): void
'audiostatus' => 0,
'nfostatus' => -1,
]);
$this->consoleTools->overWritePrimary('Resetting misc releases: ' . $this->consoleTools->percentString(++$conCount, $total));
$this->consoleTools->overWritePrimary('Resetting misc releases: '.$this->consoleTools->percentString(++$conCount, $total));
}
$this->colorCli->header(number_format($conCount) . ' misc releases reset.');
$this->colorCli->header(number_format($conCount).' misc releases reset.');
} else {
$this->colorCli->header('No releases to reset');
}
Expand Down

0 comments on commit 818eb20

Please sign in to comment.