Code Duplication    Length = 10-10 lines in 2 locations

src/library/ThreemaGateway/Model/Messages.php 2 locations

@@ 342-351 (lines=10) @@
339
                $resultIndex = 'ackmsgs';
340
                break;
341
342
            case self::TYPE_FILE_MESSAGE:
343
                /** @var Zend_Db_Table_Select $select */
344
                $select = $this->_getDb()->select()
345
                    ->from(['message' => self::DB_TABLE_MESSAGES . '_file'])
346
                    ->joinInner(
347
                        ['filelist' => self::DB_TABLE_FILES],
348
                        'filelist.message_id = message.message_id'
349
                    );
350
351
                /** @var string $resultIndex index to use for additional data from query */
352
                $resultIndex = 'files';
353
                break;
354
@@ 355-364 (lines=10) @@
352
                $resultIndex = 'files';
353
                break;
354
355
            case self::TYPE_IMAGE_MESSAGE:
356
                /** @var Zend_Db_Table_Select $select */
357
                $select = $this->_getDb()->select()
358
                    ->from(['message' => self::DB_TABLE_MESSAGES . '_image'])
359
                    ->joinInner(
360
                        ['filelist' => self::DB_TABLE_FILES],
361
                        'filelist.message_id = message.message_id'
362
                    );
363
364
                /** @var string $resultIndex index to use for additional data from query */
365
                $resultIndex = 'files';
366
                break;
367