Skip to content

Commit

Permalink
Visibility per linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Dec 16, 2024
1 parent e9d8e3d commit d4e9dce
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/class-cf7-extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function asset_url( $asset_path_relative ) {
*
* @return void
*/
function wpcf7_add_meta_boxes( $post_id ) {
public function wpcf7_add_meta_boxes( $post_id ) {
add_meta_box(
'cf7s-subject',
__( 'Extra Settings', 'contact-form-7-extras' ),
Expand Down Expand Up @@ -373,7 +373,7 @@ public function wpcf7_metabox( $cf7 ) {
*
* @return void
*/
function wpcf7_save_contact_form( $cf7 ) {
public function wpcf7_save_contact_form( $cf7 ) {
if ( ! isset( $_POST ) || empty( $_POST ) || ! isset( $_POST['extra'] ) || ! is_array( $_POST['extra'] ) ) {
return;
}
Expand All @@ -398,7 +398,7 @@ function wpcf7_save_contact_form( $cf7 ) {
*
* @return void
*/
function admin_enqueue_scripts( $hook ) {
public function admin_enqueue_scripts( $hook ) {
if ( false === strpos( $hook, 'wpcf7' ) ) {
return;
}
Expand Down Expand Up @@ -535,7 +535,7 @@ public function get_form_settings( $form, $field = null, $fresh = false ) {
*
* @return void
*/
function maybe_alter_scripts() {
public function maybe_alter_scripts() {
// @todo use wp_scripts() in future
global $wp_scripts;

Expand Down Expand Up @@ -592,7 +592,7 @@ public function dequeue_styles() {
*
* @return void
*/
function track_form_events() {
public function track_form_events() {
if ( empty( $this->rendered ) ) {
return;
}
Expand Down Expand Up @@ -651,7 +651,7 @@ function track_form_events() {
*
* @return void
*/
function wpcf7_submit( $form, $result ) {
public function wpcf7_submit( $form, $result ) {
// JS is already doing the redirect.
if ( isset( $_POST['_wpcf7_is_ajax_call'] ) || ! isset( $result['status'] ) ) {
return;
Expand All @@ -677,7 +677,7 @@ function wpcf7_submit( $form, $result ) {
*
* @return WPCF7_ContactForm
*/
function maybe_reset_autop( $form ) {
public function maybe_reset_autop( $form ) {
$form_instance = WPCF7_ContactForm::get_current();
$disable_autop = $this->get_form_settings( $form_instance, 'disable-autop' );

Expand Down

0 comments on commit d4e9dce

Please sign in to comment.