mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update artisan commands PHPDOC blocks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]);
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -36,7 +36,7 @@ class UpdateNNTmuxGit extends Command
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
* @throws \Cz\Git\GitException
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user