Skip to content

Commit

Permalink
[4][cli] update:extensions:check (#38152)
Browse files Browse the repository at this point in the history
* no need to cache on cli

* Phase 1 convert BRANCH to PSR-12

* Fix CS error from psr12 conversion

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
  • Loading branch information
alikon and richard67 committed Jul 3, 2022
1 parent 44845ac commit 365d316
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions libraries/src/Console/CheckUpdatesCommand.php
Expand Up @@ -9,7 +9,6 @@

namespace Joomla\CMS\Console;

use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Updater\Updater;
use Joomla\Console\Command\AbstractCommand;
use Symfony\Component\Console\Command\Command;
Expand Down Expand Up @@ -48,13 +47,8 @@ protected function doExecute(InputInterface $input, OutputInterface $output): in

$symfonyStyle->title('Fetching Extension Updates');

// Get the update cache time
$component = ComponentHelper::getComponent('com_installer');

$cache_timeout = 3600 * (int) $component->getParams()->get('cachetimeout', 6);

// Find all updates
$ret = Updater::getInstance()->findUpdates(0, $cache_timeout);
$ret = Updater::getInstance()->findUpdates();

if ($ret) {
$symfonyStyle->note('There are available updates to apply');
Expand Down

0 comments on commit 365d316

Please sign in to comment.