Explorar o código

Fix class import and indenting

Jordi Boggiano %!s(int64=6) %!d(string=hai) anos
pai
achega
b615b158e4
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      src/Monolog/Handler/SyslogUdpHandler.php

+ 5 - 5
src/Monolog/Handler/SyslogUdpHandler.php

@@ -11,7 +11,7 @@
 
 namespace Monolog\Handler;
 
-use Monolog\DateTimeImmutable;
+use DateTimeInterface;
 use Monolog\Logger;
 use Monolog\Handler\SyslogUdp\UdpSocket;
 
@@ -95,11 +95,11 @@ class SyslogUdpHandler extends AbstractSyslogHandler
         }
 
         if ($this->rfc === self::RFC3164) {
-	    $datetime->setTimezone(new \DateTimeZone('UTC'));
-	}
-	$date = $datetime->format($this->dateFormats[$this->rfc]);
+            $datetime->setTimezone(new \DateTimeZone('UTC'));
+        }
+        $date = $datetime->format($this->dateFormats[$this->rfc]);
 
-	if ($this->rfc === self::RFC3164) {
+        if ($this->rfc === self::RFC3164) {
             return "<$priority>" .
                 $date . " " .
                 $hostname . " " .