private static function checkDefaultKeys()
 {
     if (!preg_match("/" . self::$VALID_PATTERN . "/", Config::$APPLICATION_ID, $matches) || !preg_match("/" . self::$VALID_PATTERN . "/", Config::$SECRET_KEY, $matches) || Config::$APP_VERSION == null) {
         echo "\n";
         Log::writeWarn("ApplicationID SecretKey application version is not set one or all values.", $target = 'console');
         Log::writeInfo("Try run again with specified ApplicationID SecretKey and application version as script arguments " . "or edit it in config file [root_folder]" . DS . "config.php", $target = 'console');
         Log::writeInfo("NOTE: Run script pattern <ScriptName> [ApplicationID] [SecretKey] [AppVersion]", $target = 'console');
         if (!preg_match("/" . self::$VALID_PATTERN . "/", Config::$APPLICATION_ID, $matches)) {
             echo "\n";
             Log::writeWarn("Don't set or wrong application ID value.", $target = 'console');
             Log::writeInfo("Please enter application ID and press [Enter]:!<new>", $target = 'console');
             Config::$APPLICATION_ID = trim(fgets(STDIN));
             while (!preg_match("/" . self::$VALID_PATTERN . "/", Config::$APPLICATION_ID, $matches)) {
                 Log::writeError("The value is invalid, please try again:!<new>", $target = 'console');
                 Config::$APPLICATION_ID = trim(fgets(STDIN));
             }
         }
         if (!preg_match("/" . self::$VALID_PATTERN . "/", Config::$SECRET_KEY, $matches)) {
             echo "\n";
             Log::writeWarn("Don't set or wrong CodeRunner secret key value.", $target = 'console');
             Log::writeInfo("Please enter CodeRunner secret key and press [Enter]:!<new>", $target = 'console');
             Config::$SECRET_KEY = trim(fgets(STDIN));
             while (!preg_match("/" . self::$VALID_PATTERN . "/", Config::$SECRET_KEY, $matches)) {
                 Log::writeError("The value is invalid, please try again:!<new>", $target = 'console');
                 Config::$SECRET_KEY = trim(fgets(STDIN));
             }
         }
         if (Config::$APP_VERSION == null) {
             echo "\n";
             Log::writeWarn("Don't set or wrong application version value.", $target = 'console');
             Log::writeInfo("Please enter application version and press [Enter]:!<new>", $target = 'console');
             Config::$APP_VERSION = trim(fgets(STDIN));
             while (Config::$APP_VERSION == null) {
                 Log::writeError("The value is invalid, please try again:!<new>", $target = 'console');
                 Config::$APP_VERSION = trim(fgets(STDIN));
             }
         }
         Config::$need_save_keys = true;
     }
 }