| Conditions | 2 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 29 | public function processRequest(ServerRequestInterface $request) : ExtendedPromiseInterface |
||
| 30 | { |
||
| 31 | try { |
||
| 32 | $response = $this->processRequestSynchronously($request); |
||
| 33 | |||
| 34 | return new FulfilledPromise($response); |
||
| 35 | } catch (\Throwable $e) { |
||
| 36 | return new RejectedPromise($e); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.