Changeset 70

Show
Ignore:
Timestamp:
05/17/06 14:29:31 (2 years ago)
Author:
mrook
Message:

Add static keyword to methods that were used in that fashion (hopefully closes issue #38)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/classes/phing/parser/ProjectConfigurator.php

    r1 r70  
    107107     * @access public 
    108108     */ 
    109     function configure($target, $attrs, Project $project) {                
     109    public static function configure($target, $attrs, Project $project) {                
    110110 
    111111        if ($target instanceof TaskAdapter) { 
     
    152152     * @access public 
    153153     */ 
    154     function addText($project, $target, $text = null) { 
     154    public static function addText($project, $target, $text = null) { 
    155155        if ($text === null || strlen(trim($text)) === 0) { 
    156156            return; 
     
    170170     * @access public 
    171171     */ 
    172     function storeChild($project, $parent, $child, $tag) { 
     172    public static function storeChild($project, $parent, $child, $tag) { 
    173173        $ih = IntrospectionHelper::getHelper(get_class($parent)); 
    174174        $ih->storeElement($project, $parent, $child, $tag); 
  • branches/2.2/classes/phing/system/io/FileSystem.php

    r1 r70  
    5454     * this platform's local filesystem driver. 
    5555     */ 
    56     function getFileSystem() { 
     56    static function getFileSystem() { 
    5757        if (self::$fs === null) { 
    5858            switch(Phing::getProperty('host.fstype')) { 
  • branches/2.2/classes/phing/system/lang/Character.php

    r1 r70  
    3030    // anyway just a thought 
    3131 
    32     function isLetter($char) { 
     32    public static function isLetter($char) { 
    3333 
    3434        if (strlen($char) !== 1) 
  • branches/2.2/classes/phing/types/selectors/SelectorUtils.php

    r1 r70  
    6969     * pattern up to the first "**". 
    7070     */ 
    71     public function matchPatternStart($pattern, $str, $isCaseSensitive = true) { 
     71    public static function matchPatternStart($pattern, $str, $isCaseSensitive = true) { 
    7272 
    7373        // When str starts with a DIRECTORY_SEPARATOR, pattern has to start with a 
     
    127127     *         or <code>false</code> otherwise. 
    128128     */ 
    129     public function matchPath($pattern, $str, $isCaseSensitive = true) { 
     129    public static function matchPath($pattern, $str, $isCaseSensitive = true) { 
    130130     
    131131        // When str starts with a DIRECTORY_SEPARATOR, pattern has to start with a 
     
    260260     *         or <code>false</code> otherwise. 
    261261     */ 
    262     public function match($pattern, $str, $isCaseSensitive = true) { 
     262    public static function match($pattern, $str, $isCaseSensitive = true) { 
    263263     
    264264        $patArr = StringHelper::toCharArray($pattern); 
  • branches/2.2/classes/phing/util/FileUtils.php

    r1 r70  
    4747     * @return Reader Assembled Reader (w/ filter chains). 
    4848     */ 
    49     function getChainedReader(Reader $in, &$filterChains, Project $project) { 
     49    public static function getChainedReader(Reader $in, &$filterChains, Project $project) { 
    5050        if (!empty($filterChains)) { 
    5151            $crh = new ChainReaderHelper();