Code Duplication    Length = 7-7 lines in 2 locations

src/Command/Get.php 1 location

@@ 84-90 (lines=7) @@
81
     * @param int $code The return status.
82
     * @return int The return status
83
     */
84
    private function _error(OutputInterface $output, $message, $code = 1)
85
    {
86
        $stderr = $output instanceof ConsoleOutput ? $output->getErrorOutput() : $output;
87
        $stderr->writeln("<error>{$message}</error>");
88
89
        return $code;
90
    }
91
}
92

src/Command/Set.php 1 location

@@ 86-92 (lines=7) @@
83
     * @param int $code The return status.
84
     * @return int The return status
85
     */
86
    private function _error(OutputInterface $output, $message, $code = 1)
87
    {
88
        $stderr = $output instanceof ConsoleOutput ? $output->getErrorOutput() : $output;
89
        $stderr->writeln("<error>{$message}</error>");
90
91
        return $code;
92
    }
93
94
    /**
95
     * Generates the simple format of a new password using command-line options.