src/package/Support/Git.php
protected function getFromGit($command, $keySuffix, $length = 256)
    {
        if ($value = $this->cache->get($key = $this->cache->key($keySuffix))) {
            return $value;
        }

        $value = substr($this->shell($command), 0, $length);

        $this->cache->put($key, $value);

        return $value;
    }
protected function getFromGit($command, $keySuffix, $length = 256)
    {
        if ($value = $this->cache->get($key = $this->cache->key($keySuffix))) {
            return $value;
        }

        $value = substr($this->shell($command), 0, $length);

        $this->cache->put($key, $value);

        return $value;
    }
protected function getFromGit ( $ command , $ keySuffix , $ length = 256 ) { if ( $ value = $ this -> cache -> get ( $ key = $ this -> cache -> key ( $ keySuffix ) ) ) { return $ value ; } $ value = substr ( $ this -> shell ( $ command ) , 0 , $ length ) ; $ this -> cache -> put ( $ key , $ value ) ; return $ value ; }
Get a cached value or execute a shell command to retrieve it.

@param $command
@param $keySuffix
@param int $length

@return bool|mixed|null|string
Get a cached value or execute a shell command to retrieve it .