making StyleCI happy

This commit is contained in:
El RIDO 2017-10-04 22:02:27 +02:00
parent 6e8eafe129
commit 62f0b95377
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -108,16 +108,16 @@ class Configuration
// don't overwrite already converted file
if (!is_file($configFile)) {
$iniUpgradeError = false;
$context = stream_context_create();
$context = stream_context_create();
$iniHandle = fopen($configIni, 'r', 1, $context);
$written = file_put_contents($configFile, ';<?php /*' . PHP_EOL);
$written = file_put_contents($configFile, $iniHandle, FILE_APPEND);
$written = file_put_contents($configFile, ';<?php /*' . PHP_EOL);
$written = file_put_contents($configFile, $iniHandle, FILE_APPEND);
fclose($iniHandle);
unlink($configIni);
}
// cleanup sample, too
$configSample = PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.sample.php';
$configSample = PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.sample.php';
$configIniSample = PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.ini.sample';
if (is_readable($configIniSample)) {
if (is_readable($configSample)) {