Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (9 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/functions/referer.php

    r36717 r42343  
    126126         * @ticket 27152
    127127         */
    128         public function test_raw_referer_empty(  ) {
     128        public function test_raw_referer_empty() {
    129129                $this->assertFalse( wp_get_raw_referer() );
    130130        }
    … …  
    133133         * @ticket 27152
    134134         */
    135         public function test_raw_referer(  ) {
     135        public function test_raw_referer() {
    136136                $_SERVER['HTTP_REFERER'] = addslashes( 'http://example.com/foo?bar' );
    137137                $this->assertSame( 'http://example.com/foo?bar', wp_get_raw_referer() );
    … …  
    141141         * @ticket 27152
    142142         */
    143         public function test_raw_referer_from_request(  ) {
     143        public function test_raw_referer_from_request() {
    144144                $_REQUEST['_wp_http_referer'] = addslashes( 'http://foo.bar/baz' );
    145145                $this->assertSame( 'http://foo.bar/baz', wp_get_raw_referer() );
    … …  
    149149         * @ticket 27152
    150150         */
    151         public function test_raw_referer_both(  ) {
    152                 $_SERVER['HTTP_REFERER'] = addslashes( 'http://example.com/foo?bar' );
     151        public function test_raw_referer_both() {
     152                $_SERVER['HTTP_REFERER']      = addslashes( 'http://example.com/foo?bar' );
    153153                $_REQUEST['_wp_http_referer'] = addslashes( 'http://foo.bar/baz' );
    154154                $this->assertSame( 'http://foo.bar/baz', wp_get_raw_referer() );
Note: See TracChangeset for help on using the changeset viewer.