Some code cleanups

This commit is contained in:
djmaze 2021-09-01 11:02:51 +02:00
parent aa16ef3dd0
commit 36971482a0
2 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ export class AbstractViewPopup extends AbstractView
*/
registerPopupKeyDown() {
addEventListener('keydown', event => {
if (event && this.modalVisibility && this.modalVisibility()) {
if (event && this.modalVisibility()) {
if (!this.bDisabeCloseOnEsc && 'Escape' == event.key) {
this.cancelCommand();
return false;

View file

@ -20,7 +20,7 @@ class Crypt
public static function Encrypt(string $sString, string $sKey, string $sCipher = '') : string
{
if (0 === \strlen($sString)) {
if (!\strlen($sString)) {
return '';
}
if ($sCipher && \is_callable('openssl_encrypt')) {
@ -35,7 +35,7 @@ class Crypt
public static function Decrypt(string $sString, string $sKey, string $sCipher = '') : string
{
if (0 === \strlen($sString)) {
if (!\strlen($sString)) {
return '';
}
if ($sCipher && \is_callable('openssl_encrypt')) {