mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-29 07:26:05 +00:00
ref
This commit is contained in:
@@ -163,7 +163,7 @@ class Autoload
|
||||
try {
|
||||
$data = $this->getData();
|
||||
}
|
||||
catch (Exception $e) {} // bad permissions
|
||||
catch (Exception) {} // bad permissions
|
||||
|
||||
if (empty($data)) {
|
||||
return;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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'.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ use DateTimeZone;
|
||||
use Exception;
|
||||
use RuntimeException;
|
||||
|
||||
|
||||
/**
|
||||
* Util for a date-time formatting and conversion.
|
||||
* Available as 'dateTime' service.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user