Code Duplication    Length = 5-5 lines in 2 locations

module/Core/src/Yawik.php 1 location

@@ 138-142 (lines=5) @@
135
136
        date_default_timezone_set('Europe/Berlin');
137
138
        if (!version_compare(PHP_VERSION, '5.6.0', 'ge')) {
139
            echo sprintf('<p>Sorry, YAWIK requires at least PHP 5.6.0 to run, but this server currently provides PHP %s</p>', PHP_VERSION);
140
            echo '<p>Please ask your servers\' administrator to install the proper PHP version.</p>';
141
            exit;
142
        }
143
144
        if (php_sapi_name() == 'cli-server') {
145
            $parseUrl = parse_url(substr($_SERVER["REQUEST_URI"], 1));

module/Core/src/Application.php 1 location

@@ 140-144 (lines=5) @@
137
     */
138
    public static function init($configuration = [])
139
    {
140
        if (!version_compare(PHP_VERSION, '5.6.0', 'ge')) {
141
            echo sprintf('<p>Sorry, YAWIK requires at least PHP 5.6.0 to run, but this server currently provides PHP %s</p>', PHP_VERSION);
142
            echo '<p>Please ask your servers\' administrator to install the proper PHP version.</p>';
143
            exit;
144
        }
145
146
        ini_set('display_errors', true);
147
        ini_set('error_reporting', E_ALL | E_STRICT);