Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/Compression.php

    r41870 r42343  
    5757    public function test_gzdeflate() {
    5858
    59         if ( !function_exists( 'gzdeflate' ) ) {
     59        if ( ! function_exists( 'gzdeflate' ) ) {
    6060            $this->fail( 'gzdeflate function not available' );
    6161        }
     
    6565
    6666        // Set up a default request
    67         $_GET['test'] = 2;
     67        $_GET['test']                    = 2;
    6868        $_SERVER['HTTP_ACCEPT_ENCODING'] = 'deflate';
    6969
     
    8484    public function test_gzencode() {
    8585
    86         if ( !function_exists('gzencode') ) {
     86        if ( ! function_exists( 'gzencode' ) ) {
    8787            $this->fail( 'gzencode function not available' );
    8888        }
     
    9292
    9393        // Set up a default request
    94         $_GET['test'] = 2;
     94        $_GET['test']                    = 2;
    9595        $_SERVER['HTTP_ACCEPT_ENCODING'] = 'gzip';
    9696
     
    115115
    116116        // Set up a default request
    117         $_GET['test'] = 2;
     117        $_GET['test']                    = 2;
    118118        $_SERVER['HTTP_ACCEPT_ENCODING'] = 'unknown';
    119119
     
    201201    /**
    202202     * Undo gzencode.  This is ugly, but there's no stock gzdecode() function.
     203     *
    203204     * @param string $encoded_data
    204205     * @return string
Note: See TracChangeset for help on using the changeset viewer.