This commit is contained in:
Yuri Kuznetsov
2024-05-14 11:52:26 +03:00
parent e5a012cdc7
commit dce9c437bf
5 changed files with 4 additions and 6 deletions

View File

@@ -163,7 +163,7 @@ class Autoload
try {
$data = $this->getData();
}
catch (Exception $e) {} // bad permissions
catch (Exception) {} // bad permissions
if (empty($data)) {
return;

View File

@@ -62,7 +62,6 @@ class Crypt
throw new RuntimeException("openssl extension is not loaded.");
}
/** @var string $iv */
$iv = openssl_random_pseudo_bytes(16);
$this->iv = $iv;

View File

@@ -82,7 +82,7 @@ class DataCache
$result = $this->fileManager->putPhpContents($cacheFile, $data, true, true);
if ($result === false) {
throw new RuntimeException("Could not store '{$key}'.");
throw new RuntimeException("Could not store '$key'.");
}
}

View File

@@ -40,7 +40,6 @@ use DateTimeZone;
use Exception;
use RuntimeException;
/**
* Util for a date-time formatting and conversion.
* Available as 'dateTime' service.

View File

@@ -231,7 +231,7 @@ class Language
continue;
}
$result &= $this->fileManager->mergeJsonContents($path . "/{$scope}.json", $data);
$result &= $this->fileManager->mergeJsonContents($path . "/$scope.json", $data);
}
}
@@ -241,7 +241,7 @@ class Language
continue;
}
$result &= $this->fileManager->unsetJsonContents($path . "/{$scope}.json", $unsetData);
$result &= $this->fileManager->unsetJsonContents($path . "/$scope.json", $unsetData);
}
}