diff --git a/Changelog b/Changelog index b9faef07a..1e690c15c 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-11-20 DariusIII + * CHg: Update artisan commands PHPDOC blocks * Chg: Update composer install process to prefer dist in dev branches too, we will not be making changes to composer packages * Chg: Update PCGames categorization function, use categorization by poster * Chg: Update isPC function to check if release is PCGame before isISO check diff --git a/app/Console/Commands/InstallNntmux.php b/app/Console/Commands/InstallNntmux.php index 01678210e..61269b9ed 100644 --- a/app/Console/Commands/InstallNntmux.php +++ b/app/Console/Commands/InstallNntmux.php @@ -138,11 +138,11 @@ class InstallNntmux extends Command /** * @return bool + * @throws \Cz\Git\GitException */ private function updatePatch(): bool { - $ver = new Versions(); - $patch = $ver->getSQLPatchFromFile(); + $patch = (new Versions())->getSQLPatchFromFile(); $updateSettings = false; if ($patch > 0) { $updateSettings = Settings::query()->where(['section' => '', 'subsection' => '', 'name' => 'sqlpatch'])->update(['value' => $patch]); diff --git a/app/Console/Commands/UpdateNNTmuxComposer.php b/app/Console/Commands/UpdateNNTmuxComposer.php index 66e4c9b06..cb0c3137c 100644 --- a/app/Console/Commands/UpdateNNTmuxComposer.php +++ b/app/Console/Commands/UpdateNNTmuxComposer.php @@ -41,8 +41,7 @@ class UpdateNNTmuxComposer extends Command * Execute the console command. * * @return mixed - * @throws \Symfony\Component\Process\Exception\RuntimeException - * @throws \Symfony\Component\Process\Exception\LogicException + * @throws \Cz\Git\GitException */ public function handle() { @@ -56,8 +55,7 @@ class UpdateNNTmuxComposer extends Command * option is added to the command to prevent development packages being also downloded. * * @return int Return status from Composer. - * @throws \Symfony\Component\Process\Exception\LogicException - * @throws \Symfony\Component\Process\Exception\RuntimeException + * @throws \Cz\Git\GitException */ protected function composer() { @@ -79,6 +77,9 @@ class UpdateNNTmuxComposer extends Command return $process->getOutput(); } + /** + * @throws \Cz\Git\GitException + */ protected function initialiseGit() { if (! ($this->git instanceof Git)) { diff --git a/app/Console/Commands/UpdateNNTmuxGit.php b/app/Console/Commands/UpdateNNTmuxGit.php index 7e190609d..8c20fb1a1 100644 --- a/app/Console/Commands/UpdateNNTmuxGit.php +++ b/app/Console/Commands/UpdateNNTmuxGit.php @@ -36,7 +36,7 @@ class UpdateNNTmuxGit extends Command } /** - * @throws \Exception + * @throws \Cz\Git\GitException */ public function handle() { diff --git a/app/Console/Commands/VerifyNNTmuxVersion.php b/app/Console/Commands/VerifyNNTmuxVersion.php index 023faf0e7..e5ef82772 100644 --- a/app/Console/Commands/VerifyNNTmuxVersion.php +++ b/app/Console/Commands/VerifyNNTmuxVersion.php @@ -28,7 +28,9 @@ class VerifyNNTmuxVersion extends Command private $versions; /** - * Create a new command instance. + * VerifyNNTmuxVersion constructor. + * + * @throws \Cz\Git\GitException */ public function __construct() { @@ -37,9 +39,8 @@ class VerifyNNTmuxVersion extends Command } /** - * Execute the console command. * - * @return mixed + * @throws \Cz\Git\GitException */ public function handle() { @@ -56,6 +57,10 @@ class VerifyNNTmuxVersion extends Command } } + /** + * + * @throws \Cz\Git\GitException + */ public function all() { $this->git(); @@ -68,7 +73,7 @@ class VerifyNNTmuxVersion extends Command } /** - * Fetch git tag for latest version. + * @throws \Cz\Git\GitException */ public function git() {