WordPress.org

Make WordPress Core

Ticket #53359: 53359-3-CS-remove-redundant-semicolons.patch

File 53359-3-CS-remove-redundant-semicolons.patch, 1.3 KB (added by jrf, 2 months ago)
  • src/wp-includes/formatting.php

    From e1d17f4f99fc996e49d573a1f0dac36dcb77657c Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Tue, 20 Jul 2021 15:23:34 +0200
    Subject: [PATCH] CS: remove redundant semicolons
    
    ---
     src/wp-includes/formatting.php   | 4 ++--
     tests/phpunit/includes/utils.php | 2 +-
     2 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
    index 238bcc738c..9fc4e185d6 100644
    a b function wp_init_targeted_link_rel_filters() { 
    32653265
    32663266        foreach ( $filters as $filter ) {
    32673267                add_filter( $filter, 'wp_targeted_link_rel' );
    3268         };
     3268        }
    32693269}
    32703270
    32713271/**
    function wp_remove_targeted_link_rel_filters() { 
    32883288
    32893289        foreach ( $filters as $filter ) {
    32903290                remove_filter( $filter, 'wp_targeted_link_rel' );
    3291         };
     3291        }
    32923292}
    32933293
    32943294/**
  • tests/phpunit/includes/utils.php

    diff --git a/tests/phpunit/includes/utils.php b/tests/phpunit/includes/utils.php
    index 7a0de67377..e37c3c15d6 100644
    a b function gen_tests_array( $name, $array ) { 
    378378/**
    379379 * Use to create objects by yourself
    380380 */
    381 class MockClass {};
     381class MockClass {}
    382382
    383383/**
    384384 * Drops all tables from the WordPress database