@@ -46,8 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | namespace Platine\Logger; |
| 48 | 48 | |
| 49 | -class LogLevel |
|
| 50 | -{ |
|
| 49 | +class LogLevel { |
|
| 51 | 50 | |
| 52 | 51 | public const EMERGENCY = 'emergency'; |
| 53 | 52 | public const ALERT = 'alert'; |
@@ -46,8 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | namespace Platine\Logger; |
| 48 | 48 | |
| 49 | -interface LoggerInterface |
|
| 50 | -{ |
|
| 49 | +interface LoggerInterface { |
|
| 51 | 50 | |
| 52 | 51 | /** |
| 53 | 52 | * System is unusable. |
@@ -46,8 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | namespace Platine\Logger; |
| 48 | 48 | |
| 49 | -interface LoggerHandlerInterface |
|
| 50 | -{ |
|
| 49 | +interface LoggerHandlerInterface { |
|
| 51 | 50 | /** |
| 52 | 51 | * Logs with an arbitrary level. |
| 53 | 52 | * |
@@ -46,8 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | namespace Platine\Logger; |
| 48 | 48 | |
| 49 | -class NullHandler extends AbstractLoggerHandler |
|
| 50 | -{ |
|
| 49 | +class NullHandler extends AbstractLoggerHandler { |
|
| 51 | 50 | |
| 52 | 51 | /** |
| 53 | 52 | * {@inheritdoc} |
@@ -50,8 +50,7 @@ |
||
| 50 | 50 | use RuntimeException; |
| 51 | 51 | use Throwable; |
| 52 | 52 | |
| 53 | -class FileHandler extends AbstractLoggerHandler |
|
| 54 | -{ |
|
| 53 | +class FileHandler extends AbstractLoggerHandler { |
|
| 55 | 54 | |
| 56 | 55 | /** |
| 57 | 56 | * The log directory path |
@@ -59,10 +59,10 @@ |
||
| 59 | 59 | */ |
| 60 | 60 | protected array $config = []; |
| 61 | 61 | |
| 62 | - /** |
|
| 63 | - * Channel used to identify each log message |
|
| 64 | - * @var string |
|
| 65 | - */ |
|
| 62 | + /** |
|
| 63 | + * Channel used to identify each log message |
|
| 64 | + * @var string |
|
| 65 | + */ |
|
| 66 | 66 | protected string $channel = 'MAIN'; |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -51,8 +51,7 @@ discard block |
||
| 51 | 51 | use DateTimeInterface; |
| 52 | 52 | use Throwable; |
| 53 | 53 | |
| 54 | -abstract class AbstractLoggerHandler implements LoggerHandlerInterface |
|
| 55 | -{ |
|
| 54 | +abstract class AbstractLoggerHandler implements LoggerHandlerInterface { |
|
| 56 | 55 | /** |
| 57 | 56 | * All The handler configuration |
| 58 | 57 | * @var array<string, mixed> |
@@ -82,8 +81,7 @@ discard block |
||
| 82 | 81 | * |
| 83 | 82 | * @param array<string, mixed> $config |
| 84 | 83 | */ |
| 85 | - public function __construct(array $config = []) |
|
| 86 | - { |
|
| 84 | + public function __construct(array $config = []) { |
|
| 87 | 85 | $this->config = $config; |
| 88 | 86 | |
| 89 | 87 | if (isset($config['channel'])) { |
@@ -48,8 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | use Exception; |
| 50 | 50 | |
| 51 | -class Logger implements LoggerInterface |
|
| 52 | -{ |
|
| 51 | +class Logger implements LoggerInterface { |
|
| 53 | 52 | |
| 54 | 53 | /** |
| 55 | 54 | * Special minimum log level which will not log any log levels. |