Commit 21402fc7 by Nobuo Kihara

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

parent 560ad04e
......@@ -250,11 +250,11 @@ $config = [
```php
if ($event === null) {
return new Event();
} elseif ($event instanceof CoolEvent) {
}
if ($event instanceof CoolEvent) {
return $event->instance();
} else {
return null;
}
return null;
// 下記は許容されません:
if (!$model && null === $event)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment