Code Duplication    Length = 5-5 lines in 3 locations

src/N98/Magento/Command/Admin/User/ChangePasswordCommand.php 1 location

@@ 67-71 (lines=5) @@
64
65
        // Password
66
        $password = $input->getArgument('password');
67
        if ($password === null) {
68
            $question = new Question('<question>Password:</question>');
69
            $question->setHidden(true);
70
            $password = $questionHelper->ask($input, $output, $question);
71
        }
72
73
        try {
74
            // @see \Magento\Framework\Session\SessionManager::isSessionExists Hack to prevent session problems

src/N98/Magento/Command/Customer/ChangePasswordCommand.php 1 location

@@ 92-96 (lines=5) @@
89
90
            // Password
91
            $password = $input->getArgument('password');
92
            if ($password === null) {
93
                $question = new Question('<question>Password:</question>');
94
                $question->setHidden(true);
95
                $password = $questionHelper->ask($input, $output, $question);
96
            }
97
98
            $website = $this->getHelper('parameter')->askWebsite($input, $output);
99

src/N98/Magento/Command/Customer/CreateCommand.php 1 location

@@ 84-88 (lines=5) @@
81
82
        // Password
83
        $password = $input->getArgument('password');
84
        if ($password === null) {
85
            $question = new Question('<question>Password:</question> ');
86
            $question->setHidden(true);
87
            $password = $questionHelper->ask($input, $output, $question);
88
        }
89
90
        // Firstname
91
        $firstname = $input->getArgument('firstname');