Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 249-257 (lines=9) @@
246
                } else {
247
                    $this->sendError($account, 'Notification type does not exist.');
248
                }
249
            } else {
250
                $keyboard->keyboard = [
251
                    ['/set notifications renames'],
252
                    ['/set notifications subscribers'],
253
                    ['exit'],
254
                ];
255
256
                $this->messenger->sendMessage($account, 'Choose which notification type to toggle', MessageSender::PARSE_PLAIN, $keyboard);
257
            }
258
259
        } else {
260
            $keyboard->keyboard = [
@@ 259-266 (lines=8) @@
256
                $this->messenger->sendMessage($account, 'Choose which notification type to toggle', MessageSender::PARSE_PLAIN, $keyboard);
257
            }
258
259
        } else {
260
            $keyboard->keyboard = [
261
                ['/set notifications'],
262
                ['exit'],
263
            ];
264
265
            $this->messenger->sendTemplatedMessage($account, '@SkobkinPointTools/Telegram/settings.md.twig', ['account' => $account], $keyboard);
266
        }
267
    }
268
269
    /**