mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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() {
|
registerPopupKeyDown() {
|
||||||
addEventListener('keydown', event => {
|
addEventListener('keydown', event => {
|
||||||
if (event && this.modalVisibility && this.modalVisibility()) {
|
if (event && this.modalVisibility()) {
|
||||||
if (!this.bDisabeCloseOnEsc && 'Escape' == event.key) {
|
if (!this.bDisabeCloseOnEsc && 'Escape' == event.key) {
|
||||||
this.cancelCommand();
|
this.cancelCommand();
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class Crypt
|
||||||
|
|
||||||
public static function Encrypt(string $sString, string $sKey, string $sCipher = '') : string
|
public static function Encrypt(string $sString, string $sKey, string $sCipher = '') : string
|
||||||
{
|
{
|
||||||
if (0 === \strlen($sString)) {
|
if (!\strlen($sString)) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
if ($sCipher && \is_callable('openssl_encrypt')) {
|
if ($sCipher && \is_callable('openssl_encrypt')) {
|
||||||
|
|
@ -35,7 +35,7 @@ class Crypt
|
||||||
|
|
||||||
public static function Decrypt(string $sString, string $sKey, string $sCipher = '') : string
|
public static function Decrypt(string $sString, string $sKey, string $sCipher = '') : string
|
||||||
{
|
{
|
||||||
if (0 === \strlen($sString)) {
|
if (!\strlen($sString)) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
if ($sCipher && \is_callable('openssl_encrypt')) {
|
if ($sCipher && \is_callable('openssl_encrypt')) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue