original_string: public function isValid(ShaComposer $shaComposer)
      {
          if (function_exists('hash_equals')) {
              return hash_equals($shaComposer->compose($this->parameters), $this->shaSign);
          } else {
              return $shaComposer->compose($this->parameters) == $this->shaSign;
          }
      }
code: public function isValid(ShaComposer $shaComposer)
      {
          if (function_exists('hash_equals')) {
              return hash_equals($shaComposer->compose($this->parameters), $this->shaSign);
          } else {
              return $shaComposer->compose($this->parameters) == $this->shaSign;
          }
      }
code_tokens: public function isValid ( ShaComposer $ shaComposer ) { if ( function_exists ( 'hash_equals' ) ) { return hash_equals ( $ shaComposer -> compose ( $ this -> parameters ) , $ this -> shaSign ) ; } else { return $ shaComposer -> compose ( $ this -> parameters ) == $ this -> shaSign ; } }
docstring: Checks if the response is valid
  @return bool
docstring_tokens: Checks if the response is valid