@@ -8,7 +8,7 @@ discard block |
||
| 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 | |
@@ -216,13 +216,13 @@ discard block |
||
| 216 | 216 | if ($reflect->hasProperty('eventPrefix')) { |
| 217 | 217 | $reflectProperty = $reflect->getProperty('eventPrefix'); |
| 218 | 218 | $reflectProperty->setAccessible(true); |
| 219 | - $prefix = $prefix . $reflectProperty->getValue($observer); |
|
| 219 | + $prefix = $prefix.$reflectProperty->getValue($observer); |
|
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | foreach ($methods as $method) { |
| 223 | 223 | $name = $method->getName(); |
| 224 | 224 | if (0 === strpos($name, 'on')) { |
| 225 | - $this->listen($prefix . substr($name, 2), [$observer, $name]); |
|
| 225 | + $this->listen($prefix.substr($name, 2), [$observer, $name]); |
|
| 226 | 226 | } |
| 227 | 227 | } |
| 228 | 228 | |