Skip to content

Commit

Permalink
Update PHP code sniffer version
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandomm committed Oct 24, 2023
1 parent de76d8a commit 3969b80
Show file tree
Hide file tree
Showing 8 changed files with 211 additions and 50 deletions.
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=5.4",
"squizlabs/php_codesniffer": "^3.3.1"
"squizlabs/php_codesniffer": "^3.7.2"
},
"require-dev": {
"wp-coding-standards/wpcs": "^2.3",
"wp-coding-standards/wpcs": "^3.0.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
207 changes: 182 additions & 25 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inc/block-widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function mailrelay_wpforms_init() {
'mailrelay/mailrelay-wpforms',
array(
'editor_script' => 'mailrelay-wpforms-block',
'editor_style' => 'mailrelay-wpforms-block-editor-style'
'editor_style' => 'mailrelay-wpforms-block-editor-style',
)
);
}
Expand Down
6 changes: 1 addition & 5 deletions inc/class-mailrelay-wpforms.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
class Mailrelay_WPForms {

public function __construct() {

add_filter( 'wpforms_builder_settings_sections', array( $this, 'settings_section' ), 20, 2 );
add_filter( 'wpforms_form_settings_panel_content', array( $this, 'settings_section_content' ), 20 );
add_action( 'wpforms_process_complete', array( $this, 'send_data_to_mailrelay' ), 10, 4 );

}

public function settings_section( $sections, $form_data ) {
public function settings_section( $sections ) {
$sections['mailrelay'] = __( 'Mailrelay', 'mailrelay' );
return $sections;
}
Expand Down Expand Up @@ -134,9 +132,7 @@ public function send_data_to_mailrelay( $fields, $entry, $form_data, $entry_id )
)
);
}

}

}

new Mailrelay_WPForms();
2 changes: 1 addition & 1 deletion inc/class-mailrelaypages.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function render_admin_page() {
<p>
<?php
/* translators: %1: host %2: authentication link */
echo sprintf( __( 'You are currently logged in as <strong>%1$s.ipzmarketing.com</strong> (<a href="%2$s">Change Account</a>)', 'mailrelay' ), esc_html( $this->mailrelay_data()['host'] ), esc_url( $link ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
printf( __( 'You are currently logged in as <strong>%1$s.ipzmarketing.com</strong> (<a href="%2$s">Change Account</a>)', 'mailrelay' ), esc_html( $this->mailrelay_data()['host'] ), esc_url( $link ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
</p>
<?php
Expand Down
Loading

0 comments on commit 3969b80

Please sign in to comment.