diff --git a/.php_cs b/.php_cs index 366ccd08..13b84f15 100644 --- a/.php_cs +++ b/.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, diff --git a/src/Monolog/ErrorHandler.php b/src/Monolog/ErrorHandler.php index 1b41e7bd..4098c09c 100644 --- a/src/Monolog/ErrorHandler.php +++ b/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 diff --git a/src/Monolog/Handler/FormattableHandlerInterface.php b/src/Monolog/Handler/FormattableHandlerInterface.php index 4872ed0b..a633dece 100644 --- a/src/Monolog/Handler/FormattableHandlerInterface.php +++ b/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; diff --git a/src/Monolog/Handler/FormattableHandlerTrait.php b/src/Monolog/Handler/FormattableHandlerTrait.php index d8985c1b..500a071e 100644 --- a/src/Monolog/Handler/FormattableHandlerTrait.php +++ b/src/Monolog/Handler/FormattableHandlerTrait.php @@ -11,7 +11,6 @@ namespace Monolog\Handler; -use Monolog\Logger; use Monolog\Formatter\FormatterInterface; use Monolog\Formatter\LineFormatter; diff --git a/src/Monolog/Handler/Handler.php b/src/Monolog/Handler/Handler.php index 3af01fa8..1af68b66 100644 --- a/src/Monolog/Handler/Handler.php +++ b/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 * diff --git a/src/Monolog/Handler/ProcessableHandlerInterface.php b/src/Monolog/Handler/ProcessableHandlerInterface.php index 5eaa6a25..3943967e 100644 --- a/src/Monolog/Handler/ProcessableHandlerInterface.php +++ b/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; } diff --git a/src/Monolog/Handler/ProcessableHandlerTrait.php b/src/Monolog/Handler/ProcessableHandlerTrait.php index 1b6e2a02..974f1af3 100644 --- a/src/Monolog/Handler/ProcessableHandlerTrait.php +++ b/src/Monolog/Handler/ProcessableHandlerTrait.php @@ -11,8 +11,6 @@ namespace Monolog\Handler; -use Monolog\Logger; - /** * Helper trait for implementing ProcessableInterface * diff --git a/src/Monolog/Logger.php b/src/Monolog/Logger.php index 69aa0367..5330f95d 100644 --- a/src/Monolog/Logger.php +++ b/src/Monolog/Logger.php @@ -1,4 +1,14 @@ + * + * 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; diff --git a/tests/Monolog/Handler/AbstractHandlerTest.php b/tests/Monolog/Handler/AbstractHandlerTest.php index 17b7eef0..9c3cc3a2 100644 --- a/tests/Monolog/Handler/AbstractHandlerTest.php +++ b/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 {