Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Aug 8, 2024
1 parent 06722db commit a290392
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions program/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,13 @@ function rcube_webmail() {
// do not apply styles to an error page (with no image)
if (contents.find('img').length) {
contents.find('img').css({ maxWidth: '100%', maxHeight: '100%' });
contents.find('body').css({ display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%', margin: 0 });
contents.find('body').css({
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
height: '100%',
margin: 0
});
contents.find('html').css({ height: '100%' });
}
});
Expand Down Expand Up @@ -6015,9 +6021,7 @@ function rcube_webmail() {
}
});

if (style) {
img.css('transform', style.join(' '));
}
img.css('transform', style.join(' '));
};

// Update import dialog state
Expand Down
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_imap_generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3885,7 +3885,7 @@ public function execute($command, $arguments = [], $options = 0, $filter = null)
// Send command
if (!$this->putLineC($query, true, $options & self::COMMAND_ANONYMIZED)) {
preg_match('/^[A-Z0-9]+ ((UID )?[A-Z]+)/', $query, $matches);
$cmd = $matches[1] ?: 'UNKNOWN';
$cmd = $matches[1] ?? 'UNKNOWN';
$this->setError(self::ERROR_COMMAND, "Failed to send {$cmd} command");

return $noresp ? self::ERROR_COMMAND : [self::ERROR_COMMAND, ''];
Expand Down

0 comments on commit a290392

Please sign in to comment.