mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08:00
Some code cleanups
This commit is contained in:
parent
aa16ef3dd0
commit
36971482a0
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue