original_string: public function addLog(string $string, array $logData = []) : bool
      {
          if (null !== $this->logger) {
              $this->logger->debug('CORs: '.$string, $logData);
              return true;
          }
  
          return false;
      }
code: public function addLog(string $string, array $logData = []) : bool
      {
          if (null !== $this->logger) {
              $this->logger->debug('CORs: '.$string, $logData);
              return true;
          }
  
          return false;
      }
code_tokens: public function addLog ( string $ string , array $ logData = [ ] ) : bool { if ( null !== $ this -> logger ) { $ this -> logger -> debug ( 'CORs: ' . $ string , $ logData ) ; return true ; } return false ; }
docstring: Add a log string if we have a logger.
  
  @param string $string  String to log.
  @param array  $logData Additional data to log.
  
  @return bool True if logged, false if no logger.
docstring_tokens: Add a log string if we have a logger .