Merge pull request #802 from DannyvdSluijs/fix-phpdocs

Correct phpdoc annotations.
This commit is contained in:
Klaus Silveira
2018-06-26 22:57:26 -04:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ class NetworkController implements ControllerProviderInterface
$route->get(
'{repo}/network/{commitishPath}/{page}.json',
function ($repo, $commitishPath, $page) use ($app) {
/** @var $repository Repository */
/** @var Repository $repository */
$repository = $app['git']->getRepositoryFromName($app['git.repos'], $repo);
if ($commitishPath === null) {

View File

@@ -13,7 +13,7 @@ class Repository extends BaseRepository
/**
* Return true if the repo contains this commit.
*
* @param $commitHash Hash of commit whose existence we want to check
* @param string $commitHash Hash of commit whose existence we want to check
*
* @return bool Whether or not the commit exists in this repo
*/
@@ -251,7 +251,7 @@ class Repository extends BaseRepository
* Show the repository commit log with pagination.
*
* @param string $file
* @param int page
* @param int $page
*
* @return array Commit log
*/