public function getMainBranch()
    {
        $filtered = array_filter(
            $this->getBranches(),
            function (Branch $branch) {
                return $branch->getCurrent();
            }
        );
        sort($filtered);

        return $filtered[0];
    }
public function getMainBranch()
    {
        $filtered = array_filter(
            $this->getBranches(),
            function (Branch $branch) {
                return $branch->getCurrent();
            }
        );
        sort($filtered);

        return $filtered[0];
    }
public function getMainBranch ( ) { $ filtered = array_filter ( $ this -> getBranches ( ) , function ( Branch $ branch ) { return $ branch -> getCurrent ( ) ; } ) ; sort ( $ filtered ) ; return $ filtered [ 0 ] ; }
Return the actually checked out branch

@throws \RuntimeException
@throws \InvalidArgumentException
@throws \Symfony\Component\Process\Exception\RuntimeException
@return Objects\Branch
Return the actually checked out branch