Code Duplication    Length = 8-9 lines in 2 locations

src/eXpansion/Framework/Core/Services/Application/AbstractApplication.php 2 locations

@@ 94-102 (lines=9) @@
91
92
        $status = true;
93
        $showIni = false;
94
        foreach ($extensions as $extension => $description) {
95
            if (!extension_loaded($extension)) {
96
                $console->writeln(
97
                    "<error>eXpansion needs PHP extension $extension to run. Enable it to run eXpansion => " . $description . "</error>"
98
                );
99
                $status = false;
100
                $showIni = true;
101
            }
102
        }
103
104
        $recommend = array(
105
            'xmlrpc' => "It will have better performances !",
@@ 107-114 (lines=8) @@
104
        $recommend = array(
105
            'xmlrpc' => "It will have better performances !",
106
        );
107
        foreach ($recommend as $extension => $reason) {
108
            if (!extension_loaded($extension)) {
109
                $console->writeln(
110
                    "<error>eXpansion works better with PHP extension</error> <info>$extension</info>: " . $reason . ""
111
                );
112
                $showIni = true;
113
            }
114
        }
115
116
        if ($showIni) {
117
            $console->writeln('<info>[PHP] PHP is using fallowing ini file :</info> "'. php_ini_loaded_file() .'"');