Make WordPress Core


Ignore:
Timestamp:
09/14/2009 02:03:32 PM (17 years ago)
Author:
ryan
Message:

Remove trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r11853 r11930  
    215215                                        // Trim the query of everything up to the '?'.
    216216                                        $query = preg_replace("!^.+\?!", '', $query);
    217                                                                                
     217
    218218                                        // Substitute the substring matches into the query.
    219219                                        $query = addslashes(WP_MatchesMapRegex::apply($query, $matches));
    … …  
    15951595/**
    15961596 * Helper class to remove the need to use eval to replace $matches[] in query strings.
    1597  * 
     1597 *
    15981598 * @since 2.9.0
    15991599 */
    … …  
    16011601        /**
    16021602         * store for matches
    1603          * 
     1603         *
    16041604         * @access private
    16051605         * @var array
    16061606         */
    16071607        var $_matches;
    1608        
     1608
    16091609        /**
    16101610         * store for mapping result
    1611          * 
     1611         *
    16121612         * @access public
    16131613         * @var string
    16141614         */
    16151615        var $output;
    1616        
     1616
    16171617        /**
    16181618         * subject to perform mapping on (query string containing $matches[] references
    1619          * 
     1619         *
    16201620         * @access private
    16211621         * @var string
    16221622         */
    16231623        var $_subject;
    1624        
    1625         /**
    1626          * regexp pattern to match $matches[] references 
    1627          * 
     1624
     1625        /**
     1626         * regexp pattern to match $matches[] references
     1627         *
    16281628         * @var string
    16291629         */
    16301630        var $_pattern = '(\$matches\[[1-9]+[0-9]*\])'; // magic number
    1631        
     1631
    16321632        /**
    16331633         * constructor
    1634          * 
     1634         *
    16351635         * @param string $subject subject if regex
    16361636         * @param array  $matches data to use in map
    16371637         * @return self
    1638          */                                             
     1638         */
    16391639        function WP_MatchesMapRegex($subject, $matches) {
    16401640                $this->_subject = $subject;
    16411641                $this->_matches = $matches;
    1642                 $this->output = $this->_map();                         
    1643         }
    1644        
     1642                $this->output = $this->_map();
     1643        }
     1644
    16451645        /**
    16461646         * Substitute substring matches in subject.
    1647          * 
     1647         *
    16481648         * static helper function to ease use
    1649          * 
     1649         *
    16501650         * @access public
    16511651         * @param string $subject subject
    … …  
    16551655        function apply($subject, $matches) {
    16561656                $oSelf =& new WP_MatchesMapRegex($subject, $matches);
    1657                 return $oSelf->output;                                                                                                                         
    1658         }
    1659        
    1660         /**
    1661          * do the actual mapping 
    1662          * 
     1657                return $oSelf->output;
     1658        }
     1659
     1660        /**
     1661         * do the actual mapping
     1662         *
    16631663         * @access private
    16641664         * @return string
    … …  
    16681668                return preg_replace_callback($this->_pattern, $callback, $this->_subject);
    16691669        }
    1670        
     1670
    16711671        /**
    16721672         * preg_replace_callback hook
    1673          * 
     1673         *
    16741674         * @access public
    16751675         * @param  array $matches preg_replace regexp matches
    … …  
    16801680                return ( isset( $this->_matches[$index] ) ? $this->_matches[$index] : '' );
    16811681        }
    1682        
     1682
    16831683}
    16841684
Note: See TracChangeset for help on using the changeset viewer.