public function getLine(SqlQuery $query)
    {
        $replace = [
            '[origin]' => $this->originLine(),
            '[query_nr]' => $query->number(),
            '[datetime]' => Carbon::now()->toDateTimeString(),
            '[query_time]' => $this->time($query->time()),
            '[query]' => $this->queryLine($query),
            '[separator]' => $this->separatorLine(),
            '\n' => PHP_EOL,
        ];

        return str_replace(array_keys($replace), array_values($replace), $this->config->entryFormat());
    }
public function getLine(SqlQuery $query)
    {
        $replace = [
            '[origin]' => $this->originLine(),
            '[query_nr]' => $query->number(),
            '[datetime]' => Carbon::now()->toDateTimeString(),
            '[query_time]' => $this->time($query->time()),
            '[query]' => $this->queryLine($query),
            '[separator]' => $this->separatorLine(),
            '\n' => PHP_EOL,
        ];

        return str_replace(array_keys($replace), array_values($replace), $this->config->entryFormat());
    }
public function getLine ( SqlQuery $ query ) { $ replace = [ '[origin]' => $ this -> originLine ( ) , '[query_nr]' => $ query -> number ( ) , '[datetime]' => Carbon :: now ( ) -> toDateTimeString ( ) , '[query_time]' => $ this -> time ( $ query -> time ( ) ) , '[query]' => $ this -> queryLine ( $ query ) , '[separator]' => $ this -> separatorLine ( ) , '\n' => PHP_EOL , ] ; return str_replace ( array_keys ( $ replace ) , array_values ( $ replace ) , $ this -> config -> entryFormat ( ) ) ; }
Get formatted line.

@param SqlQuery $query

@return string
Get formatted line .