@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $this->inputChannel = $inputChannel; |
| 78 | 78 | if ($this->inputChannel instanceof \PEIP\INF\Channel\SubscribableChannel) { |
| 79 | 79 | $this->inputChannel->subscribe($this); |
| 80 | - }else { |
|
| 80 | + } else { |
|
| 81 | 81 | $this->unwrapEvents = true; |
| 82 | 82 | $this->inputChannel->connect('postSend', $this); |
| 83 | 83 | } |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | foreach ($listeners as $listener) { |
| 212 | 212 | if ($listener instanceof \PEIP\INF\Handler\Handler) { |
| 213 | 213 | $listener->handle($subject); |
| 214 | - }elseif (is_callable($listener)) { |
|
| 214 | + } elseif (is_callable($listener)) { |
|
| 215 | 215 | call_user_func($listener, $subject); |
| 216 | 216 | } |
| 217 | 217 | } |
@@ -69,10 +69,10 @@ |
||
| 69 | 69 | ), |
| 70 | 70 | $object |
| 71 | 71 | ); |
| 72 | - }else {
|
|
| 72 | + } else {
|
|
| 73 | 73 | throw new \InvalidArgumentException('instance of \PEIP\INF\Event\Event must contain subject');
|
| 74 | 74 | } |
| 75 | - }else {
|
|
| 75 | + } else {
|
|
| 76 | 76 | throw new \InvalidArgumentException('object must be instance of \PEIP\INF\Event\Event');
|
| 77 | 77 | } |
| 78 | 78 | } //put your code here |