| Conditions | 7 |
| Paths | 5 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 56 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function process(Update $update) |
||
| 40 | { |
||
| 41 | if ($update->message && $update->message instanceof Message) { |
||
| 42 | $chatType = $update->message->chat->type; |
||
| 43 | |||
| 44 | if (self::CHAT_TYPE_PRIVATE === $chatType) { |
||
| 45 | $this->privateMessageProcessor->process($update->message); |
||
| 46 | } elseif (self::CHAT_TYPE_GROUP === $chatType) { |
||
|
1 ignored issue
–
show
|
|||
| 47 | // @todo implement |
||
| 48 | } |
||
| 49 | } elseif ($update->inline_query && $update->inline_query instanceof Query) { |
||
| 50 | $this->inlineQueryProcessor->process($update->inline_query); |
||
| 51 | } |
||
| 52 | } |
||
| 53 | } |
This check looks for the bodies of
elseifstatements that have no statements or where all statements have been commented out. This may be the result of changes for debugging or the code may simply be obsolete.These
elseifbodies can be removed. If you have an empty elseif but statements in theelsebranch, consider inverting the condition.