diff --git a/application/Espo/Core/Utils/Autoload.php b/application/Espo/Core/Utils/Autoload.php index ee3ac69621..a2b8c3ec55 100644 --- a/application/Espo/Core/Utils/Autoload.php +++ b/application/Espo/Core/Utils/Autoload.php @@ -163,7 +163,7 @@ class Autoload try { $data = $this->getData(); } - catch (Exception $e) {} // bad permissions + catch (Exception) {} // bad permissions if (empty($data)) { return; diff --git a/application/Espo/Core/Utils/Crypt.php b/application/Espo/Core/Utils/Crypt.php index 51832bbbc4..11918d0a36 100644 --- a/application/Espo/Core/Utils/Crypt.php +++ b/application/Espo/Core/Utils/Crypt.php @@ -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; diff --git a/application/Espo/Core/Utils/DataCache.php b/application/Espo/Core/Utils/DataCache.php index f0abde9ff2..24f6d3ba4b 100644 --- a/application/Espo/Core/Utils/DataCache.php +++ b/application/Espo/Core/Utils/DataCache.php @@ -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'."); } } diff --git a/application/Espo/Core/Utils/DateTime.php b/application/Espo/Core/Utils/DateTime.php index 8cc402ce45..0ad0da52d7 100644 --- a/application/Espo/Core/Utils/DateTime.php +++ b/application/Espo/Core/Utils/DateTime.php @@ -40,7 +40,6 @@ use DateTimeZone; use Exception; use RuntimeException; - /** * Util for a date-time formatting and conversion. * Available as 'dateTime' service. diff --git a/application/Espo/Core/Utils/Language.php b/application/Espo/Core/Utils/Language.php index d6f88e7c63..1ebaab226f 100644 --- a/application/Espo/Core/Utils/Language.php +++ b/application/Espo/Core/Utils/Language.php @@ -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); } }