src/Rocketeer/Strategies/Check/AbstractCheckStrategy.php
public function language()
    {
        $required = null;

        // Get the minimum version of the application
        if ($this->getManager() && $manifest = $this->getManager()->getManifestContents()) {
            $required = $this->getLanguageConstraint($manifest);
        }

        // Cancel if no version constraint
        if (!$required) {
            return true;
        }

        $version = $this->getCurrentVersion();
        $hasRequiredVersion = version_compare($version, $required, '>=');
        if (!$hasRequiredVersion) {
            $this->explainer->error(sprintf('%s is not at required version: %s instead of %s', $this->getLanguage(), $version, $required));
        }

        return $hasRequiredVersion;
    }
public function language()
    {
        $required = null;

        // Get the minimum version of the application
        if ($this->getManager() && $manifest = $this->getManager()->getManifestContents()) {
            $required = $this->getLanguageConstraint($manifest);
        }

        // Cancel if no version constraint
        if (!$required) {
            return true;
        }

        $version = $this->getCurrentVersion();
        $hasRequiredVersion = version_compare($version, $required, '>=');
        if (!$hasRequiredVersion) {
            $this->explainer->error(sprintf('%s is not at required version: %s instead of %s', $this->getLanguage(), $version, $required));
        }

        return $hasRequiredVersion;
    }
public function language ( ) { $ required = null ; // Get the minimum version of the application if ( $ this -> getManager ( ) && $ manifest = $ this -> getManager ( ) -> getManifestContents ( ) ) { $ required = $ this -> getLanguageConstraint ( $ manifest ) ; } // Cancel if no version constraint if ( ! $ required ) { return true ; } $ version = $ this -> getCurrentVersion ( ) ; $ hasRequiredVersion = version_compare ( $ version , $ required , '>=' ) ; if ( ! $ hasRequiredVersion ) { $ this -> explainer -> error ( sprintf ( '%s is not at required version: %s instead of %s' , $ this -> getLanguage ( ) , $ version , $ required ) ) ; } return $ hasRequiredVersion ; }
Check that the language used by the
application is at the required version.

@return bool
Check that the language used by the application is at the required version .