Loader/ScrutinizerLoader.php
public function load(Repo $repo)
    {
        $scrutinizerRepo = $this->client->fetchRepository(new Repository($repo->getSlug(), $repo->getType()));

        if ($scrutinizerRepo) {
            // Inject scrutinizer data into repository
            $repo->setMetrics($scrutinizerRepo->getMetrics());
            $repo->setPdependMetrics($scrutinizerRepo->getPdependMetrics());
        }

        return $repo;
    }
public function load(Repo $repo)
    {
        $scrutinizerRepo = $this->client->fetchRepository(new Repository($repo->getSlug(), $repo->getType()));

        if ($scrutinizerRepo) {
            // Inject scrutinizer data into repository
            $repo->setMetrics($scrutinizerRepo->getMetrics());
            $repo->setPdependMetrics($scrutinizerRepo->getPdependMetrics());
        }

        return $repo;
    }
public function load ( Repo $ repo ) { $ scrutinizerRepo = $ this -> client -> fetchRepository ( new Repository ( $ repo -> getSlug ( ) , $ repo -> getType ( ) ) ) ; if ( $ scrutinizerRepo ) { // Inject scrutinizer data into repository $ repo -> setMetrics ( $ scrutinizerRepo -> getMetrics ( ) ) ; $ repo -> setPdependMetrics ( $ scrutinizerRepo -> getPdependMetrics ( ) ) ; } return $ repo ; }
Load scruinitzer infos for repository

@param Repo $repo
@return Repo
Load scruinitzer infos for repository