Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/24/2019 01:38:37 PM (4 years ago)
Author:
netweb
Message:

Build Tools: Add PHPCS with custom bbPress ruleset

  • This changeset adds an initial bbPress PHPCS ruleset
  • Future iteration of the rules in the ruleset can follow later
  • To run the PHPCS check run `grunt phpcs

Fixes #3294.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/Invision.php

    r6670 r7006  
    541541
    542542    private function to_char( $input ) {
    543         $output = "";
     543        $output = '';
    544544        for ( $i = 0; $i < strlen( $input ); $i++ ) {
    545545            $j = ord( $input{$i} );
    546546            if ( ( $j >= 65 && $j <= 90 )
    547547                || ( $j >= 97 && $j <= 122 )
    548                 || ( $j >= 48 && $j <= 57 ) )
    549             {
     548                || ( $j >= 48 && $j <= 57 ) ) {
    550549                $output .= $input{$i};
    551550            } else {
    552                 $output .= "&#" . ord( $input{$i} ) . ";";
     551                $output .= '&#' . ord( $input{$i} ) . '';
    553552            }
    554553        }
Note: See TracChangeset for help on using the changeset viewer.