Ver Fonte

CS fixes

Jordi Boggiano há 10 anos atrás
pai
commit
f1091c3b97

+ 1 - 1
.php_cs

@@ -27,7 +27,7 @@ return Symfony\CS\Config::create()
         'blank_line_before_return' => true,
         'header_comment' => array('header' => $header),
         'include' => true,
-        'long_array_syntax' => true,
+        'long_array_syntax' => false,
         'method_separation' => true,
         'no_blank_lines_after_class_opening' => true,
         'no_blank_lines_after_phpdoc' => true,

+ 0 - 1
src/Monolog/ErrorHandler.php

@@ -13,7 +13,6 @@ namespace Monolog;
 
 use Psr\Log\LoggerInterface;
 use Psr\Log\LogLevel;
-use Monolog\Handler\AbstractHandler;
 
 /**
  * Monolog error handler

+ 1 - 1
src/Monolog/Handler/FormattableHandlerInterface.php

@@ -24,7 +24,7 @@ interface FormattableHandlerInterface
      * Sets the formatter.
      *
      * @param  FormatterInterface $formatter
-     * @return HandlerInterface self
+     * @return HandlerInterface   self
      */
     public function setFormatter(FormatterInterface $formatter): HandlerInterface;
 

+ 0 - 1
src/Monolog/Handler/FormattableHandlerTrait.php

@@ -11,7 +11,6 @@
 
 namespace Monolog\Handler;
 
-use Monolog\Logger;
 use Monolog\Formatter\FormatterInterface;
 use Monolog\Formatter\LineFormatter;
 

+ 0 - 2
src/Monolog/Handler/Handler.php

@@ -11,8 +11,6 @@
 
 namespace Monolog\Handler;
 
-use Monolog\Logger;
-
 /**
  * Base Handler class providing basic close() support as well as handleBatch
  *

+ 2 - 2
src/Monolog/Handler/ProcessableHandlerInterface.php

@@ -21,7 +21,7 @@ interface ProcessableHandlerInterface
     /**
      * Adds a processor in the stack.
      *
-     * @param  callable $callback
+     * @param  callable         $callback
      * @return HandlerInterface self
      */
     public function pushProcessor(callable $callback): HandlerInterface;
@@ -29,8 +29,8 @@ interface ProcessableHandlerInterface
     /**
      * Removes the processor on top of the stack and returns it.
      *
-     * @return callable
      * @throws LogicException In case the processor stack is empty
+     * @return callable
      */
     public function popProcessor(): callable;
 }

+ 0 - 2
src/Monolog/Handler/ProcessableHandlerTrait.php

@@ -11,8 +11,6 @@
 
 namespace Monolog\Handler;
 
-use Monolog\Logger;
-
 /**
  * Helper trait for implementing ProcessableInterface
  *

+ 10 - 1
src/Monolog/Logger.php

@@ -1,4 +1,14 @@
 <?php
+
+/*
+ * This file is part of the Monolog package.
+ *
+ * (c) Jordi Boggiano <j.boggiano@seld.be>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 declare(strict_types=1);
 
 /*
@@ -14,7 +24,6 @@ namespace Monolog;
 
 use DateTimeZone;
 use Monolog\Handler\HandlerInterface;
-use Monolog\Handler\StreamHandler;
 use Psr\Log\LoggerInterface;
 use Psr\Log\InvalidArgumentException;
 

+ 0 - 1
tests/Monolog/Handler/AbstractHandlerTest.php

@@ -13,7 +13,6 @@ namespace Monolog\Handler;
 
 use Monolog\TestCase;
 use Monolog\Logger;
-use Monolog\Processor\WebProcessor;
 
 class AbstractHandlerTest extends TestCase
 {