src/Rocketeer/Services/Releases/ReleasesManager.php
public function getDeprecatedReleases($treshold = null)
    {
        $releases = $this->getReleases();
        $treshold = $treshold ?: $this->config->get('remote.keep_releases');

        // Get first X valid releases
        $keep = $this->getValidReleases();
        $keep = array_slice($keep, 0, $treshold);

        // Compute diff
        $deprecated = array_diff($releases, $keep);
        $deprecated = array_values($deprecated);

        return $deprecated;
    }
public function getDeprecatedReleases($treshold = null)
    {
        $releases = $this->getReleases();
        $treshold = $treshold ?: $this->config->get('remote.keep_releases');

        // Get first X valid releases
        $keep = $this->getValidReleases();
        $keep = array_slice($keep, 0, $treshold);

        // Compute diff
        $deprecated = array_diff($releases, $keep);
        $deprecated = array_values($deprecated);

        return $deprecated;
    }
public function getDeprecatedReleases ( $ treshold = null ) { $ releases = $ this -> getReleases ( ) ; $ treshold = $ treshold ? : $ this -> config -> get ( 'remote.keep_releases' ) ; // Get first X valid releases $ keep = $ this -> getValidReleases ( ) ; $ keep = array_slice ( $ keep , 0 , $ treshold ) ; // Compute diff $ deprecated = array_diff ( $ releases , $ keep ) ; $ deprecated = array_values ( $ deprecated ) ; return $ deprecated ; }
Get an array of deprecated releases.

@param int|null $treshold

@return int[]
Get an array of deprecated releases .