original_string: public function addRepository(RepositoryInterface $repository)
      {
          if ($repository instanceof IssueRepository) {
              $type = 'issue';
          } else {
              throw new \Exception('Unknown repository type.');
          }
  
          $this->repositories[$type] = $repository;
      }
code: public function addRepository(RepositoryInterface $repository)
      {
          if ($repository instanceof IssueRepository) {
              $type = 'issue';
          } else {
              throw new \Exception('Unknown repository type.');
          }
  
          $this->repositories[$type] = $repository;
      }
code_tokens: public function addRepository ( RepositoryInterface $ repository ) { if ( $ repository instanceof IssueRepository ) { $ type = 'issue' ; } else { throw new \ Exception ( 'Unknown repository type.' ) ; } $ this -> repositories [ $ type ] = $ repository ; }
docstring: Register the repository in the manager
  
  @param RepositoryInterface $repository
  
  @throws \Exception
docstring_tokens: Register the repository in the manager