@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $store = $this->factory->build(); |
| 55 | 55 | if ($store instanceof \PEIP\INF\Data\Store) { |
| 56 | 56 | $this->setPrivateValue($namespace, $store); |
| 57 | - } else { |
|
| 57 | + }else { |
|
| 58 | 58 | throw new \Exception('Could not build Instance of \PEIP\INF\Data\Store from factory.'); |
| 59 | 59 | } |
| 60 | 60 | } |
@@ -46,10 +46,10 @@ |
||
| 46 | 46 | if ($this->hasListeners($name, $object->getContent())) { |
| 47 | 47 | return self::doNotify($this->getListeners($name, $object->getContent()), $object); |
| 48 | 48 | } |
| 49 | - } else { |
|
| 49 | + }else { |
|
| 50 | 50 | throw new \InvalidArgumentException('instance of \PEIP\INF\Event\Event must contain subject'); |
| 51 | 51 | } |
| 52 | - } else { |
|
| 52 | + }else { |
|
| 53 | 53 | throw new \InvalidArgumentException('object must be instance of \PEIP\INF\Event\Event'); |
| 54 | 54 | } |
| 55 | 55 | } |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | $listners = $this->doGetListeners(); |
| 105 | 105 | if (!$this->hadListeners($name, $object)) { |
| 106 | 106 | $res = false; |
| 107 | - } else { |
|
| 107 | + }else { |
|
| 108 | 108 | $listners = $this->doGetListeners(); |
| 109 | 109 | $res = (boolean)count($listners[$object][$name]); |
| 110 | 110 | } |
@@ -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 |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | -} else {
|
|
| 60 | +}else {
|
|
| 61 | 61 | throw new RuntimeException('Could not get CafeGateway');
|
| 62 | 62 | } |
| 63 | 63 | |