Completed
Push — v1.ns ( f9750b...3d0401 )
by Timo
03:19
created
src/ABS/Router/Router.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         EVENT_PRE_RESOLVE = 'pre_resolve',
35 35
         EVENT_POST_RESOLVE = 'post_resolve',
36 36
         EVENT_ERR_RESOLVE = 'err_resolve',
37
-        HEADER_CHANNEL  = 'CHANNEL',
37
+        HEADER_CHANNEL = 'CHANNEL',
38 38
         HEADER_CHANNEL_NAME = 'CHANNEL_NAME',
39 39
         HEADER_CHANNEL_RESOLVER = 'HEADER_CHANNEL_RESOLVER';
40 40
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param \PEIP\INF\Channel\Channel $inputChannel the input channel for the router 
49 49
      * @return 
50 50
      */
51
-    public function __construct(\PEIP\INF\Channel\Channel_Resolver $channelResolver, \PEIP\INF\Channel\Channel $inputChannel){
51
+    public function __construct(\PEIP\INF\Channel\Channel_Resolver $channelResolver, \PEIP\INF\Channel\Channel $inputChannel) {
52 52
         $this->channelResolver = $channelResolver;
53 53
         $this->setInputChannel($inputChannel);  
54 54
     }               
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @param \PEIP\INF\Channel\Channel_Resolver $channelResolver the channel resolver for the router
61 61
      * @return 
62 62
      */
63
-    public function setChannelResolver(\PEIP\INF\Channel\Channel_Resolver $channelResolver){
63
+    public function setChannelResolver(\PEIP\INF\Channel\Channel_Resolver $channelResolver) {
64 64
         $this->doFireEvent(self::EVENT_CHANNEL_RESOLVER_SET, array(self::HEADER_CHANNEL_RESOLVER=>$channelResolver));
65 65
         $this->channelResolver = $channelResolver;
66 66
         $this->doFireEvent(self::EVENT_CHANNEL_RESOLVER_SET, array(self::HEADER_CHANNEL_RESOLVER=>$channelResolver));
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
      * @param \PEIP\INF\Message\Message $message the message to reply with
74 74
      * @return 
75 75
      */
76
-    protected function doReply(\PEIP\INF\Message\Message $message){  
76
+    protected function doReply(\PEIP\INF\Message\Message $message) {  
77 77
         $channels = (array)$this->selectChannels($message);
78
-        foreach($channels as $channel){
78
+        foreach ($channels as $channel) {
79 79
             $this->setOutputChannel($this->resolveChannel($channel));
80 80
             $this->replyMessage($message); 
81 81
         }
@@ -90,12 +90,12 @@  discard block
 block discarded – undo
90 90
      * @param mixed $channel channel-name or instance of \PEIP\INF\Channel\Channel 
91 91
      * @return 
92 92
      */
93
-    protected function resolveChannel($channel){
93
+    protected function resolveChannel($channel) {
94 94
         $this->doFireEvent(self::EVENT_PRE_RESOLVE, array(self::HEADER_CHANNEL=>$channel));
95
-        if(!($channel instanceof \PEIP\INF\Channel\Channel)){
95
+        if (!($channel instanceof \PEIP\INF\Channel\Channel)) {
96 96
             $channelName = $channel;
97 97
             $channel = $this->channelResolver->resolveChannelName($channelName);
98
-            if(!$channel){
98
+            if (!$channel) {
99 99
                 $this->doFireEvent(self::EVENT_ERR_RESOLVE, array(self::HEADER_CHANNEL_NAME=>$channelName));
100 100
                 throw new \RuntimeException('Could not resolve Channel : '.$channelName);
101 101
             }
Please login to merge, or discard this patch.
src/Autoload/AutoloadPaths.php 2 patches
Indentation   +158 added lines, -158 removed lines patch added patch discarded remove patch
@@ -97,164 +97,164 @@
 block discarded – undo
97 97
     // please, dont�t edit these lines manually
98 98
     // use Autoload::make() instead
99 99
     public static $paths = array (
100
-  'PEIP\ABS\Aggregator\MessageBarrierHandler' => '/ABS/aggregator/PEIP\ABS\Aggregator\MessageBarrierHandler.php',
101
-  'PEIP\ABS\Router\Router' => '/ABS/router/PEIP\ABS\Router\Router.php',
102
-  'PEIP\ABS\Dispatcher\MapDispatcher' => '/ABS/dispatcher/PEIP\ABS\Dispatcher\MapDispatcher.php',
103
-  'PEIP\ABS\Dispatcher\Dispatcher' => '/ABS/dispatcher/PEIP\ABS\Dispatcher\Dispatcher.php',
104
-  'PEIP\ABS\Channel\SubscribableChannel' => '/ABS/channel/PEIP\ABS\Channel\SubscribableChannel.php',
105
-  'PEIP\ABS\Channel\PollableChannel' => '/ABS/channel/PEIP\ABS\Channel\PollableChannel.php',
106
-  'PEIP\ABS\Channel\Channel' => '/ABS/channel/PEIP\ABS\Channel\Channel.php',
107
-  'PEIP\ABS\Splitter\MessageSplitter' => '/ABS/splitter/PEIP\ABS\Splitter\MessageSplitter.php',
108
-  'PEIP\ABS\Pipe\EventPipe' => '/ABS/pipe/PEIP\ABS\Pipe\EventPipe.php',
109
-  'PEIP\ABS\Handler\MessageHandler' => '/ABS/handler/PEIP\ABS\Handler\MessageHandler.php',
110
-  'PEIP\ABS\Handler\ReplyProducingMessageHandler' => '/ABS/handler/PEIP\ABS\Handler\ReplyProducingMessageHandler.php',
111
-  'PEIP\ABS\Handler\DiscardingMessageHandler' => '/ABS/handler/PEIP\ABS\Handler\DiscardingMessageHandler.php',
112
-  'PEIP\ABS\Command\Command' => '/ABS/command/PEIP\ABS\Command\Command.php',
113
-  'PEIP\ABS\Transformer\ContentTransformer' => '/ABS/transformer/PEIP\ABS\Transformer\ContentTransformer.php',
114
-  'PEIP\ABS\Transformer\Transformer' => '/ABS/transformer/PEIP\ABS\Transformer\Transformer.php',
115
-  'PEIP\ABS\Service\ServiceActivator' => '/ABS/service/PEIP\ABS\Service\ServiceActivator.php',
116
-  'PEIP\ABS\Base\MutableContainer' => '/ABS/base/PEIP\ABS\Base\MutableContainer.php',
117
-  'PEIP\ABS\Base\Connectable' => '/ABS/base/PEIP\ABS\Base\Connectable.php',
118
-  'PEIP\ABS\Base\Container' => '/ABS/base/PEIP\ABS\Base\Container.php',
119
-  'PEIP\ABS\Request\Connection' => '/ABS/request/PEIP\ABS\Request\Connection.php',
120
-  'PEIP\ABS\Request\Request' => '/ABS/request/PEIP\ABS\Request\Request.php',
121
-  'PEIP\ABS\Context\ContextPlugin' => '/ABS/context/PEIP\ABS\Context\ContextPlugin.php',
122
-  'EventClassDispatcher' => '/dispatcher/EventClassDispatcher.php',
123
-  'ObjectMapDispatcher' => '/dispatcher/ObjectMapDispatcher.php',
124
-  'ClassDispatcher' => '/dispatcher/ClassDispatcher.php',
125
-  'ObjectEventDispatcher' => '/dispatcher/ObjectEventDispatcher.php',
126
-  'ClassEventDispatcher' => '/dispatcher/ClassEventDispatcher.php',
127
-  'MapDispatcher' => '/dispatcher/MapDispatcher.php',
128
-  'Dispatcher' => '/dispatcher/Dispatcher.php',
129
-  'IteratingDispatcher' => '/dispatcher/IteratingDispatcher.php',
130
-  'EventBuilder' => '/event/EventBuilder.php',
131
-  'Event' => '/event/Event.php',
132
-  'Observable' => '/event/Observable.php',
133
-  'DirectChannel' => '/channel/DirectChannel.php',
134
-  'PublishSubscribeChannel' => '/channel/PublishSubscribeChannel.php',
135
-  'MessageChannel' => '/channel/MessageChannel.php',
136
-  'ChannelRegistry' => '/channel/ChannelRegistry.php',
137
-  'QueueChannel' => '/channel/QueueChannel.php',
138
-  'PollableChannel' => '/channel/PollableChannel.php',
139
-  'PriorityChannel' => '/channel/PriorityChannel.php',
140
-  'ChannelAdapter' => '/channel/ChannelAdapter.php',
141
-  'XMLArrayTranslator' => '/translator/XMLArrayTranslator.php',
142
-  'SimpleFixedEventPipe' => '/pipe/SimpleFixedEventPipe.php',
143
-  'Pipe' => '/pipe/Pipe.php',
144
-  'FixedEventPipe' => '/pipe/FixedEventPipe.php',
145
-  'Event_Pipe' => '/pipe/Event_Pipe.php',
146
-  'SimpleEventPipe' => '/pipe/SimpleEventPipe.php',
147
-  'CommandPipe' => '/pipe/CommandPipe.php',
148
-  'CallableHandler' => '/handler/CallableHandler.php',
149
-  'Command' => '/command/Command.php',
150
-  'ParameterHolderCollection' => '/data/ParameterHolderCollection.php',
151
-  'ParameterCollection' => '/data/ParameterCollection.php',
152
-  'InternalStoreAbstract' => '/data/InternalStoreAbstract.php',
153
-  'StoreCollection' => '/data/StoreCollection.php',
154
-  'Store' => '/data/Store.php',
155
-  'ArrayAccess' => '/data/ArrayAccess.php',
156
-  'ParameterHolder' => '/data/ParameterHolder.php',
157
-  'ServiceContainer' => '/service/ServiceContainer.php',
158
-  'SplittingServiceActivator' => '/service/SplittingServiceActivator.php',
159
-  'ServiceActivator' => '/service/ServiceActivator.php',
160
-  'ServiceContainer_Builder' => '/service/ServiceContainer_Builder.php',
161
-  'HeaderServiceActivator' => '/service/HeaderServiceActivator.php',
162
-  'ServiceProvider' => '/service/ServiceProvider.php',
163
-  'StringServiceActivator' => '/service/StringServiceActivator.php',
164
-  'ServiceFactory' => '/factory/ServiceFactory.php',
165
-  'DedicatedFactory' => '/factory/DedicatedFactory.php',
166
-  'PEIP' => '/PEIP.php',
167
-  'SimpleMessagingGateway' => '/gateway/SimpleMessagingGateway.php',
168
-  'PEIP\INF\Aggregator\CompletionStrategy' => '/INF/aggregator/PEIP\INF\Aggregator\CompletionStrategy.php',
169
-  'PEIP\INF\Aggregator\CorrelationStrategy' => '/INF/aggregator/PEIP\INF\Aggregator\CorrelationStrategy.php',
170
-  'PEIP\INF\Dispatcher\BreakableDispatcher' => '/INF/dispatcher/PEIP\INF\Dispatcher\BreakableDispatcher.php',
171
-  'PEIP\INF\Dispatcher\ObjectMapDispatcher' => '/INF/dispatcher/PEIP\INF\Dispatcher\ObjectMapDispatcher.php',
172
-  'PEIP\INF\Dispatcher\MapDispatcher' => '/INF/dispatcher/PEIP\INF\Dispatcher\MapDispatcher.php',
173
-  'PEIP\INF\Dispatcher\ListDispatcher' => '/INF/dispatcher/PEIP\INF\Dispatcher\ListDispatcher.php',
174
-  'PEIP\INF\Dispatcher\Dispatcher' => '/INF/dispatcher/PEIP\INF\Dispatcher\Dispatcher.php',
175
-  'PEIP\INF\Event\EventHandler' => '/INF/event/PEIP\INF\Event\EventHandler.php',
176
-  'PEIP\INF\Event\EventDispatcher' => '/INF/event/PEIP\INF\Event\EventDispatcher.php',
177
-  'PEIP\INF\Event\EventPublisher' => '/INF/event/PEIP\INF\Event\EventPublisher.php',
178
-  'PEIP\INF\Event\Listener' => '/INF/event/PEIP\INF\Event\Listener.php',
179
-  'PEIP\INF\Event\Event' => '/INF/event/PEIP\INF\Event\Event.php',
180
-  'PEIP\INF\Event\Observable' => '/INF/event/PEIP\INF\Event\Observable.php',
181
-  'PEIP\INF\Event\Connectable' => '/INF/event/PEIP\INF\Event\Connectable.php',
182
-  'PEIP\INF\Event\Observer' => '/INF/event/PEIP\INF\Event\Observer.php',
183
-  'PEIP\INF\Channel\ChannelResolver' => '/INF/channel/PEIP\INF\Channel\ChannelResolver.php',
184
-  'PEIP\INF\Channel\PollableChannel' => '/INF/channel/PEIP\INF\Channel\PollableChannel.php',
185
-  'PEIP\INF\Channel\Channel' => '/INF/channel/PEIP\INF\Channel\Channel.php',
186
-  'PEIP\INF\Channel\SubscribableChannel' => '/INF/channel/PEIP\INF\Channel\SubscribableChannel.php',
187
-  'PEIP\INF\Handler\Handler' => '/INF/handler/PEIP\INF\Handler\Handler.php',
188
-  'PEIP\INF\Command\Command' => '/INF/command/PEIP\INF\Command\Command.php',
189
-  'PEIP\INF\Command\ParametricCommand' => '/INF/command/PEIP\INF\Command\ParametricCommand.php',
190
-  'PEIP\INF\Transformer\Transformer' => '/INF/transformer/PEIP\INF\Transformer\Transformer.php',
191
-  'PEIP\INF\Data\StoreCollection' => '/INF/data/PEIP\INF\Data\StoreCollection.php',
192
-  'PEIP\INF\Data\ParameterHolder' => '/INF/data/PEIP\INF\Data\ParameterHolder.php',
193
-  'PEIP\INF\Data\ParameterHolder_Collection' => '/INF/data/PEIP\INF\Data\ParameterHolder_Collection.php',
194
-  'PEIP\INF\Data\Store' => '/INF/data/PEIP\INF\Data\Store.php',
195
-  'PEIP\INF\Service\ServiceContainer' => '/INF/service/PEIP\INF\Service\ServiceContainer.php',
196
-  'PEIP\INF\Service\ServiceActivator' => '/INF/service/PEIP\INF\Service\ServiceActivator.php',
197
-  'PEIP\INF\Factory\DedicatedFactory' => '/INF/factory/PEIP\INF\Factory\DedicatedFactory.php',
198
-  'PEIP\INF\Gateway\MessagingGateway' => '/INF/gateway/PEIP\INF\Gateway\MessagingGateway.php',
199
-  'PEIP\INF\Selector\MessageSelector' => '/INF/selector/PEIP\INF\Selector\MessageSelector.php',
200
-  'PEIP\INF\Base\Lifecycle' => '/INF/base/PEIP\INF\Base\Lifecycle.php',
201
-  'PEIP\INF\Base\SingletonMap' => '/INF/base/PEIP\INF\Base\SingletonMap.php',
202
-  'PEIP\INF\Base\SingletonArgs' => '/INF/base/PEIP\INF\Base\SingletonArgs.php',
203
-  'PEIP\INF\Base\Identifier' => '/INF/base/PEIP\INF\Base\Identifier.php',
204
-  'PEIP\INF\Base\MutableContainer' => '/INF/base/PEIP\INF\Base\MutableContainer.php',
205
-  'PEIP\INF\Base\Singleton' => '/INF/base/PEIP\INF\Base\Singleton.php',
206
-  'PEIP\INF\Base\Visitor' => '/INF/base/PEIP\INF\Base\Visitor.php',
207
-  'PEIP\INF\Base\SingletonMap_Array' => '/INF/base/PEIP\INF\Base\SingletonMap_Array.php',
208
-  'PEIP\INF\Base\Visitable' => '/INF/base/PEIP\INF\Base\Visitable.php',
209
-  'PEIP\INF\Base\Plugable' => '/INF/base/PEIP\INF\Base\Plugable.php',
210
-  'PEIP\INF\Base\Filter' => '/INF/base/PEIP\INF\Base\Filter.php',
211
-  'PEIP\INF\Base\Document' => '/INF/base/PEIP\INF\Base\Document.php',
212
-  'PEIP\INF\Base\Container' => '/INF/base/PEIP\INF\Base\Container.php',
213
-  'PEIP\INF\Base\Unsealer' => '/INF/base/PEIP\INF\Base\Unsealer.php',
214
-  'PEIP\INF\Base\Buildable' => '/INF/base/PEIP\INF\Base\Buildable.php',
215
-  'PEIP\INF\Base\Sealer' => '/INF/base/PEIP\INF\Base\Sealer.php',
216
-  'PEIP\INF\Request\Request' => '/INF/request/PEIP\INF\Request\Request.php',
217
-  'PEIP\INF\Request\Connection' => '/INF/request/PEIP\INF\Request\Connection.php',
218
-  'PEIP\INF\Message\MessageHandler' => '/INF/message/PEIP\INF\Message\MessageHandler.php',
219
-  'PEIP\INF\Message\MessageChannel' => '/INF/message/PEIP\INF\Message\MessageChannel.php',
220
-  'PEIP\INF\Message\HeaderEnricher' => '/INF/message/PEIP\INF\Message\HeaderEnricher.php',
221
-  'PEIP\INF\Message\Message' => '/INF/message/PEIP\INF\Message\Message.php',
222
-  'PEIP\INF\Message\Message_Sender' => '/INF/message/PEIP\INF\Message\Message_Sender.php',
223
-  'PEIP\INF\Message\Message_Builder' => '/INF/message/PEIP\INF\Message\Message_Builder.php',
224
-  'PEIP\INF\Message\PollableMessageChannel' => '/INF/message/PEIP\INF\Message\PollableMessageChannel.php',
225
-  'PEIP\INF\Message\EnvelopeMessage' => '/INF/message/PEIP\INF\Message\EnvelopeMessage.php',
226
-  'PEIP\INF\Message\StringMessage' => '/INF/message/PEIP\INF\Message\StringMessage.php',
227
-  'PEIP\INF\Message\Message_Dispatcher' => '/INF/message/PEIP\INF\Message\Message_Dispatcher.php',
228
-  'PEIP\INF\Message\Message_Receiver' => '/INF/message/PEIP\INF\Message\Message_Receiver.php',
229
-  'PEIP\INF\Message\Message_Source' => '/INF/message/PEIP\INF\Message\Message_Source.php',
230
-  'PEIP\INF\Context\ContextPlugin' => '/INF/context/PEIP\INF\Context\ContextPlugin.php',
231
-  'PEIP\INF\Context\Context' => '/INF/context/PEIP\INF\Context\Context.php',
232
-  'ContentClassSelector' => '/selector/ContentClassSelector.php',
233
-  'ContentTypeSelector' => '/selector/ContentTypeSelector.php',
234
-  'ReflectionPool' => '/util/ReflectionPool.php',
235
-  'Test' => '/util/Test.php',
236
-  'Reflection' => '/util/Reflection.php',
237
-  'VisitableArray' => '/base/VisitableArray.php',
238
-  'Sealer' => '/base/Sealer.php',
239
-  'ObjectStorage' => '/base/ObjectStorage.php',
240
-  'DynamicAdapter' => '/base/DynamicAdapter.php',
241
-  'GenericBuilder' => '/base/GenericBuilder.php',
242
-  'Reflection_Class_Builder' => '/base/Reflection_Class_Builder.php',
243
-  'FlyAdapter' => '/base/FlyAdapter.php',
244
-  'CallableMessageHandler' => '/message/CallableMessageHandler.php',
245
-  'TextMessage' => '/message/TextMessage.php',
246
-  'MessageBuilder' => '/message/MessageBuilder.php',
247
-  'ErrorMessage' => '/message/ErrorMessage.php',
248
-  'GenericMessage' => '/message/GenericMessage.php',
249
-  'Command_Message' => '/message/Command_Message.php',
250
-  'StringMessage' => '/message/StringMessage.php',
251
-  'XMLContextReader' => '/context/XMLContextReader.php',
252
-  'XMLContext' => '/context/XMLContext.php',
253
-  'BasePlugin' => '/plugins/BasePlugin.php',
254
-  'SimpleAutoload' => '/autoload/SimpleAutoload.php',
255
-  'Autoload' => '/autoload/Autoload.php',
256
-  'AutoloadPaths' => '/autoload/AutoloadPaths.php',
257
-  'Wiretap' => '/listener/Wiretap.php',
100
+    'PEIP\ABS\Aggregator\MessageBarrierHandler' => '/ABS/aggregator/PEIP\ABS\Aggregator\MessageBarrierHandler.php',
101
+    'PEIP\ABS\Router\Router' => '/ABS/router/PEIP\ABS\Router\Router.php',
102
+    'PEIP\ABS\Dispatcher\MapDispatcher' => '/ABS/dispatcher/PEIP\ABS\Dispatcher\MapDispatcher.php',
103
+    'PEIP\ABS\Dispatcher\Dispatcher' => '/ABS/dispatcher/PEIP\ABS\Dispatcher\Dispatcher.php',
104
+    'PEIP\ABS\Channel\SubscribableChannel' => '/ABS/channel/PEIP\ABS\Channel\SubscribableChannel.php',
105
+    'PEIP\ABS\Channel\PollableChannel' => '/ABS/channel/PEIP\ABS\Channel\PollableChannel.php',
106
+    'PEIP\ABS\Channel\Channel' => '/ABS/channel/PEIP\ABS\Channel\Channel.php',
107
+    'PEIP\ABS\Splitter\MessageSplitter' => '/ABS/splitter/PEIP\ABS\Splitter\MessageSplitter.php',
108
+    'PEIP\ABS\Pipe\EventPipe' => '/ABS/pipe/PEIP\ABS\Pipe\EventPipe.php',
109
+    'PEIP\ABS\Handler\MessageHandler' => '/ABS/handler/PEIP\ABS\Handler\MessageHandler.php',
110
+    'PEIP\ABS\Handler\ReplyProducingMessageHandler' => '/ABS/handler/PEIP\ABS\Handler\ReplyProducingMessageHandler.php',
111
+    'PEIP\ABS\Handler\DiscardingMessageHandler' => '/ABS/handler/PEIP\ABS\Handler\DiscardingMessageHandler.php',
112
+    'PEIP\ABS\Command\Command' => '/ABS/command/PEIP\ABS\Command\Command.php',
113
+    'PEIP\ABS\Transformer\ContentTransformer' => '/ABS/transformer/PEIP\ABS\Transformer\ContentTransformer.php',
114
+    'PEIP\ABS\Transformer\Transformer' => '/ABS/transformer/PEIP\ABS\Transformer\Transformer.php',
115
+    'PEIP\ABS\Service\ServiceActivator' => '/ABS/service/PEIP\ABS\Service\ServiceActivator.php',
116
+    'PEIP\ABS\Base\MutableContainer' => '/ABS/base/PEIP\ABS\Base\MutableContainer.php',
117
+    'PEIP\ABS\Base\Connectable' => '/ABS/base/PEIP\ABS\Base\Connectable.php',
118
+    'PEIP\ABS\Base\Container' => '/ABS/base/PEIP\ABS\Base\Container.php',
119
+    'PEIP\ABS\Request\Connection' => '/ABS/request/PEIP\ABS\Request\Connection.php',
120
+    'PEIP\ABS\Request\Request' => '/ABS/request/PEIP\ABS\Request\Request.php',
121
+    'PEIP\ABS\Context\ContextPlugin' => '/ABS/context/PEIP\ABS\Context\ContextPlugin.php',
122
+    'EventClassDispatcher' => '/dispatcher/EventClassDispatcher.php',
123
+    'ObjectMapDispatcher' => '/dispatcher/ObjectMapDispatcher.php',
124
+    'ClassDispatcher' => '/dispatcher/ClassDispatcher.php',
125
+    'ObjectEventDispatcher' => '/dispatcher/ObjectEventDispatcher.php',
126
+    'ClassEventDispatcher' => '/dispatcher/ClassEventDispatcher.php',
127
+    'MapDispatcher' => '/dispatcher/MapDispatcher.php',
128
+    'Dispatcher' => '/dispatcher/Dispatcher.php',
129
+    'IteratingDispatcher' => '/dispatcher/IteratingDispatcher.php',
130
+    'EventBuilder' => '/event/EventBuilder.php',
131
+    'Event' => '/event/Event.php',
132
+    'Observable' => '/event/Observable.php',
133
+    'DirectChannel' => '/channel/DirectChannel.php',
134
+    'PublishSubscribeChannel' => '/channel/PublishSubscribeChannel.php',
135
+    'MessageChannel' => '/channel/MessageChannel.php',
136
+    'ChannelRegistry' => '/channel/ChannelRegistry.php',
137
+    'QueueChannel' => '/channel/QueueChannel.php',
138
+    'PollableChannel' => '/channel/PollableChannel.php',
139
+    'PriorityChannel' => '/channel/PriorityChannel.php',
140
+    'ChannelAdapter' => '/channel/ChannelAdapter.php',
141
+    'XMLArrayTranslator' => '/translator/XMLArrayTranslator.php',
142
+    'SimpleFixedEventPipe' => '/pipe/SimpleFixedEventPipe.php',
143
+    'Pipe' => '/pipe/Pipe.php',
144
+    'FixedEventPipe' => '/pipe/FixedEventPipe.php',
145
+    'Event_Pipe' => '/pipe/Event_Pipe.php',
146
+    'SimpleEventPipe' => '/pipe/SimpleEventPipe.php',
147
+    'CommandPipe' => '/pipe/CommandPipe.php',
148
+    'CallableHandler' => '/handler/CallableHandler.php',
149
+    'Command' => '/command/Command.php',
150
+    'ParameterHolderCollection' => '/data/ParameterHolderCollection.php',
151
+    'ParameterCollection' => '/data/ParameterCollection.php',
152
+    'InternalStoreAbstract' => '/data/InternalStoreAbstract.php',
153
+    'StoreCollection' => '/data/StoreCollection.php',
154
+    'Store' => '/data/Store.php',
155
+    'ArrayAccess' => '/data/ArrayAccess.php',
156
+    'ParameterHolder' => '/data/ParameterHolder.php',
157
+    'ServiceContainer' => '/service/ServiceContainer.php',
158
+    'SplittingServiceActivator' => '/service/SplittingServiceActivator.php',
159
+    'ServiceActivator' => '/service/ServiceActivator.php',
160
+    'ServiceContainer_Builder' => '/service/ServiceContainer_Builder.php',
161
+    'HeaderServiceActivator' => '/service/HeaderServiceActivator.php',
162
+    'ServiceProvider' => '/service/ServiceProvider.php',
163
+    'StringServiceActivator' => '/service/StringServiceActivator.php',
164
+    'ServiceFactory' => '/factory/ServiceFactory.php',
165
+    'DedicatedFactory' => '/factory/DedicatedFactory.php',
166
+    'PEIP' => '/PEIP.php',
167
+    'SimpleMessagingGateway' => '/gateway/SimpleMessagingGateway.php',
168
+    'PEIP\INF\Aggregator\CompletionStrategy' => '/INF/aggregator/PEIP\INF\Aggregator\CompletionStrategy.php',
169
+    'PEIP\INF\Aggregator\CorrelationStrategy' => '/INF/aggregator/PEIP\INF\Aggregator\CorrelationStrategy.php',
170
+    'PEIP\INF\Dispatcher\BreakableDispatcher' => '/INF/dispatcher/PEIP\INF\Dispatcher\BreakableDispatcher.php',
171
+    'PEIP\INF\Dispatcher\ObjectMapDispatcher' => '/INF/dispatcher/PEIP\INF\Dispatcher\ObjectMapDispatcher.php',
172
+    'PEIP\INF\Dispatcher\MapDispatcher' => '/INF/dispatcher/PEIP\INF\Dispatcher\MapDispatcher.php',
173
+    'PEIP\INF\Dispatcher\ListDispatcher' => '/INF/dispatcher/PEIP\INF\Dispatcher\ListDispatcher.php',
174
+    'PEIP\INF\Dispatcher\Dispatcher' => '/INF/dispatcher/PEIP\INF\Dispatcher\Dispatcher.php',
175
+    'PEIP\INF\Event\EventHandler' => '/INF/event/PEIP\INF\Event\EventHandler.php',
176
+    'PEIP\INF\Event\EventDispatcher' => '/INF/event/PEIP\INF\Event\EventDispatcher.php',
177
+    'PEIP\INF\Event\EventPublisher' => '/INF/event/PEIP\INF\Event\EventPublisher.php',
178
+    'PEIP\INF\Event\Listener' => '/INF/event/PEIP\INF\Event\Listener.php',
179
+    'PEIP\INF\Event\Event' => '/INF/event/PEIP\INF\Event\Event.php',
180
+    'PEIP\INF\Event\Observable' => '/INF/event/PEIP\INF\Event\Observable.php',
181
+    'PEIP\INF\Event\Connectable' => '/INF/event/PEIP\INF\Event\Connectable.php',
182
+    'PEIP\INF\Event\Observer' => '/INF/event/PEIP\INF\Event\Observer.php',
183
+    'PEIP\INF\Channel\ChannelResolver' => '/INF/channel/PEIP\INF\Channel\ChannelResolver.php',
184
+    'PEIP\INF\Channel\PollableChannel' => '/INF/channel/PEIP\INF\Channel\PollableChannel.php',
185
+    'PEIP\INF\Channel\Channel' => '/INF/channel/PEIP\INF\Channel\Channel.php',
186
+    'PEIP\INF\Channel\SubscribableChannel' => '/INF/channel/PEIP\INF\Channel\SubscribableChannel.php',
187
+    'PEIP\INF\Handler\Handler' => '/INF/handler/PEIP\INF\Handler\Handler.php',
188
+    'PEIP\INF\Command\Command' => '/INF/command/PEIP\INF\Command\Command.php',
189
+    'PEIP\INF\Command\ParametricCommand' => '/INF/command/PEIP\INF\Command\ParametricCommand.php',
190
+    'PEIP\INF\Transformer\Transformer' => '/INF/transformer/PEIP\INF\Transformer\Transformer.php',
191
+    'PEIP\INF\Data\StoreCollection' => '/INF/data/PEIP\INF\Data\StoreCollection.php',
192
+    'PEIP\INF\Data\ParameterHolder' => '/INF/data/PEIP\INF\Data\ParameterHolder.php',
193
+    'PEIP\INF\Data\ParameterHolder_Collection' => '/INF/data/PEIP\INF\Data\ParameterHolder_Collection.php',
194
+    'PEIP\INF\Data\Store' => '/INF/data/PEIP\INF\Data\Store.php',
195
+    'PEIP\INF\Service\ServiceContainer' => '/INF/service/PEIP\INF\Service\ServiceContainer.php',
196
+    'PEIP\INF\Service\ServiceActivator' => '/INF/service/PEIP\INF\Service\ServiceActivator.php',
197
+    'PEIP\INF\Factory\DedicatedFactory' => '/INF/factory/PEIP\INF\Factory\DedicatedFactory.php',
198
+    'PEIP\INF\Gateway\MessagingGateway' => '/INF/gateway/PEIP\INF\Gateway\MessagingGateway.php',
199
+    'PEIP\INF\Selector\MessageSelector' => '/INF/selector/PEIP\INF\Selector\MessageSelector.php',
200
+    'PEIP\INF\Base\Lifecycle' => '/INF/base/PEIP\INF\Base\Lifecycle.php',
201
+    'PEIP\INF\Base\SingletonMap' => '/INF/base/PEIP\INF\Base\SingletonMap.php',
202
+    'PEIP\INF\Base\SingletonArgs' => '/INF/base/PEIP\INF\Base\SingletonArgs.php',
203
+    'PEIP\INF\Base\Identifier' => '/INF/base/PEIP\INF\Base\Identifier.php',
204
+    'PEIP\INF\Base\MutableContainer' => '/INF/base/PEIP\INF\Base\MutableContainer.php',
205
+    'PEIP\INF\Base\Singleton' => '/INF/base/PEIP\INF\Base\Singleton.php',
206
+    'PEIP\INF\Base\Visitor' => '/INF/base/PEIP\INF\Base\Visitor.php',
207
+    'PEIP\INF\Base\SingletonMap_Array' => '/INF/base/PEIP\INF\Base\SingletonMap_Array.php',
208
+    'PEIP\INF\Base\Visitable' => '/INF/base/PEIP\INF\Base\Visitable.php',
209
+    'PEIP\INF\Base\Plugable' => '/INF/base/PEIP\INF\Base\Plugable.php',
210
+    'PEIP\INF\Base\Filter' => '/INF/base/PEIP\INF\Base\Filter.php',
211
+    'PEIP\INF\Base\Document' => '/INF/base/PEIP\INF\Base\Document.php',
212
+    'PEIP\INF\Base\Container' => '/INF/base/PEIP\INF\Base\Container.php',
213
+    'PEIP\INF\Base\Unsealer' => '/INF/base/PEIP\INF\Base\Unsealer.php',
214
+    'PEIP\INF\Base\Buildable' => '/INF/base/PEIP\INF\Base\Buildable.php',
215
+    'PEIP\INF\Base\Sealer' => '/INF/base/PEIP\INF\Base\Sealer.php',
216
+    'PEIP\INF\Request\Request' => '/INF/request/PEIP\INF\Request\Request.php',
217
+    'PEIP\INF\Request\Connection' => '/INF/request/PEIP\INF\Request\Connection.php',
218
+    'PEIP\INF\Message\MessageHandler' => '/INF/message/PEIP\INF\Message\MessageHandler.php',
219
+    'PEIP\INF\Message\MessageChannel' => '/INF/message/PEIP\INF\Message\MessageChannel.php',
220
+    'PEIP\INF\Message\HeaderEnricher' => '/INF/message/PEIP\INF\Message\HeaderEnricher.php',
221
+    'PEIP\INF\Message\Message' => '/INF/message/PEIP\INF\Message\Message.php',
222
+    'PEIP\INF\Message\Message_Sender' => '/INF/message/PEIP\INF\Message\Message_Sender.php',
223
+    'PEIP\INF\Message\Message_Builder' => '/INF/message/PEIP\INF\Message\Message_Builder.php',
224
+    'PEIP\INF\Message\PollableMessageChannel' => '/INF/message/PEIP\INF\Message\PollableMessageChannel.php',
225
+    'PEIP\INF\Message\EnvelopeMessage' => '/INF/message/PEIP\INF\Message\EnvelopeMessage.php',
226
+    'PEIP\INF\Message\StringMessage' => '/INF/message/PEIP\INF\Message\StringMessage.php',
227
+    'PEIP\INF\Message\Message_Dispatcher' => '/INF/message/PEIP\INF\Message\Message_Dispatcher.php',
228
+    'PEIP\INF\Message\Message_Receiver' => '/INF/message/PEIP\INF\Message\Message_Receiver.php',
229
+    'PEIP\INF\Message\Message_Source' => '/INF/message/PEIP\INF\Message\Message_Source.php',
230
+    'PEIP\INF\Context\ContextPlugin' => '/INF/context/PEIP\INF\Context\ContextPlugin.php',
231
+    'PEIP\INF\Context\Context' => '/INF/context/PEIP\INF\Context\Context.php',
232
+    'ContentClassSelector' => '/selector/ContentClassSelector.php',
233
+    'ContentTypeSelector' => '/selector/ContentTypeSelector.php',
234
+    'ReflectionPool' => '/util/ReflectionPool.php',
235
+    'Test' => '/util/Test.php',
236
+    'Reflection' => '/util/Reflection.php',
237
+    'VisitableArray' => '/base/VisitableArray.php',
238
+    'Sealer' => '/base/Sealer.php',
239
+    'ObjectStorage' => '/base/ObjectStorage.php',
240
+    'DynamicAdapter' => '/base/DynamicAdapter.php',
241
+    'GenericBuilder' => '/base/GenericBuilder.php',
242
+    'Reflection_Class_Builder' => '/base/Reflection_Class_Builder.php',
243
+    'FlyAdapter' => '/base/FlyAdapter.php',
244
+    'CallableMessageHandler' => '/message/CallableMessageHandler.php',
245
+    'TextMessage' => '/message/TextMessage.php',
246
+    'MessageBuilder' => '/message/MessageBuilder.php',
247
+    'ErrorMessage' => '/message/ErrorMessage.php',
248
+    'GenericMessage' => '/message/GenericMessage.php',
249
+    'Command_Message' => '/message/Command_Message.php',
250
+    'StringMessage' => '/message/StringMessage.php',
251
+    'XMLContextReader' => '/context/XMLContextReader.php',
252
+    'XMLContext' => '/context/XMLContext.php',
253
+    'BasePlugin' => '/plugins/BasePlugin.php',
254
+    'SimpleAutoload' => '/autoload/SimpleAutoload.php',
255
+    'Autoload' => '/autoload/Autoload.php',
256
+    'AutoloadPaths' => '/autoload/AutoloadPaths.php',
257
+    'Wiretap' => '/listener/Wiretap.php',
258 258
 );
259 259
     
260 260
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 
97 97
     // please, dont�t edit these lines manually
98 98
     // use Autoload::make() instead
99
-    public static $paths = array (
99
+    public static $paths = array(
100 100
   'PEIP\ABS\Aggregator\MessageBarrierHandler' => '/ABS/aggregator/PEIP\ABS\Aggregator\MessageBarrierHandler.php',
101 101
   'PEIP\ABS\Router\Router' => '/ABS/router/PEIP\ABS\Router\Router.php',
102 102
   'PEIP\ABS\Dispatcher\MapDispatcher' => '/ABS/dispatcher/PEIP\ABS\Dispatcher\MapDispatcher.php',
Please login to merge, or discard this patch.
src/Autoload/SimpleAutoload.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,8 +149,8 @@
 block discarded – undo
149 149
      */     
150 150
     public function autoload($class){
151 151
         $path = str_replace('PEIP\\', '', $class);
152
-	$path = $this->baseDir.'/'.str_replace('\\', '/', $path).'.php'; 
153
-	//$path = $this->getClassPath($class);
152
+    $path = $this->baseDir.'/'.str_replace('\\', '/', $path).'.php'; 
153
+    //$path = $this->getClassPath($class);
154 154
         if (is_file($path)){
155 155
             require $path;
156 156
                 if(class_exists($class) || interface_exists($class)){
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * 
34 34
      * @access protected
35 35
      */             
36
-    protected function __construct(){
36
+    protected function __construct() {
37 37
         $this->init();
38 38
     }   
39 39
 
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
      * 
44 44
      * @access protected
45 45
      */     
46
-    protected function init(){
46
+    protected function init() {
47 47
         $this->baseDir = self::getBaseDirectory();
48 48
         ini_set('unserialize_callback_func', 'spl_autoload_call');
49
-        if (false === spl_autoload_register(array($this, 'autoload'))){
49
+        if (false === spl_autoload_register(array($this, 'autoload'))) {
50 50
             throw new \RuntimeException(sprintf('Unable to register %s::autoload as an autoloading method.', get_class($this)));
51 51
         }   
52 52
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @access protected
59 59
      * @return string the base directory
60 60
      */     
61
-    protected static function getBaseDirectory(){
61
+    protected static function getBaseDirectory() {
62 62
         return str_replace(DIRECTORY_SEPARATOR, '/', realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'));     
63 63
     }
64 64
         
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
      * @static
70 70
      * @return SimpleAutoload
71 71
      */     
72
-    static public function getInstance(){
73
-        if (!isset(self::$instance)){
72
+    static public function getInstance() {
73
+        if (!isset(self::$instance)) {
74 74
             self::$instance = new SimpleAutoload();
75 75
         }
76 76
         return self::$instance;
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
      * @access protected
84 84
      * @return SimpleAutoload
85 85
      */ 
86
-    protected static function doGetInstance(){
87
-        return self::$instance = new SimpleAutoload();;   
86
+    protected static function doGetInstance() {
87
+        return self::$instance = new SimpleAutoload(); ;   
88 88
     }
89 89
         
90 90
     /**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @param string $path the path to the class-file  
96 96
      * @return void
97 97
      */     
98
-    public function setClassPath($class, $path){
98
+    public function setClassPath($class, $path) {
99 99
         $this->classPaths[$class] = $path;
100 100
     }
101 101
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * @param array $classPaths class-paths as key(class)/value(path) pairs array
107 107
      * @return void
108 108
      */     
109
-    public function setClassPaths(array $classPaths){
109
+    public function setClassPaths(array $classPaths) {
110 110
         $this->classPaths = $classPaths;    
111 111
     }   
112 112
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * @param array $classPaths class-paths as key(class)/value(path) pairs array
118 118
      * @return void
119 119
      */     
120
-    public function addClassPaths(array $classPaths){
120
+    public function addClassPaths(array $classPaths) {
121 121
         $this->classPaths = array_merge($this->classPaths, $classPaths);
122 122
     }   
123 123
     
@@ -129,12 +129,12 @@  discard block
 block discarded – undo
129 129
      * @param string $class the class name
130 130
      * @return path to the class-file 
131 131
      */     
132
-    public function getClassPath($class){
133
-        if (!isset($this->classPaths[$class])){
132
+    public function getClassPath($class) {
133
+        if (!isset($this->classPaths[$class])) {
134 134
             return null;
135 135
         }
136 136
         $file = $this->classPaths[$class];
137
-        if(!is_file($file)){
137
+        if (!is_file($file)) {
138 138
             $file = $this->baseDir.DIRECTORY_SEPARATOR.$file;
139 139
         }       
140 140
         return $file;
@@ -147,13 +147,13 @@  discard block
 block discarded – undo
147 147
      * @param string $class the class to load
148 148
      * @return path to the class-file 
149 149
      */     
150
-    public function autoload($class){
150
+    public function autoload($class) {
151 151
         $path = str_replace('PEIP\\', '', $class);
152 152
 	$path = $this->baseDir.'/'.str_replace('\\', '/', $path).'.php'; 
153 153
 	//$path = $this->getClassPath($class);
154
-        if (is_file($path)){
154
+        if (is_file($path)) {
155 155
             require $path;
156
-                if(class_exists($class) || interface_exists($class)){
156
+                if (class_exists($class) || interface_exists($class)) {
157 157
                     return true;
158 158
                 }
159 159
             }
Please login to merge, or discard this patch.
src/Message/CommandMessage.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
      * @param $headers 
36 36
      * @return 
37 37
      */
38
-    public function __construct($content, ArrayAccess $headers = NULL){
39
-        if(!($content instanceof \PEIP\INF\Command\Command) && !is_callable($content)){
38
+    public function __construct($content, ArrayAccess $headers = NULL) {
39
+        if (!($content instanceof \PEIP\INF\Command\Command) && !is_callable($content)) {
40 40
             throw new \BadArgumentException('Argument 1 for CommandMessage::__construct must be callable or implment \PEIP\INF\Command\Command');
41 41
         }
42 42
         
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
      * @access public
50 50
      * @return 
51 51
      */
52
-    public function execute(){
53
-        if(is_callable($this->getContent())){
52
+    public function execute() {
53
+        if (is_callable($this->getContent())) {
54 54
             return call_user_func($this->getContent());
55
-        }else{
55
+        }else {
56 56
             return $this->getContent()->execute();
57 57
         }
58 58
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     protected function getMessage($object){
18 18
         if($this->channel instanceof \PEIP\INF\Channel\SubscribableChannel){
19 19
             return $object; 
20
-        }else{
20
+        } else{
21 21
             return $object->getContent()->receive();
22 22
         }
23 23
     }
Please login to merge, or discard this patch.
src/Message/MessageBuilder.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * @access public
40 40
      * @param string $messageClass the message-class to build instances for 
41 41
      */
42
-    public function __construct($messageClass = '\PEIP\Message\GenericMessage'){
42
+    public function __construct($messageClass = '\PEIP\Message\GenericMessage') {
43 43
         $this->messageClass = $messageClass;
44 44
         $this->factory = DedicatedFactory::getfromCallable(array($messageClass, 'build'));    
45 45
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @param array $headers the headers to set
52 52
      * @return MessageBuilder $this
53 53
      */
54
-    public function copyHeaders(array $headers){
54
+    public function copyHeaders(array $headers) {
55 55
         $this->headers = array_merge($this->headers, $headers);
56 56
         return $this;       
57 57
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param array $headers the headers to set
64 64
      * @return MessageBuilder $this
65 65
      */
66
-    public function copyHeadersIfAbsent(array $headers){
66
+    public function copyHeadersIfAbsent(array $headers) {
67 67
         $this->headers = array_merge($headers, $this->headers);
68 68
         return $this;   
69 69
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * @param string $headerName the name of the header
76 76
      * @return MessageBuilder $this
77 77
      */
78
-    public function removeHeader($headerName){
78
+    public function removeHeader($headerName) {
79 79
         unset($this->headers[$headerName]);
80 80
         return $this;
81 81
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @param mixed $headerValue the value for the header
89 89
      * @return MessageBuilder $this 
90 90
      */
91
-    public function setHeader($headerName, $headerValue){
91
+    public function setHeader($headerName, $headerValue) {
92 92
         $this->headers[$headerName] = $headerValue;
93 93
         return $this;   
94 94
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @param array $headers the headers to set
101 101
      * @return MessageBuilder $this 
102 102
      */
103
-    public function setHeaders(array $headers){
103
+    public function setHeaders(array $headers) {
104 104
         $this->headers = $headers;
105 105
         return $this;   
106 106
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * @access public
112 112
      * @return array the headers for the message to build 
113 113
      */
114
-    public function getHeaders(){
114
+    public function getHeaders() {
115 115
         return $this->headers;
116 116
     }  
117 117
         
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param $arguments 
123 123
      * @return 
124 124
      */
125
-    public function build(array $headers = array()){
125
+    public function build(array $headers = array()) {
126 126
         $this->copyHeaders($headers);
127 127
         return GenericBuilder::getInstance($this->messageClass)
128 128
             ->build(array($this->payload, new \ArrayObject($this->headers)));        
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      * @param mixed $payload payload for the message to build 
136 136
      * @return MessageBuilder $this 
137 137
      */
138
-    public function setContent($payload){
138
+    public function setContent($payload) {
139 139
         $this->payload = $payload;
140 140
         return $this;
141 141
     }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      * @param string $messageClass the message class to build from the builder 
149 149
      * @return MessageBuilder new instance of MessageBuilder 
150 150
      */    
151
-    public static function getInstance($messageClass = '\PEIP\Message\GenericMessage'){
151
+    public static function getInstance($messageClass = '\PEIP\Message\GenericMessage') {
152 152
         return new  MessageBuilder($messageClass);
153 153
     }
154 154
   
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @param \PEIP\INF\Message\Message $message the message to get class to build from the builder 
161 161
      * @return MessageBuilder new instance of MessageBuilder 
162 162
      */      
163
-    public static function getInstanceFromMessage(\PEIP\INF\Message\Message $message){
163
+    public static function getInstanceFromMessage(\PEIP\INF\Message\Message $message) {
164 164
         return new MessageBuilder(get_class($message));
165 165
     }
166 166
    
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      * @access public
171 171
      * @param string $messageClass the message-class to build new instances for
172 172
      */
173
-    public function setMessageClass($messageClass){
173
+    public function setMessageClass($messageClass) {
174 174
         $this->messageClass = $messageClass;
175 175
     }
176 176
  
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      * @access public
181 181
      * @return string the message-class to build new instances for
182 182
      */
183
-    public function getMessageClass(){
183
+    public function getMessageClass() {
184 184
         return $this->messageClass;
185 185
     }         
186 186
 }
187 187
\ No newline at end of file
Please login to merge, or discard this patch.
src/Message/CallableMessageHandler.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @param $callable 
36 36
      * @return 
37 37
      */
38
-    public function __construct($callable){
38
+    public function __construct($callable) {
39 39
         $this->callable = $callable;    
40 40
         $this->examineCallabe();
41 41
     }
@@ -45,22 +45,22 @@  discard block
 block discarded – undo
45 45
      * @access protected
46 46
      * @return 
47 47
      */
48
-    protected function examineCallabe(){
49
-        if(is_callable($this->callable)){        
50
-            if(is_array($this->callable)){
51
-                list($class, $method) =  $this->callable;
48
+    protected function examineCallabe() {
49
+        if (is_callable($this->callable)) {        
50
+            if (is_array($this->callable)) {
51
+                list($class, $method) = $this->callable;
52 52
                 $static = !is_object($class);
53 53
                 $class = is_object($class) ? get_class($class) : (string)$class;
54 54
                 $reflectionClass = new \ReflectionClass($class);
55 55
                 $reflectionFunc = $reflectionClass->getMethod($method);
56
-                if($static && !$reflectionFunc->isStatic()){
56
+                if ($static && !$reflectionFunc->isStatic()) {
57 57
                     throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::__construct is not an Callable: Method "'.$method.'" of class '.$class.' is not static.');                  
58 58
                 }
59
-            }else{
59
+            }else {
60 60
                 $reflectionFunc = new \ReflectionFunction($this->callable);  
61 61
             }
62 62
             $this->requiredParameters = $reflectionFunc->getNumberOfRequiredParameters();
63
-        }else{
63
+        }else {
64 64
             throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::__construct is not a Callable');
65 65
         }   
66 66
     }   
@@ -73,14 +73,14 @@  discard block
 block discarded – undo
73 73
      * @param $sent 
74 74
      * @return 
75 75
      */
76
-    public function handle($message, $channel = false, $sent = false){
77
-        if(!is_object($message)){
76
+    public function handle($message, $channel = false, $sent = false) {
77
+        if (!is_object($message)) {
78 78
             throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::handle is not a Object');       
79 79
         }   
80 80
         try {
81 81
             return call_user_func_array($this->callable, array($message, $channel, $sent));
82 82
         }
83
-        catch(\Exception $e){
83
+        catch (\Exception $e) {
84 84
             throw new \RuntimeException('Unable to call Callable: '.$e->getMessage());
85 85
         }   
86 86
     }   
Please login to merge, or discard this patch.
Braces   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
                 if($static && !$reflectionFunc->isStatic()){
57 57
                     throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::__construct is not an Callable: Method "'.$method.'" of class '.$class.' is not static.');                  
58 58
                 }
59
-            }else{
59
+            } else{
60 60
                 $reflectionFunc = new \ReflectionFunction($this->callable);  
61 61
             }
62 62
             $this->requiredParameters = $reflectionFunc->getNumberOfRequiredParameters();
63
-        }else{
63
+        } else{
64 64
             throw new \InvalidArgumentException('Argument 1 passed to CallableMessageHandler::__construct is not a Callable');
65 65
         }   
66 66
     }   
@@ -79,8 +79,7 @@  discard block
 block discarded – undo
79 79
         }   
80 80
         try {
81 81
             return call_user_func_array($this->callable, array($message, $channel, $sent));
82
-        }
83
-        catch(\Exception $e){
82
+        } catch(\Exception $e){
84 83
             throw new \RuntimeException('Unable to call Callable: '.$e->getMessage());
85 84
         }   
86 85
     }   
Please login to merge, or discard this patch.
src/Message/StringMessage.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 
28 28
     const CONTENT_CAST_TYPE = 'string';
29 29
 
30
-    public function __toString(){
30
+    public function __toString() {
31 31
         return (string)$this->getContent();
32 32
     }
33 33
 
34
-    public function getContent(){
34
+    public function getContent() {
35 35
         return (string)parent::getContent();
36 36
     }
37 37
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param string $name the name of the header
46 46
      * @return boolean wether the header is set
47 47
      */     
48
-    public static function build(array $arguments = array()){
48
+    public static function build(array $arguments = array()) {
49 49
         return GenericBuilder::getInstance(__CLASS__)->build($arguments);
50 50
     }
51 51
 }
52 52
\ No newline at end of file
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,6 @@
 block discarded – undo
64 64
      * @static
65 65
      * @access public
66 66
      * @implements \PEIP\INF\Base\Buildable
67
-     * @param string $name the name of the header
68 67
      * @return boolean wether the header is set
69 68
      */
70 69
     public static function build(array $arguments = array()){
Please login to merge, or discard this patch.
src/Message/ErrorMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @param $headers 
37 37
      * @return 
38 38
      */
39
-    public function __construct(\Exception $payload, array $headers = array()){
39
+    public function __construct(\Exception $payload, array $headers = array()) {
40 40
         $this->payload = $payload;
41 41
         $this->headers = $headers;
42 42
     }
Please login to merge, or discard this patch.
src/Channel/QueueChannel.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param $capacity 
38 38
      * @return 
39 39
      */
40
-    public function __construct($capacity = -1){
40
+    public function __construct($capacity = -1) {
41 41
         $this->setCapacity((int)$capacity);
42 42
         $this->queue = new SplQueue();  
43 43
     }   
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @access public
48 48
      * @return 
49 49
      */
50
-    public function getMessageCount(){
50
+    public function getMessageCount() {
51 51
         return count($this->messages);
52 52
     }   
53 53
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @access public
57 57
      * @return 
58 58
      */
59
-    public function getCapacity(){
59
+    public function getCapacity() {
60 60
         return $this->capacity;
61 61
     }       
62 62
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @param $capacity 
67 67
      * @return 
68 68
      */
69
-    public function setCapacity($capacity){
69
+    public function setCapacity($capacity) {
70 70
         $this->capacity = $capacity;
71 71
     }   
72 72
 
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
      * @param $message 
77 77
      * @return 
78 78
      */
79
-    protected function doSend(\PEIP\INF\Message\Message $message){
80
-        if($this->capacity < 1 || $this->getMessageCount() <= $this->getCapacity()){
79
+    protected function doSend(\PEIP\INF\Message\Message $message) {
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
     }       
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     protected function getMessage($object){
18 18
         if($this->channel instanceof \PEIP\INF\Channel\SubscribableChannel){
19 19
             return $object; 
20
-        }else{
20
+        } else{
21 21
             return $object->getContent()->receive();
22 22
         }
23 23
     }
Please login to merge, or discard this patch.