Repository/Yaml/RepoRepository.php
public function find($id)
    {
        foreach ($this->findAll() as $repo) {
            if ($id == $repo->getId()) {
                return $repo;
            }
        }

        return null;
    }
public function find($id)
    {
        foreach ($this->findAll() as $repo) {
            if ($id == $repo->getId()) {
                return $repo;
            }
        }

        return null;
    }
public function find ( $ id ) { foreach ( $ this -> findAll ( ) as $ repo ) { if ( $ id == $ repo -> getId ( ) ) { return $ repo ; } } return null ; }
Find repo by ID

@param $id Repo id
@return Repo|null
Find repo by ID