@@ -108,7 +108,7 @@ |
||
108 | 108 | //if(\PEIP\Util\Test::assertMessage($message)){ |
109 | 109 | if ($this->getOutputChannel()) { |
110 | 110 | $this->getOutputChannel()->send($message); |
111 | - }else { |
|
111 | + } else { |
|
112 | 112 | $this->doSend($message); |
113 | 113 | } |
114 | 114 | //} |
@@ -34,7 +34,7 @@ |
||
34 | 34 | public function setInputChannel(\PEIP\INF\Channel\Channel $inputChannel) { |
35 | 35 | if (isset($this->eventName)) { |
36 | 36 | $this->connectChannel($inputChannel); |
37 | - }else { |
|
37 | + } else { |
|
38 | 38 | $this->inputChannel = $inputChannel; |
39 | 39 | } |
40 | 40 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | protected static function doNotifyOne($listener, $subject) { |
43 | 43 | if (is_callable($listener)) { |
44 | 44 | $res = call_user_func($listener, $subject); |
45 | - }else { |
|
45 | + } else { |
|
46 | 46 | $res = $listener->handle($subject); |
47 | 47 | } |
48 | 48 | return $res; |
@@ -60,7 +60,7 @@ |
||
60 | 60 | $res = NULL; |
61 | 61 | if (is_callable($this->serviceCallable)) { |
62 | 62 | $res = call_user_func($this->serviceCallable, $message->getContent()); |
63 | - }else { |
|
63 | + } else { |
|
64 | 64 | if (is_object($this->serviceCallable) && method_exists($this->serviceCallable, 'handle')) { |
65 | 65 | $res = $this->serviceCallable->handle($message->getContent()); |
66 | 66 | } |
@@ -48,11 +48,11 @@ |
||
48 | 48 | $message = NULL; |
49 | 49 | if ($timeout == 0) { |
50 | 50 | $message = $this->getMessage(); |
51 | - }elseif ($timeout < 0) { |
|
51 | + } elseif ($timeout < 0) { |
|
52 | 52 | while (!$message = $this->getMessage()) { |
53 | 53 | |
54 | 54 | } |
55 | - }else { |
|
55 | + } else { |
|
56 | 56 | $time = time() + $timeout; |
57 | 57 | while (($time > time()) && !$message = $this->getMessage()) { |
58 | 58 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $store = $this->factory->build(); |
51 | 51 | if ($store instanceof \PEIP\INF\Data\ParameterHolder) { |
52 | 52 | $this->stores[$namespace] = $store; |
53 | - }else { |
|
53 | + } else { |
|
54 | 54 | throw new \Exception('Could not build Instance of \PEIP\INF\Data\ParameterHolder from factory.'); |
55 | 55 | } |
56 | 56 | } |
@@ -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 | } |
@@ -30,8 +30,7 @@ discard block |
||
30 | 30 | throw new \Exception('loading XML failed'); |
31 | 31 | } |
32 | 32 | |
33 | - } |
|
34 | - catch (\Exception $e) { |
|
33 | + } catch (\Exception $e) { |
|
35 | 34 | return false; |
36 | 35 | } |
37 | 36 | |
@@ -65,7 +64,7 @@ discard block |
||
65 | 64 | ) |
66 | 65 | ); |
67 | 66 | } |
68 | - }else { |
|
67 | + } else { |
|
69 | 68 | $array[$name] = array(); |
70 | 69 | } |
71 | 70 | $array[$name][] = $res; |
@@ -79,7 +79,7 @@ |
||
79 | 79 | protected function doSend(\PEIP\INF\Message\Message $message) { |
80 | 80 | if ($this->capacity < 1 || $this->getMessageCount() <= $this->getCapacity()) { |
81 | 81 | $this->queue->enqueque($message); |
82 | - }else { |
|
82 | + } else { |
|
83 | 83 | throw new \Exception('Not implemented yet.'); |
84 | 84 | } |
85 | 85 | } |