mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
docs/internals-ja/core-code-style.md - updated [ci skip]
This commit is contained in:
@ -250,11 +250,11 @@ $config = [
|
||||
```php
|
||||
if ($event === null) {
|
||||
return new Event();
|
||||
} elseif ($event instanceof CoolEvent) {
|
||||
return $event->instance();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
if ($event instanceof CoolEvent) {
|
||||
return $event->instance();
|
||||
}
|
||||
return null;
|
||||
|
||||
// 下記は許容されません:
|
||||
if (!$model && null === $event)
|
||||
|
Reference in New Issue
Block a user