@@ -179,7 +179,8 @@ discard block |
||
| 179 | 179 | * @inheritDoc |
| 180 | 180 | */ |
| 181 | 181 | public function handleConnect(NetworkConnectionInterface $conn) |
| 182 | - {} |
|
| 182 | + { |
|
| 183 | +} |
|
| 183 | 184 | |
| 184 | 185 | /** |
| 185 | 186 | * @override |
@@ -254,9 +255,11 @@ discard block |
||
| 254 | 255 | return; |
| 255 | 256 | } |
| 256 | 257 | catch (Error $ex) |
| 257 | - {} |
|
| 258 | + { |
|
| 259 | +} |
|
| 258 | 260 | catch (Exception $ex) |
| 259 | - {} |
|
| 261 | + { |
|
| 262 | +} |
|
| 260 | 263 | |
| 261 | 264 | $conn->controller->handleError($conn, $ex); |
| 262 | 265 | } |
@@ -274,9 +277,11 @@ discard block |
||
| 274 | 277 | return $conn->controller->handleError($conn, $ex); |
| 275 | 278 | } |
| 276 | 279 | catch (Error $ex) |
| 277 | - {} |
|
| 280 | + { |
|
| 281 | +} |
|
| 278 | 282 | catch (Exception $ex) |
| 279 | - {} |
|
| 283 | + { |
|
| 284 | +} |
|
| 280 | 285 | } |
| 281 | 286 | |
| 282 | 287 | $this->close($conn, 500); |
@@ -84,9 +84,11 @@ discard block |
||
| 84 | 84 | return $this->parser->parseRequest($buffer->drain()); |
| 85 | 85 | } |
| 86 | 86 | catch (Error $ex) |
| 87 | - {} |
|
| 87 | + { |
|
| 88 | +} |
|
| 88 | 89 | catch (Exception $ex) |
| 89 | - {} |
|
| 90 | + { |
|
| 91 | +} |
|
| 90 | 92 | |
| 91 | 93 | throw new InvalidFormatException('Could not parse start line.', 0, $ex); |
| 92 | 94 | } |
@@ -116,9 +118,11 @@ discard block |
||
| 116 | 118 | return $this->parser->parseResponse($buffer->drain()); |
| 117 | 119 | } |
| 118 | 120 | catch (Error $ex) |
| 119 | - {} |
|
| 121 | + { |
|
| 122 | +} |
|
| 120 | 123 | catch (Exception $ex) |
| 121 | - {} |
|
| 124 | + { |
|
| 125 | +} |
|
| 122 | 126 | |
| 123 | 127 | throw new InvalidFormatException('Could not parse start line.'); |
| 124 | 128 | } |
@@ -5,4 +5,5 @@ |
||
| 5 | 5 | use Dazzle\Http\Http\Driver\Reader\HttpReaderInterface; |
| 6 | 6 | |
| 7 | 7 | interface HttpDriverInterface extends HttpReaderInterface |
| 8 | -{} |
|
| 8 | +{ |
|
| 9 | +} |
|
@@ -13,26 +13,30 @@ |
||
| 13 | 13 | * @inheritDoc |
| 14 | 14 | */ |
| 15 | 15 | public function handleConnect(NetworkConnectionInterface $conn) |
| 16 | - {} |
|
| 16 | + { |
|
| 17 | +} |
|
| 17 | 18 | |
| 18 | 19 | /** |
| 19 | 20 | * @override |
| 20 | 21 | * @inheritDoc |
| 21 | 22 | */ |
| 22 | 23 | public function handleDisconnect(NetworkConnectionInterface $conn) |
| 23 | - {} |
|
| 24 | + { |
|
| 25 | +} |
|
| 24 | 26 | |
| 25 | 27 | /** |
| 26 | 28 | * @override |
| 27 | 29 | * @inheritDoc |
| 28 | 30 | */ |
| 29 | 31 | public function handleMessage(NetworkConnectionInterface $conn, NetworkMessageInterface $message) |
| 30 | - {} |
|
| 32 | + { |
|
| 33 | +} |
|
| 31 | 34 | |
| 32 | 35 | /** |
| 33 | 36 | * @override |
| 34 | 37 | * @inheritDoc |
| 35 | 38 | */ |
| 36 | 39 | public function handleError(NetworkConnectionInterface $conn, $ex) |
| 37 | - {} |
|
| 40 | + { |
|
| 41 | +} |
|
| 38 | 42 | } |