Passed
Push — master ( d47bdf...6296de )
by Kirill
03:33
created
src/Logger/src/LogFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             $context
56 56
         );
57 57
 
58
-        foreach ($this->listenedRegistry->getListeners() as $listener) {
58
+        foreach ($this->listenedRegistry->getListeners() as $listener){
59 59
             call_user_func($listener, $e);
60 60
         }
61 61
     }
Please login to merge, or discard this patch.
src/Logger/src/ListenerRegistry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function addListener(callable $listener): void
26 26
     {
27
-        if (!array_search($listener, $this->listeners, true)) {
27
+        if (!array_search($listener, $this->listeners, true)){
28 28
             $this->listeners[] = $listener;
29 29
         }
30 30
     }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function removeListener(callable $listener): void
36 36
     {
37 37
         $key = array_search($listener, $this->listeners, true);
38
-        if ($key !== null) {
38
+        if ($key !== null){
39 39
             unset($this->listeners[$key]);
40 40
         }
41 41
     }
Please login to merge, or discard this patch.
src/Logger/src/Event/LogEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         string $level,
42 42
         string $message,
43 43
         array $context = []
44
-    ) {
44
+    ){
45 45
         $this->time = $time;
46 46
         $this->channel = $channel;
47 47
         $this->level = $level;
Please login to merge, or discard this patch.
src/Logger/src/Traits/LoggerTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
      */
43 43
     protected function getLogger(string $channel = null): LoggerInterface
44 44
     {
45
-        if ($channel !== null) {
45
+        if ($channel !== null){
46 46
             return $this->allocateLogger($channel);
47 47
         }
48 48
 
49
-        if ($this->logger !== null) {
49
+        if ($this->logger !== null){
50 50
             return $this->logger;
51 51
         }
52 52
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     private function allocateLogger(string $channel): LoggerInterface
64 64
     {
65 65
         $container = ContainerScope::getContainer();
66
-        if (empty($container) || !$container->has(LogsInterface::class)) {
66
+        if (empty($container) || !$container->has(LogsInterface::class)){
67 67
             return $this->logger ?? new NullLogger();
68 68
         }
69 69
 
Please login to merge, or discard this patch.