| 1 | <?php |
||
| 12 | class IncomingUpdateDispatcher |
||
| 13 | { |
||
| 14 | const CHAT_TYPE_PRIVATE = 'private'; |
||
| 15 | const CHAT_TYPE_GROUP = 'group'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var InlineQueryProcessor |
||
| 19 | */ |
||
| 20 | private $inlineQueryProcessor; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var PrivateMessageProcessor |
||
| 24 | */ |
||
| 25 | private $privateMessageProcessor; |
||
| 26 | |||
| 27 | |||
| 28 | public function __construct(PrivateMessageProcessor $privateMessageProcessor, InlineQueryProcessor $inlineQueryProcessor) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Processes update and delegates it to corresponding service |
||
| 36 | * |
||
| 37 | * @param Update $update |
||
| 38 | */ |
||
| 39 | public function process(Update $update) |
||
| 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.