Passed
Push — master ( a96acf...fc8fa2 )
by Shiyu
01:55
created
src/Configure.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $sync(debug() ? LogLevel::DEBUG : LogLevel::INFO);
67 67
 
68
-        $this->watched[] = $this->cfg->overrides(static function (string $level) use ($sync) {
68
+        $this->watched[] = $this->cfg->overrides(static function(string $level) use ($sync) {
69 69
             debug() || $sync($level);
70
-        }, 'log.level', $scene . '.log.level');
70
+        }, 'log.level', $scene.'.log.level');
71 71
     }
72 72
 
73 73
     /**
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $sync($this->getFormatter('text'));
80 80
 
81
-        $this->watched[] = $this->cfg->overrides(function (string $type) use ($sync) {
81
+        $this->watched[] = $this->cfg->overrides(function(string $type) use ($sync) {
82 82
             debug() || $sync($this->getFormatter($type));
83
-        }, 'log.format', $scene . '.log.format');
83
+        }, 'log.format', $scene.'.log.format');
84 84
     }
85 85
 
86 86
     /**
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $sync($this->getOutputter('stdout://'));
93 93
 
94
-        $this->watched[] = $this->cfg->overrides(function (string $dsn) use ($sync) {
94
+        $this->watched[] = $this->cfg->overrides(function(string $dsn) use ($sync) {
95 95
             debug() || $sync($this->getOutputter($dsn));
96
-        }, 'log.addr', $scene . '.log.addr');
96
+        }, 'log.addr', $scene.'.log.addr');
97 97
     }
98 98
 
99 99
     /**
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function syncReplicator(string $scene, Closure $sync) : void
104 104
     {
105
-        $this->watched[] = $this->cfg->overrides(function (string $dsn = null) use ($sync) {
105
+        $this->watched[] = $this->cfg->overrides(function(string $dsn = null) use ($sync) {
106 106
             debug() || $sync($this->getReplicator($dsn));
107
-        }, 'log.replica', $scene . '.log.replica');
107
+        }, 'log.replica', $scene.'.log.replica');
108 108
     }
109 109
 
110 110
     /**
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                 if ($this->cmg) {
144 144
                     return $this->cmg->hosting(
145 145
                         new Address($parsed['host'], $parsed['port'] ?? 80),
146
-                        static function (Address $address) {
146
+                        static function(Address $address) {
147 147
                             return new TCP($address);
148 148
                         }
149 149
                     );
Please login to merge, or discard this patch.