src/Tasks/UpdatePackageInfoTask.php
public function getHealthIndicator(array $moduleNames)
    {
        try {
            return $this->getModuleHealthLoader()->setModuleNames($moduleNames)->getModuleHealthInfo() ?: [];
        } catch (RuntimeException $exception) {
            echo $exception->getMessage() . PHP_EOL;
        }

        return null;
    }
public function getHealthIndicator(array $moduleNames)
    {
        try {
            return $this->getModuleHealthLoader()->setModuleNames($moduleNames)->getModuleHealthInfo() ?: [];
        } catch (RuntimeException $exception) {
            echo $exception->getMessage() . PHP_EOL;
        }

        return null;
    }
public function getHealthIndicator ( array $ moduleNames ) { try { return $ this -> getModuleHealthLoader ( ) -> setModuleNames ( $ moduleNames ) -> getModuleHealthInfo ( ) ? : [ ] ; } catch ( RuntimeException $ exception ) { echo $ exception -> getMessage ( ) . PHP_EOL ; } return null ; }
Return an array of module health information as fetched from addons.silverstripe.org. Outputs a message and
returns null if an error occurs

@param string[] $moduleNames
@return null|array
Return an array of module health information as fetched from addons . silverstripe . org . Outputs a message and returns null if an error occurs