@@ -42,13 +42,13 @@ |
||
| 42 | 42 | { |
| 43 | 43 | switch (gettype($value)) { |
| 44 | 44 | case 'object': |
| 45 | - return 'object(' . $value::class . ')'; |
|
| 45 | + return 'object('.$value::class.')'; |
|
| 46 | 46 | |
| 47 | 47 | case 'array': |
| 48 | 48 | return '*array*'; |
| 49 | 49 | |
| 50 | 50 | case 'resource': |
| 51 | - return 'resource(' . get_resource_type($value) . ')'; |
|
| 51 | + return 'resource('.get_resource_type($value).')'; |
|
| 52 | 52 | |
| 53 | 53 | default: |
| 54 | 54 | return $value; |
@@ -22,19 +22,19 @@ |
||
| 22 | 22 | |
| 23 | 23 | public function logCommandReceived(LoggerInterface $logger, object $command): void |
| 24 | 24 | { |
| 25 | - $logger->log($this->commandReceivedLevel, 'Command received: ' . $command::class, []); |
|
| 25 | + $logger->log($this->commandReceivedLevel, 'Command received: '.$command::class, []); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | public function logCommandSucceeded(LoggerInterface $logger, object $command, mixed $returnValue): void |
| 29 | 29 | { |
| 30 | - $logger->log($this->commandSucceededLevel, 'Command succeeded: ' . $command::class, []); |
|
| 30 | + $logger->log($this->commandSucceededLevel, 'Command succeeded: '.$command::class, []); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function logCommandFailed(LoggerInterface $logger, object $command, Throwable $e): void |
| 34 | 34 | { |
| 35 | 35 | $logger->log( |
| 36 | 36 | $this->commandFailedLevel, |
| 37 | - 'Command failed: ' . $command::class, |
|
| 37 | + 'Command failed: '.$command::class, |
|
| 38 | 38 | ['exception' => $e], |
| 39 | 39 | ); |
| 40 | 40 | } |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | private PropertyNormalizer $normalizer; |
| 19 | 19 | |
| 20 | 20 | public function __construct( |
| 21 | - PropertyNormalizer|null $normalizer = null, |
|
| 21 | + PropertyNormalizer | null $normalizer = null, |
|
| 22 | 22 | private string $commandReceivedLevel = LogLevel::DEBUG, |
| 23 | 23 | private string $commandSucceededLevel = LogLevel::DEBUG, |
| 24 | 24 | private string $commandFailedLevel = LogLevel::ERROR, |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | { |
| 31 | 31 | $logger->log( |
| 32 | 32 | $this->commandReceivedLevel, |
| 33 | - 'Command received: ' . $command::class, |
|
| 33 | + 'Command received: '.$command::class, |
|
| 34 | 34 | ['command' => $this->normalizer->normalize($command)], |
| 35 | 35 | ); |
| 36 | 36 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | { |
| 40 | 40 | $logger->log( |
| 41 | 41 | $this->commandSucceededLevel, |
| 42 | - 'Command succeeded: ' . $command::class, |
|
| 42 | + 'Command succeeded: '.$command::class, |
|
| 43 | 43 | [ |
| 44 | 44 | 'command' => $this->normalizer->normalize($command), |
| 45 | 45 | ], |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $logger->log( |
| 52 | 52 | $this->commandFailedLevel, |
| 53 | - 'Command failed: ' . $command::class, |
|
| 53 | + 'Command failed: '.$command::class, |
|
| 54 | 54 | ['exception' => $e], |
| 55 | 55 | ); |
| 56 | 56 | } |