Code Duplication    Length = 5-5 lines in 3 locations

src/ConfigurationLoader.php 3 locations

@@ 240-244 (lines=5) @@
237
238
        // query whether or not a system name has been specified as command line
239
        // option, if yes override the value from the configuration file
240
        if (($input->hasOptionSpecified(InputOptionKeys::SYSTEM_NAME) && $input->getOption(InputOptionKeys::SYSTEM_NAME)) ||
241
            $instance->getSystemName() === null
242
        ) {
243
            $instance->setSystemName($input->getOption(InputOptionKeys::SYSTEM_NAME));
244
        }
245
246
        // query whether or not a PID filename has been specified as command line
247
        // option, if yes override the value from the configuration file
@@ 248-252 (lines=5) @@
245
246
        // query whether or not a PID filename has been specified as command line
247
        // option, if yes override the value from the configuration file
248
        if (($input->hasOptionSpecified(InputOptionKeys::PID_FILENAME) && $input->getOption(InputOptionKeys::PID_FILENAME)) ||
249
            $instance->getPidFilename() === null
250
        ) {
251
            $instance->setPidFilename($input->getOption(InputOptionKeys::PID_FILENAME));
252
        }
253
254
        // query whether or not a Magento installation directory has been specified as command line
255
        // option, if yes override the value from the configuration file
@@ 256-260 (lines=5) @@
253
254
        // query whether or not a Magento installation directory has been specified as command line
255
        // option, if yes override the value from the configuration file
256
        if (($input->hasOptionSpecified(InputOptionKeys::INSTALLATION_DIR) && $input->getOption(InputOptionKeys::INSTALLATION_DIR)) ||
257
            $instance->getInstallationDir() === null
258
        ) {
259
            $instance->setInstallationDir($input->getOption(InputOptionKeys::INSTALLATION_DIR));
260
        }
261
262
        // query whether or not a Magento edition has been specified as command line
263
        // option, if yes override the value from the configuration file