X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FGithub%2FAPI%2FRepos%2FContentsCallback.php;h=2be3b6e3247dd8487da29be207f7bf5a775709a4;hb=2198c781a021d85ee845f2f4b2f5c322f73e6bd5;hp=c08c3c2284750b086e318ae0b79438c61626fd2c;hpb=c05a8f703d5a097355b5813154c264c87e3f71fe;p=pharext%2Fpharext.org diff --git a/app/Github/API/Repos/ContentsCallback.php b/app/Github/API/Repos/ContentsCallback.php index c08c3c2..2be3b6e 100644 --- a/app/Github/API/Repos/ContentsCallback.php +++ b/app/Github/API/Repos/ContentsCallback.php @@ -14,7 +14,7 @@ class ContentsCallback extends Callback $this->repo = $repo; } - function __invoke($json, $links = null) { + protected function exec($json, $links = null) { foreach ($json as $entry) { if ($entry->type !== "file" || $entry->size <= 0) { continue; @@ -27,5 +27,6 @@ class ContentsCallback extends Callback $this->repo->pharext_package_php = $entry->name; } } + return $json; } }