public function fork($account, $repo, $name, array $params = array())
    {
        $params['name'] = $name;

        return $this->requestPost(
            sprintf('repositories/%s/%s/fork', $account, $repo),
            $params
        );
    }
public function fork($account, $repo, $name, array $params = array())
    {
        $params['name'] = $name;

        return $this->requestPost(
            sprintf('repositories/%s/%s/fork', $account, $repo),
            $params
        );
    }
public function fork ( $ account , $ repo , $ name , array $ params = array ( ) ) { $ params [ 'name' ] = $ name ; return $ this -> requestPost ( sprintf ( 'repositories/%s/%s/fork' , $ account , $ repo ) , $ params ) ; }
Fork a repository

@access public
@param  string           $account The team or individual account owning the repository.
@param  string           $repo    The repository identifier.
@param  string           $name    Fork name
@param  array            $params  Additional parameters
@return MessageInterface

@see https://confluence.atlassian.com/display/BITBUCKET/repository+Resource#repositoryResource-POSTanewfork
Fork a repository