Completed
Push — master ( 85a967...e71445 )
by Martin
03:32
created
src/Logger.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @var array $levels Logging levels
29 29
      */
30 30
     protected static $levels = [
31
-      self::WORKFLOW => 'WORKFLOW',
31
+        self::WORKFLOW => 'WORKFLOW',
32 32
     ];
33 33
 
34 34
     /**
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
      * @param array              $processors
41 41
      */
42 42
     public function __construct(
43
-      $name,
44
-      FormatterInterface $formatter,
45
-      $handlers = [],
46
-      $processors = []
43
+        $name,
44
+        FormatterInterface $formatter,
45
+        $handlers = [],
46
+        $processors = []
47 47
     ) {
48 48
         parent::__construct($name, $handlers, $processors);
49 49
         self::$levels += parent::$levels;
@@ -71,11 +71,11 @@  discard block
 block discarded – undo
71 71
     public function workflow($name)
72 72
     {
73 73
         return new Workflow(
74
-          $this,
75
-          $this->workflowFormatter,
76
-          $this->timezoneFactory(),
77
-          $name,
78
-          static::WORKFLOW
74
+            $this,
75
+            $this->workflowFormatter,
76
+            $this->timezoneFactory(),
77
+            $name,
78
+            static::WORKFLOW
79 79
         );
80 80
     }
81 81
 }
Please login to merge, or discard this patch.
src/ContextDumper/TracyDumper.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     protected $options;
19 19
 
20 20
     public function __construct(
21
-      array $options = [Dumper::DEPTH => 8, Dumper::TRUNCATE => 512]
21
+        array $options = [Dumper::DEPTH => 8, Dumper::TRUNCATE => 512]
22 22
     ) {
23 23
         $this->options = $options;
24 24
     }
Please login to merge, or discard this patch.
src/Workflow.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
      * @var array|string[] $levels Logging levels
30 30
      */
31 31
     protected static $levels = [
32
-      self::DEBUG => 'DEBUG',
33
-      self::INFO => 'INFO',
34
-      self::NOTICE => 'NOTICE',
35
-      self::WARNING => 'WARNING',
36
-      self::ERROR => 'ERROR',
37
-      self::CRITICAL => 'CRITICAL',
38
-      self::ALERT => 'ALERT',
39
-      self::EMERGENCY => 'EMERGENCY',
32
+        self::DEBUG => 'DEBUG',
33
+        self::INFO => 'INFO',
34
+        self::NOTICE => 'NOTICE',
35
+        self::WARNING => 'WARNING',
36
+        self::ERROR => 'ERROR',
37
+        self::CRITICAL => 'CRITICAL',
38
+        self::ALERT => 'ALERT',
39
+        self::EMERGENCY => 'EMERGENCY',
40 40
     ];
41 41
 
42 42
     /**
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
      * @param int|string         $level     Workflow level code
80 80
      */
81 81
     public function __construct(
82
-      PsrLoggerInterface $logger,
83
-      FormatterInterface $formatter,
84
-      \DateTimeZone $timezone,
85
-      $name,
86
-      $level
82
+        PsrLoggerInterface $logger,
83
+        FormatterInterface $formatter,
84
+        \DateTimeZone $timezone,
85
+        $name,
86
+        $level
87 87
     ) {
88 88
         $this->logger = $logger;
89 89
         $this->formatter = $formatter;
@@ -166,10 +166,10 @@  discard block
 block discarded – undo
166 166
     public function log($level, $message, array $context = [])
167 167
     {
168 168
         $this->records[] = new Record(
169
-          $this->getCurrentDateTime(),
170
-          $message,
171
-          $this->getLevelName($level),
172
-          $context
169
+            $this->getCurrentDateTime(),
170
+            $message,
171
+            $this->getLevelName($level),
172
+            $context
173 173
         );
174 174
     }
175 175
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         $this->logger = $logger;
89 89
         $this->formatter = $formatter;
90 90
         $this->timezone = $timezone;
91
-        $this->name = (string)$name;
91
+        $this->name = (string) $name;
92 92
         $this->level = $level;
93 93
     }
94 94
 
Please login to merge, or discard this patch.
src/Formatter/StandardFormatter.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,23 +33,23 @@
 block discarded – undo
33 33
 
34 34
         if ($context = $record->getContext()) {
35 35
             $contextString = strtr(
36
-              self::CONTEXT_FORMAT,
37
-              [
36
+                self::CONTEXT_FORMAT,
37
+                [
38 38
                 '%context%' => $this->dumper->dump($context),
39
-              ]
39
+                ]
40 40
             );
41 41
         }
42 42
 
43 43
         $string = strtr(
44
-          self::FORMAT,
45
-          [
44
+            self::FORMAT,
45
+            [
46 46
             '%datetime%' => $record->getDatetime()->format(
47
-              static::DATETIME_FORMAT
47
+                static::DATETIME_FORMAT
48 48
             ),
49 49
             '%level%' => $record->getLevel(),
50 50
             '%message%' => $record->getMessage(),
51 51
             '%contextPlaceholder%' => $contextString,
52
-          ]
52
+            ]
53 53
         );
54 54
 
55 55
         return $string;
Please login to merge, or discard this patch.
src/Exception/LevelIsNotDefinedException.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
     public static function create($level, array $levels)
21 21
     {
22 22
         $message = sprintf(
23
-          'Level "%s" is not defined, use one of: "%s"',
24
-          $level,
25
-          implode('", "', array_keys($levels))
23
+            'Level "%s" is not defined, use one of: "%s"',
24
+            $level,
25
+            implode('", "', array_keys($levels))
26 26
         );
27 27
 
28 28
         return new static($message);
Please login to merge, or discard this patch.
src/Record.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
      * @param array     $context
40 40
      */
41 41
     public function __construct(
42
-      \DateTime $datetime,
43
-      $message,
44
-      $level,
45
-      array $context
42
+        \DateTime $datetime,
43
+        $message,
44
+        $level,
45
+        array $context
46 46
     ) {
47 47
         $this->datetime = $datetime;
48 48
         $this->message = (string)$message;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@
 block discarded – undo
45 45
       array $context
46 46
     ) {
47 47
         $this->datetime = $datetime;
48
-        $this->message = (string)$message;
49
-        $this->level = (string)$level;
48
+        $this->message = (string) $message;
49
+        $this->level = (string) $level;
50 50
         $this->context = $context;
51 51
     }
52 52
 
Please login to merge, or discard this patch.