Completed
Push — master ( 334b0e...85a967 )
by Martin
09:50 queued 04:53
created
src/Formatter/FormatterInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
  * @package Yep\WorkflowLogger\Formatter
11 11
  * @author  Martin Zeman (Zemistr) <[email protected]>
12 12
  */
13
-interface FormatterInterface
14
-{
13
+interface FormatterInterface {
15 14
     public function format(Record $record);
16 15
 }
Please login to merge, or discard this patch.
src/Formatter/StandardFormatter.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
  * @package Yep\WorkflowLogger\Formatter
12 12
  * @author  Martin Zeman (Zemistr) <[email protected]>
13 13
  */
14
-class StandardFormatter implements FormatterInterface
15
-{
14
+class StandardFormatter implements FormatterInterface {
16 15
     const FORMAT = "[%datetime%] %level%: %message%\n%contextPlaceholder%";
17 16
     const CONTEXT_FORMAT = "Context:\n%context%\n";
18 17
     const DATETIME_FORMAT = 'Y-m-d H:i:s.u';
@@ -22,13 +21,11 @@  discard block
 block discarded – undo
22 21
      */
23 22
     protected $dumper;
24 23
 
25
-    public function __construct(DumperInterface $dumper)
26
-    {
24
+    public function __construct(DumperInterface $dumper) {
27 25
         $this->dumper = $dumper;
28 26
     }
29 27
 
30
-    public function format(Record $record)
31
-    {
28
+    public function format(Record $record) {
32 29
         $contextString = '';
33 30
 
34 31
         if ($context = $record->getContext()) {
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
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
  * @package Yep\WorkflowLogger
9 9
  * @author  Martin Zeman (Zemistr) <[email protected]>
10 10
  */
11
-interface LoggerInterface extends \Psr\Log\LoggerInterface
12
-{
11
+interface LoggerInterface extends \Psr\Log\LoggerInterface {
13 12
     /**
14 13
      * @param string $name
15 14
      * @return Workflow
Please login to merge, or discard this patch.
src/Record.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@  discard block
 block discarded – undo
8 8
  * @package Yep\WorkflowLogger
9 9
  * @author  Martin Zeman (Zemistr) <[email protected]>
10 10
  */
11
-class Record
12
-{
11
+class Record {
13 12
     /**
14 13
      * @var array
15 14
      */
@@ -53,32 +52,28 @@  discard block
 block discarded – undo
53 52
     /**
54 53
      * @return \DateTime
55 54
      */
56
-    public function getDatetime()
57
-    {
55
+    public function getDatetime() {
58 56
         return $this->datetime;
59 57
     }
60 58
 
61 59
     /**
62 60
      * @return string
63 61
      */
64
-    public function getMessage()
65
-    {
62
+    public function getMessage() {
66 63
         return $this->message;
67 64
     }
68 65
 
69 66
     /**
70 67
      * @return string
71 68
      */
72
-    public function getLevel()
73
-    {
69
+    public function getLevel() {
74 70
         return $this->level;
75 71
     }
76 72
 
77 73
     /**
78 74
      * @return array
79 75
      */
80
-    public function getContext()
81
-    {
76
+    public function getContext() {
82 77
         return $this->context;
83 78
     }
84 79
 }
Please login to merge, or discard this patch.
src/ContextDumper/DumperInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  * @package Yep\WorkflowLogger\ContextDumper
9 9
  * @author  Martin Zeman (Zemistr) <[email protected]>
10 10
  */
11
-interface DumperInterface
12
-{
11
+interface DumperInterface {
13 12
     public function dump(array $context);
14 13
 }
Please login to merge, or discard this patch.
src/ContextDumper/SymfonyVarDumper.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@  discard block
 block discarded – undo
11 11
  * @package Yep\WorkflowLogger\ContextDumper
12 12
  * @author  Martin Zeman (Zemistr) <[email protected]>
13 13
  */
14
-class SymfonyVarDumper implements DumperInterface
15
-{
14
+class SymfonyVarDumper implements DumperInterface {
16 15
     /**
17 16
      * @var VarCloner
18 17
      */
@@ -23,14 +22,12 @@  discard block
 block discarded – undo
23 22
      */
24 23
     protected $dumper;
25 24
 
26
-    public function __construct($flags = CliDumper::DUMP_LIGHT_ARRAY)
27
-    {
25
+    public function __construct($flags = CliDumper::DUMP_LIGHT_ARRAY) {
28 26
         $this->cloner = new VarCloner();
29 27
         $this->dumper = new CliDumper(null, null, $flags);
30 28
     }
31 29
 
32
-    public function dump(array $context)
33
-    {
30
+    public function dump(array $context) {
34 31
         return $this->dumper->dump($this->cloner->cloneVar($context), true);
35 32
     }
36 33
 }
Please login to merge, or discard this patch.
src/ContextDumper/PrintRDumper.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,8 @@
 block discarded – undo
8 8
  * @package Yep\WorkflowLogger\ContextDumper
9 9
  * @author  Martin Zeman (Zemistr) <[email protected]>
10 10
  */
11
-class PrintRDumper implements DumperInterface
12
-{
13
-    public function dump(array $context)
14
-    {
11
+class PrintRDumper implements DumperInterface {
12
+    public function dump(array $context) {
15 13
         return print_r($context, true);
16 14
     }
17 15
 }
Please login to merge, or discard this patch.
src/ContextDumper/TracyDumper.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
  * @package Yep\WorkflowLogger\ContextDumper
11 11
  * @author  Martin Zeman (Zemistr) <[email protected]>
12 12
  */
13
-class TracyDumper implements DumperInterface
14
-{
13
+class TracyDumper implements DumperInterface {
15 14
     /**
16 15
      * @var array
17 16
      */
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
         $this->options = $options;
24 23
     }
25 24
 
26
-    public function dump(array $context)
27
-    {
25
+    public function dump(array $context) {
28 26
         return Dumper::toText($context, $this->options);
29 27
     }
30 28
 }
Please login to merge, or discard this patch.
src/Logger.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
  * @package Yep\WorkflowLogger
11 11
  * @author  Martin Zeman (Zemistr) <[email protected]>
12 12
  */
13
-class Logger extends \Monolog\Logger implements LoggerInterface
14
-{
13
+class Logger extends \Monolog\Logger implements LoggerInterface {
15 14
     /**
16 15
      * Detailed workflow debug information
17 16
      */
@@ -53,8 +52,7 @@  discard block
 block discarded – undo
53 52
     /**
54 53
      * @return \DateTimeZone
55 54
      */
56
-    protected function timezoneFactory()
57
-    {
55
+    protected function timezoneFactory() {
58 56
         if (static::$timezone) {
59 57
             return static::$timezone;
60 58
         }
@@ -68,8 +66,7 @@  discard block
 block discarded – undo
68 66
      * @param string $name
69 67
      * @return Workflow
70 68
      */
71
-    public function workflow($name)
72
-    {
69
+    public function workflow($name) {
73 70
         return new Workflow(
74 71
           $this,
75 72
           $this->workflowFormatter,
Please login to merge, or discard this patch.