@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $askCollection = new EntityCollection(); |
162 | 162 | |
163 | 163 | if (!empty($asks)) { |
164 | - array_map(function ($askItem) use ($askCollection) { |
|
164 | + array_map(function($askItem) use ($askCollection) { |
|
165 | 165 | $askCollection->push(ResponseDtoBuilder::make(OrderBookPriceDTO::class, $askItem)); |
166 | 166 | }, $asks); |
167 | 167 | } |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $bidCollection = new EntityCollection(); |
189 | 189 | |
190 | 190 | if (!empty($bids)) { |
191 | - array_map(function ($bidItem) use ($bidCollection) { |
|
191 | + array_map(function($bidItem) use ($bidCollection) { |
|
192 | 192 | $bidCollection->push(ResponseDtoBuilder::make(OrderBookPriceDTO::class, $bidItem)); |
193 | 193 | }, $bids); |
194 | 194 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $askCollection = new EntityCollection(); |
140 | 140 | |
141 | 141 | if (!empty($asks)) { |
142 | - array_map(function ($askItem) use ($askCollection) { |
|
142 | + array_map(function($askItem) use ($askCollection) { |
|
143 | 143 | $askCollection->push(ResponseDtoBuilder::make(OrderBookPriceAbstract::class, $askItem)); |
144 | 144 | }, $asks); |
145 | 145 | } |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $bidCollection = new EntityCollection(); |
159 | 159 | |
160 | 160 | if (!empty($bids)) { |
161 | - array_map(function ($bidItem) use ($bidCollection) { |
|
161 | + array_map(function($bidItem) use ($bidCollection) { |
|
162 | 162 | $bidCollection->push(ResponseDtoBuilder::make(OrderBookPriceAbstract::class, $bidItem)); |
163 | 163 | }, $bids); |
164 | 164 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | class WebSocketsBuilder implements IFabricInterface |
11 | 11 | { |
12 | 12 | |
13 | - public static function make(string $className, IWebSocketArgumentInterface $arguments = null, ChannelHandler $channelHandler = null, int $mode = 0, int $wsClientTimeout = IWebSocketArgumentInterface::DEFAULT_SOCKET_CLIENT_TIMEOUT): IWebSocketsChannelInterface |
|
13 | + public static function make(string $className, IWebSocketArgumentInterface $arguments = null, ChannelHandler $channelHandler = null, int $mode = 0, int $wsClientTimeout = IWebSocketArgumentInterface::DEFAULT_SOCKET_CLIENT_TIMEOUT): IWebSocketsChannelInterface |
|
14 | 14 | { |
15 | 15 | if (!in_array(IWebSocketsChannelInterface::class, class_implements($className))) { |
16 | 16 | throw new \Exception("This websocket-channel {$className} must implement the interface " . IResponseHandlerInterface::class . "!"); |