docs/internals-ja/core-code-style.md - updated [ci skip]

This commit is contained in:
Nobuo Kihara
2015-01-24 08:11:44 +09:00
parent 560ad04e0c
commit 21402fc74d

View File

@ -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)