Completed
Push — 6.0 ( f9d0f5...4775e2 )
by liu
05:41
created
src/think/Event.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 // +----------------------------------------------------------------------
9 9
 // | Author: liu21st <[email protected]>
10 10
 // +----------------------------------------------------------------------
11
-declare (strict_types = 1);
11
+declare(strict_types=1);
12 12
 
13 13
 namespace think;
14 14
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         if (!empty($events)) {
220 220
             foreach ($events as $event) {
221 221
                 $name   = false !== strpos($event, '\\') ? substr(strrchr($event, '\\'), 1) : $event;
222
-                $method = 'on' . $name;
222
+                $method = 'on'.$name;
223 223
 
224 224
                 if (method_exists($observer, $method)) {
225 225
                     $this->listen($event, [$observer, $method]);
Please login to merge, or discard this patch.