Code Duplication    Length = 8-9 lines in 2 locations

src/Skobkin/Bundle/PointToolsBundle/Service/Telegram/PrivateMessageProcessor.php 2 locations

@@ 263-271 (lines=9) @@
260
                } else {
261
                    $this->sendError($account, 'Notification type does not exist.');
262
                }
263
            } else {
264
                $keyboard->keyboard = [
265
                    ['/set notifications renames'],
266
                    ['/set notifications subscribers'],
267
                    ['exit'],
268
                ];
269
270
                $this->sendPlainTextMessage($account, 'Choose which notification type to toggle', $keyboard);
271
            }
272
273
        } else {
274
            $keyboard->keyboard = [
@@ 273-280 (lines=8) @@
270
                $this->sendPlainTextMessage($account, 'Choose which notification type to toggle', $keyboard);
271
            }
272
273
        } else {
274
            $keyboard->keyboard = [
275
                ['/set notifications'],
276
                ['exit'],
277
            ];
278
279
            $this->sendTemplatedMessage($account, '@SkobkinPointTools/Telegram/settings.md.twig', ['account' => $account], $keyboard);
280
        }
281
    }
282
283
    /**