original_string: public function validateOrFail($secret = null, $algo = null)
      {
          if( ! $this->validate($secret, $algo)) {
              throw new InvalidTokenException('Token is not valid.');
          }
  
          return true;
      }
code: public function validateOrFail($secret = null, $algo = null)
      {
          if( ! $this->validate($secret, $algo)) {
              throw new InvalidTokenException('Token is not valid.');
          }
  
          return true;
      }
code_tokens: public function validateOrFail ( $ secret = null , $ algo = null ) { if ( ! $ this -> validate ( $ secret , $ algo ) ) { throw new InvalidTokenException ( 'Token is not valid.' ) ; } return true ; }
docstring: Validate the token or throw an exception
  
  @param string|null $secret
  @param string|null $algo
  
  @return bool
  
  @throws InvalidTokenException
docstring_tokens: Validate the token or throw an exception