original_string: public function hasAccessEntityForName($class, $name)
      {
          try {
              $em = $this->entityManager->getDoctrineEntityManager();
              $data = $em->getRepository($class)->findOneBy(array(
                  'name' => $name,
              ));
              
              if ($data !== null) {
                  return true;
              }
              
              return false;
          } catch (\Exception $e) {
              throw new Exception('Cannot check if there is an access entitiy for the given type "' . $class . '" and name "' . $name . '".', 0, $e);
          }
      }
code: public function hasAccessEntityForName($class, $name)
      {
          try {
              $em = $this->entityManager->getDoctrineEntityManager();
              $data = $em->getRepository($class)->findOneBy(array(
                  'name' => $name,
              ));
              
              if ($data !== null) {
                  return true;
              }
              
              return false;
          } catch (\Exception $e) {
              throw new Exception('Cannot check if there is an access entitiy for the given type "' . $class . '" and name "' . $name . '".', 0, $e);
          }
      }
code_tokens: public function hasAccessEntityForName ( $ class , $ name ) { try { $ em = $ this -> entityManager -> getDoctrineEntityManager ( ) ; $ data = $ em -> getRepository ( $ class ) -> findOneBy ( array ( 'name' => $ name , ) ) ; if ( $ data !== null ) { return true ; } return false ; } catch ( \ Exception $ e ) { throw new Exception ( 'Cannot check if there is an access entitiy for the given type "' . $ class . '" and name "' . $ name . '".' , 0 , $ e ) ; } }
docstring: Returns true if there is a access entity for the given type and name
  
  @access public
  @param string $class
  @param string $name
  @return boolean
  
  @throws \Zepi\Core\AccessControl\Exception Cannot check if there is an access entitiy for the given type "{type}" and name "{name}".
docstring_tokens: Returns true if there is a access entity for the given type and name