Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
36 | public function subscribe(): Observable |
||
37 | { |
||
38 | return Observable::create(function ( |
||
39 | ObserverInterface $observer, |
||
40 | SchedulerInterface $scheduler |
||
|
|||
41 | ) { |
||
42 | $body = $this->response->getBody(); |
||
43 | $body->on('data', function (string $data) use ($observer) { |
||
44 | $observer->onNext($data); |
||
45 | }); |
||
46 | $body->on('end', function () use ($observer) { |
||
47 | $observer->onCompleted(); |
||
48 | }); |
||
49 | $body->on('error', function ($error) use ($observer) { |
||
50 | $observer->onError($error); |
||
51 | }); |
||
52 | }); |
||
53 | } |
||
54 | } |
||
55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.