Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidperezgar committed Dec 7, 2022
1 parent 6d933bc commit 22826b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 6 additions & 2 deletions includes/class-wpvul-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ public function admin_section_api_info() {
* @return void
*/
public function emails_callback() {
if( empty( $this->wpvulnerability_settings['emails'] ) ) $this->wpvulnerability_settings['emails'] = get_bloginfo( 'admin_email' );
if ( empty( $this->wpvulnerability_settings['emails'] ) ) {
$this->wpvulnerability_settings['emails'] = get_bloginfo( 'admin_email' );
}
printf(
'<input class="regular-text" type="text" name="wpvulnerability_settings[emails]" id="wpvulnerability_emails" value="%s">',
isset( $this->wpvulnerability_settings['emails'] ) ? esc_attr( $this->wpvulnerability_settings['emails'] ) : ''
Expand All @@ -202,7 +204,9 @@ public function emails_callback() {
* @return void
*/
public function period_callback() {
if( empty( $this->wpvulnerability_settings['period'] ) ) $this->wpvulnerability_settings['period'] = 'weekly';
if ( empty( $this->wpvulnerability_settings['period'] ) ) {
$this->wpvulnerability_settings['period'] = 'weekly';
}
?>
<select name="wpvulnerability_settings[period]" id="wpvulnerability_period">
<option value="weekly" <?php selected( $this->wpvulnerability_settings['period'], 'weekly' ); ?>><?php esc_html_e( 'Weekly', 'wpvulnerability' ); ?></option>
Expand Down
3 changes: 1 addition & 2 deletions includes/class-wpvul-notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function execute_notification() {
* @return html
*/
private function html_email( $title, $content ) {
$message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
$message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; box-sizing: border-box; font-size:18px; margin: 0;">
<head>
<meta name="viewport" content="width=device-width" />
Expand Down Expand Up @@ -159,7 +159,6 @@ private function html_email( $title, $content ) {
</td>
</tr><tr style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; box-sizing: border-box; font-size:18px; margin: 0;"><td class="content-block alignlef" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; box-sizing: border-box; font-size:18px; vertical-align: top; text-align: left; margin: 0; padding: 0 0 20px;" valign="top">';
$message .= $content;

$message .= '</tr></table><div class="footer" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; box-sizing: border-box; font-size:18px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;">
<table width="100%" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; box-sizing: border-box; font-size:18px; margin: 0;"><tr style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; box-sizing: border-box; font-size:18px; margin: 0;"><td class="aligncenter content-block" style="font-family: Helvetica Neue,Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; vertical-align: top; color: #999; text-align: center; margin: 0; padding: 0 0 20px;" align="center" valign="top">';
$message .= sprintf(
Expand Down

0 comments on commit 22826b8

Please sign in to comment.