GBContent::findCommits PHP Method

findCommits() public method

public findCommits ( )
    function findCommits()
    {
        if (!$this->name) {
            throw new UnexpectedValueException('name property is empty');
        }
        $v = GitCommit::find(array('names' => array($this->name)));
        if ($v) {
            return $v[0];
        }
        return array();
    }