private static function logQuery(string $query): void
  {
    $query = trim($query);

    if (strpos($query, "\n")!==false)
    {
      // Query is a multi line query.
      self::$io->logVeryVerbose('Executing query:');
      self::$io->logVeryVerbose('<sql>%s</sql>', $query);
    }
    else
    {
      // Query is a single line query.
      self::$io->logVeryVerbose('Executing query: <sql>%s</sql>', $query);
    }
  }
private static function logQuery(string $query): void
  {
    $query = trim($query);

    if (strpos($query, "\n")!==false)
    {
      // Query is a multi line query.
      self::$io->logVeryVerbose('Executing query:');
      self::$io->logVeryVerbose('<sql>%s</sql>', $query);
    }
    else
    {
      // Query is a single line query.
      self::$io->logVeryVerbose('Executing query: <sql>%s</sql>', $query);
    }
  }
private static function logQuery ( string $ query ) : void { $ query = trim ( $ query ) ; if ( strpos ( $ query , "\n" ) !== false ) { // Query is a multi line query. self :: $ io -> logVeryVerbose ( 'Executing query:' ) ; self :: $ io -> logVeryVerbose ( '<sql>%s</sql>' , $ query ) ; } else { // Query is a single line query. self :: $ io -> logVeryVerbose ( 'Executing query: <sql>%s</sql>' , $ query ) ; } }
Logs the query on the console.

@param string $query The query.
Logs the query on the console .