Changeset 2963 for trunk/vendor/Sensei

Show
Ignore:
Timestamp:
10/21/07 07:23:59 (15 months ago)
Author:
jwage
Message:

Mass search and replace for coding standards changes, doc block formatting, and code spacing.

Location:
trunk/vendor/Sensei
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/vendor/Sensei/Sensei.php

    r1651 r2963  
    3737     */ 
    3838    private static $path; 
     39 
    3940    /** 
    4041     * getPath 
     
    4546    public static function getPath() 
    4647    { 
    47         if (! self::$path) { 
     48        if ( ! self::$path) { 
    4849            self::$path = dirname(__FILE__); 
    4950        } 
    5051        return self::$path; 
    5152    } 
     53 
    5254    /** 
    5355     * simple autoload function 
     
    9294            return false; 
    9395        } 
    94         if (! self::$path) { 
     96        if ( ! self::$path) { 
    9597            self::$path = dirname(__FILE__); 
    9698        } 
     
    106108                                 . 'be loaded.'); 
    107109    } 
     110 
    108111    /** 
    109112     * Create a new instance of a class. 
  • trunk/vendor/Sensei/Sensei/Doc/Renderer/Pdf.php

    r2320 r2963  
    5959        } 
    6060    } 
    61      
     61 
    6262    /** 
    6363     * Deletes temporary files generated during LaTeX to PDF conversion. 
  • trunk/vendor/Sensei/Sensei/Doc/Renderer/Xhtml.php

    r2622 r2963  
    5353        $this->_wiki->setRenderConf('xhtml', 'Doclink', 'url_callback', array(&$this, 'makeUrl')); 
    5454    } 
    55      
     55 
    5656    /** 
    5757     * Renders table of contents as nested unordered lists. 
     
    104104        return $output; 
    105105    } 
    106      
     106 
    107107    /** 
    108108     * Renders section defined by 'section' option. If 'section' option is not 
     
    139139        return $output; 
    140140    } 
    141      
     141 
    142142    /** 
    143143     * Renders a sections and its children 
  • trunk/vendor/Sensei/Sensei/Doc/Section.php

    r2624 r2963  
    4040     */ 
    4141    private $_name; 
    42      
     42 
    4343    /** 
    4444     * The index of this section among the subsections of its parent. The index  
     
    4848     */ 
    4949    private $_index; 
    50      
     50 
    5151    /** 
    5252     * Array containing the subsections of this section. 
     
    5555     */ 
    5656    private $_children = array(); 
    57      
     57 
    5858    /** 
    5959     * The parent of this section. 
     
    6262     */ 
    6363    private $_parent; 
    64      
     64 
    6565    /** 
    6666     * Level of this section in section hierarchy. 
     
    6969     */ 
    7070    private $_level = 0; 
    71      
     71 
    7272    /** 
    7373     * Text contents of this section. 
     
    9494        } 
    9595    } 
    96      
     96 
    9797    /** 
    9898     * Adds a subsection to this section. 
     
    105105        $this->_children[] = $child; 
    106106    } 
    107      
     107 
    108108    /** 
    109109     * Returns the index of this section. 
     
    120120        } 
    121121    } 
    122      
     122 
    123123    /** 
    124124     * Returns the path of this section. 
     
    135135        } 
    136136    } 
    137      
     137 
    138138    /** 
    139139     * Returns the name of this section. 
     
    151151        } 
    152152    } 
    153      
     153 
    154154    /** 
    155155     * Returns how many subsections this section has. 
     
    161161        return count($this->_children); 
    162162    } 
    163      
     163 
    164164    /** 
    165165     * Returns the subsection that has the given index. 
     
    175175        return $this->_children[$index]; 
    176176    } 
    177      
     177 
    178178    /** 
    179179     * Returns the parent of this section. 
     
    189189        } 
    190190    } 
    191      
     191 
    192192    /** 
    193193     * Returns the next section. 
     
    218218        } else { 
    219219             
    220             if ((!$maxLevel || ($this->_level < $maxLevel)) 
     220            if (( ! $maxLevel || ($this->_level < $maxLevel)) 
    221221                && (count($this) > 0)) { 
    222222                return $this->getChild(0); 
    223223            } 
    224224             
    225             if ((!$maxLevel || ($this->_level <= $maxLevel) ) 
     225            if (( ! $maxLevel || ($this->_level <= $maxLevel) ) 
    226226                && ($this->_index < count($this->_parent) - 1)) { 
    227227                return $this->_parent->getChild($this->_index + 1); 
     
    232232        } 
    233233    } 
    234      
     234 
    235235    /** 
    236236     * Returns the previous section. 
     
    255255        } 
    256256    } 
    257      
     257 
    258258    /** 
    259259     * Finds the last child or grand child of this section. 
     
    268268    public function findLastChild($maxLevel = 0) 
    269269    { 
    270         if ((!$maxLevel || $this->_level < $maxLevel) && count($this) > 0) { 
     270        if (( ! $maxLevel || $this->_level < $maxLevel) && count($this) > 0) { 
    271271            return $this->getChild(count($this) - 1)->findLastChild(); 
    272272        } else { 
     
    274274        } 
    275275    } 
    276      
     276 
    277277    /** 
    278278     * Returns true, if this section is the root section. 
     
    284284        return $this->_parent === null; 
    285285    } 
    286      
     286 
    287287    /** 
    288288     * Returns the level of this section in section hierarchy. 
     
    294294        return $this->_level; 
    295295    } 
    296      
     296 
    297297    /** 
    298298     * Returns the text contents of this section. 
     
    326326                        // The current section did not have any text in this file. 
    327327                        // Let's assume that the text is defined in another file. 
    328                         if (!$current->isRoot() && $current->_text === '') { 
     328                        if ( ! $current->isRoot() && $current->_text === '') { 
    329329                             
    330330                            $otherFilename = $current->getPath(false, DIRECTORY_SEPARATOR) . '.txt'; 
     
    371371        // The last section did not have any text in this file. 
    372372            // Let's assume that the text is defined in another file. 
    373             if (!$current->isRoot() && $current->_text === '') { 
     373            if ( ! $current->isRoot() && $current->_text === '') { 
    374374 
    375375                $otherFilename = $current->getPath(false, DIRECTORY_SEPARATOR) . '.txt'; 
  • trunk/vendor/Sensei/Sensei/Doc/Toc.php

    r1651 r2963  
    5353        $this->_toc->parse(dirname($filename), basename($filename)); 
    5454    } 
    55      
     55 
    5656    /** 
    5757     * Finds the section that matches the given path. 
     
    109109        return $currentSection; 
    110110    } 
    111      
     111 
    112112    /** 
    113113     * Returns a root section with the given index. 
     
    120120        return $this->_toc->getChild($index); 
    121121    } 
    122      
     122 
    123123    /** 
    124124     * Returns the number of sections (excluding their subsections).