original_string: public function find($class, $id)
      {
          if (!isset($id)) {
              return;
          }
  
          if (null === $class) {
              return $this->dm->find(null, $id);
          }
  
          return $this->dm->getRepository($class)->find($id);
      }
code: public function find($class, $id)
      {
          if (!isset($id)) {
              return;
          }
  
          if (null === $class) {
              return $this->dm->find(null, $id);
          }
  
          return $this->dm->getRepository($class)->find($id);
      }
code_tokens: public function find ( $ class , $ id ) { if ( ! isset ( $ id ) ) { return ; } if ( null === $ class ) { return $ this -> dm -> find ( null , $ id ) ; } return $ this -> dm -> getRepository ( $ class ) -> find ( $ id ) ; }
docstring: Find one object from the given class repository.
  
  {@inheritdoc}
docstring_tokens: Find one object from the given class repository .