From 8807ef2b966d3c01cf1783b9cf882441f769761a Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Fri, 22 Jun 2018 20:58:20 +0200 Subject: [PATCH] Correct phpdoc annotations. --- src/Controller/NetworkController.php | 2 +- src/Git/Repository.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controller/NetworkController.php b/src/Controller/NetworkController.php index 4f47594..95f51ce 100644 --- a/src/Controller/NetworkController.php +++ b/src/Controller/NetworkController.php @@ -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) { diff --git a/src/Git/Repository.php b/src/Git/Repository.php index 74ce4ea..c550b3d 100644 --- a/src/Git/Repository.php +++ b/src/Git/Repository.php @@ -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 */