Commit 037ee2fd by Alexander Makarov

Merge pull request #6987 from tom--/patch-1

style guide examples should follow its own rules
parents fbb11e18 44529486
...@@ -251,11 +251,12 @@ $config = [ ...@@ -251,11 +251,12 @@ $config = [
```php ```php
if ($event === null) { if ($event === null) {
return new Event(); return new Event();
} elseif ($event instanceof CoolEvent) { }
if ($event instanceof CoolEvent) {
return $event->instance(); return $event->instance();
} else {
return null;
} }
return null;
// the following is NOT allowed: // the following is NOT allowed:
if (!$model && null === $event) 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