cloneRepo() cloneRepo( $destination, $ref = 'master') This function is not called "clone" because . .. You can't call a class function clone. Parameters $destination $ref