Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
38 | public function performSpecialActions(ClientInterface $client, WritableContentInterface $originalRequest): bool |
||
39 | { |
||
40 | /** @var Subscribe $originalRequest */ |
||
41 | if ($this->packetIdentifier !== $originalRequest->getPacketIdentifier()) { |
||
42 | throw new \LogicException('Packet identifiers do not match!'); |
||
43 | } |
||
44 | |||
45 | $client |
||
46 | ->updateLastCommunication() |
||
47 | ->setBlocking(false) |
||
48 | ; |
||
49 | return true; |
||
50 | } |
||
52 |