@@ -79,7 +79,7 @@ |
||
79 | 79 | $logLevel = strtoupper($level); |
80 | 80 | $useIp = $this->config->get('handlers.file.ip_addr', false); |
81 | 81 | $ipStr = ''; |
82 | - if($useIp){ |
|
82 | + if ($useIp) { |
|
83 | 83 | $ip = Str::ip(); |
84 | 84 | $ipStr = '[' . $ip . ']' . $this->tab; |
85 | 85 | } |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | * Class DefaultFormatter |
54 | 54 | * @package Platine\Logger\Formatter |
55 | 55 | */ |
56 | -class DefaultFormatter extends AbstractFormatter |
|
57 | -{ |
|
56 | +class DefaultFormatter extends AbstractFormatter { |
|
58 | 57 | /** |
59 | 58 | * {@inheritdoc} |
60 | 59 | * YYYY-mm-dd HH:ii:ss.micro [log level] [channel] [pid:##] |
@@ -79,7 +78,7 @@ discard block |
||
79 | 78 | $logLevel = strtoupper($level); |
80 | 79 | $useIp = $this->config->get('handlers.file.ip_addr', false); |
81 | 80 | $ipStr = ''; |
82 | - if($useIp){ |
|
81 | + if($useIp) { |
|
83 | 82 | $ip = Str::ip(); |
84 | 83 | $ipStr = '[' . $ip . ']' . $this->tab; |
85 | 84 | } |