original_string: public function isGenerated($token)
      {
          $result = false;
          $token = (string) $token;
          if ($token !== '') {
              $this->searchQuery->execute([$token]);
              $row = $this->searchQuery->fetch();
              $this->searchQuery->closeCursor();
              if ($row !== false) {
                  $result = true;
              }
          }
  
          return $result;
      }
code: public function isGenerated($token)
      {
          $result = false;
          $token = (string) $token;
          if ($token !== '') {
              $this->searchQuery->execute([$token]);
              $row = $this->searchQuery->fetch();
              $this->searchQuery->closeCursor();
              if ($row !== false) {
                  $result = true;
              }
          }
  
          return $result;
      }
code_tokens: public function isGenerated ( $ token ) { $ result = false ; $ token = ( string ) $ token ; if ( $ token !== '' ) { $ this -> searchQuery -> execute ( [ $ token ] ) ; $ row = $ this -> searchQuery -> fetch ( ) ; $ this -> searchQuery -> closeCursor ( ) ; if ( $ row !== false ) { $ result = true ; } } return $ result ; }
docstring: Check if a token has been generated.
  
  @param string $token
  
  @return bool
docstring_tokens: Check if a token has been generated .