Make WordPress Core


Ignore:
Timestamp:
01/11/2019 06:39:55 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace violations.

See #45934.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r44556 r44566  
    24792479                $tag = '';
    24802480                // or close to be safe $tag = '/' . $tag;
    2481             } // if stacktop value = tag close value then pop
    2482             elseif ( $tagstack[ $stacksize - 1 ] == $tag ) { // found closing tag
     2481
     2482                // if stacktop value = tag close value then pop
     2483            } elseif ( $tagstack[ $stacksize - 1 ] == $tag ) { // found closing tag
    24832484                $tag = '</' . $tag . '>'; // Close Tag
    24842485                // Pop
     
    25062507            if ( '' == $tag ) {
    25072508                // do nothing
    2508             } // ElseIf it presents itself as a self-closing tag...
    2509             elseif ( substr( $regex[2], -1 ) == '/' ) {
     2509            } elseif ( substr( $regex[2], -1 ) == '/' ) { // ElseIf it presents itself as a self-closing tag...
    25102510                // ...but it isn't a known single-entity self-closing tag, then don't let it be treated as such and
    25112511                // immediately close it with a closing tag (the tag will encapsulate no text as a result)
     
    25132513                    $regex[2] = trim( substr( $regex[2], 0, -1 ) ) . "></$tag";
    25142514                }
    2515             } // ElseIf it's a known single-entity tag but it doesn't close itself, do so
    2516             elseif ( in_array( $tag, $single_tags ) ) {
     2515            } elseif ( in_array( $tag, $single_tags ) ) { // ElseIf it's a known single-entity tag but it doesn't close itself, do so
    25172516                $regex[2] .= '/';
    2518             } // Else it's not a single-entity tag
    2519             else {
     2517            } else { // Else it's not a single-entity tag
    25202518                // If the top of the stack is the same as the tag we want to push, close previous tag
    25212519                if ( $stacksize > 0 && ! in_array( $tag, $nestable_tags ) && $tagstack[ $stacksize - 1 ] == $tag ) {
Note: See TracChangeset for help on using the changeset viewer.