Passed
Push — develop ( 88c9e5...0e28c5 )
by nguereza
01:41
created
src/Logger.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
  * Class Logger
55 55
  * @package Platine\Logger
56 56
  */
57
-class Logger implements LoggerInterface
58
-{
57
+class Logger implements LoggerInterface {
59 58
     /**
60 59
      * Special minimum log level which will not log any log levels.
61 60
      */
Please login to merge, or discard this patch.
src/LoggerFormatterInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class LoggerFormatterInterface
51 51
  * @package Platine\Logger
52 52
  */
53
-interface LoggerFormatterInterface
54
-{
53
+interface LoggerFormatterInterface {
55 54
     /**
56 55
      * Format the log line.
57 56
      *
Please login to merge, or discard this patch.
src/Configuration.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
  * Class Configuration
53 53
  * @package Platine\Logger
54 54
  */
55
-class Configuration extends AbstractConfiguration
56
-{
55
+class Configuration extends AbstractConfiguration {
57 56
     /**
58 57
      * {@inheritdoc}
59 58
      */
Please login to merge, or discard this patch.
src/LoggerHandlerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class LoggerHandlerInterface
51 51
  * @package Platine\Logger
52 52
  */
53
-interface LoggerHandlerInterface
54
-{
53
+interface LoggerHandlerInterface {
55 54
     /**
56 55
      * Create new instance
57 56
      * @param Configuration|null $config
Please login to merge, or discard this patch.
src/Handler/NullHandler.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class NullHandler
51 51
  * @package Platine\Logger\Handler
52 52
  */
53
-class NullHandler extends AbstractLoggerHandler
54
-{
53
+class NullHandler extends AbstractLoggerHandler {
55 54
     /**
56 55
      * {@inheritdoc}
57 56
      */
Please login to merge, or discard this patch.
src/Handler/FileHandler.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@
 block discarded – undo
86 86
         $this->checkLogDir();
87 87
 
88 88
         $logFilePath = $this->path .
89
-                       $this->config->get('handlers.file.prefix')
90
-                       . date('Y-m-d') . '.log';
89
+                        $this->config->get('handlers.file.prefix')
90
+                        . date('Y-m-d') . '.log';
91 91
 
92 92
         try {
93 93
             $handler = fopen($logFilePath, 'a+');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
56 56
  * Class FileHandler
57 57
  * @package Platine\Logger\Handler
58 58
  */
59
-class FileHandler extends AbstractLoggerHandler
60
-{
59
+class FileHandler extends AbstractLoggerHandler {
61 60
     /**
62 61
      * The log directory path
63 62
      * @var string
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
      * Create new File Handler
69 68
      * {@inheritdoc}
70 69
      */
71
-    public function __construct(?Configuration $config = null)
72
-    {
70
+    public function __construct(?Configuration $config = null) {
73 71
         parent::__construct($config);
74 72
         $this->path = Path::normalizePathDS(
75 73
             $this->config->get('handlers.file.path'),
Please login to merge, or discard this patch.
src/Handler/AbstractLoggerHandler.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  * Class AbstractLoggerHandler
54 54
  * @package Platine\Logger\Handler
55 55
  */
56
-abstract class AbstractLoggerHandler implements LoggerHandlerInterface
57
-{
56
+abstract class AbstractLoggerHandler implements LoggerHandlerInterface {
58 57
     /**
59 58
      * The configuration to use
60 59
      * @var Configuration
@@ -64,8 +63,7 @@  discard block
 block discarded – undo
64 63
     /**
65 64
      * {@inheritdoc}
66 65
      */
67
-    public function __construct(?Configuration $config = null)
68
-    {
66
+    public function __construct(?Configuration $config = null) {
69 67
         $this->config = $config ?? new Configuration([]);
70 68
     }
71 69
 }
Please login to merge, or discard this patch.
src/LoggerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@
 block discarded – undo
46 46
 
47 47
 namespace Platine\Logger;
48 48
 
49
-interface LoggerInterface
50
-{
49
+interface LoggerInterface {
51 50
     /**
52 51
      * System is unusable.
53 52
      *
Please login to merge, or discard this patch.
src/LogLevel.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * Class LogLevel
51 51
  * @package Platine\Logger
52 52
  */
53
-class LogLevel
54
-{
53
+class LogLevel {
55 54
     public const EMERGENCY = 'emergency';
56 55
     public const ALERT = 'alert';
57 56
     public const CRITICAL = 'critical';
Please login to merge, or discard this patch.