Make WordPress Core


Ignore:
Timestamp:
03/29/2023 07:11:26 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Apply various alignment corrections from composer format.

This fixes a few WPCS warnings along the lines of:

  • Array double arrow not aligned correctly
  • Equals sign not aligned with surrounding statements
  • Usage of ELSE IF is discouraged; use ELSEIF instead

Follow-up to [55099], [55192], [55194], [55271].

Props davidbaumwald, jrf, SergeyBiryukov.
Fixes #57994.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template-utils.php

    r55501 r55606  
    13391339            $template_hierarchy[] = $type;
    13401340        }
    1341     } else if ( preg_match( '/^(author|category|archive|tag|page)-.+$/', $slug, $matches ) ) {
     1341    } elseif ( preg_match( '/^(author|category|archive|tag|page)-.+$/', $slug, $matches ) ) {
    13421342        $template_hierarchy[] = $matches[1];
    1343     } else if ( preg_match( '/^(taxonomy|single)-(.+)$/', $slug, $matches ) ) {
     1343    } elseif ( preg_match( '/^(taxonomy|single)-(.+)$/', $slug, $matches ) ) {
    13441344        $type           = $matches[1];
    13451345        $slug_remaining = $matches[2];
Note: See TracChangeset for help on using the changeset viewer.