Show
Ignore:
Timestamp:
04/28/2008 03:04:22 PM (7 months ago)
Author:
Geert
Message:

CodingStyle maintenance!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/kodoc/libraries/Kodoc.php

    r1364 r2593  
    3535 
    3636                $files = array(); 
    37                 foreach(self::$types as $type) 
     37                foreach (self::$types as $type) 
    3838                { 
    3939                        $files[$type] = array(); 
    40                         foreach(Kohana::list_files($type, TRUE) as $file) 
     40                        foreach (Kohana::list_files($type, TRUE) as $file) 
    4141                        { 
    4242                                // Not a source file 
     
    169169                $data = file($filename); 
    170170 
    171                 foreach($data as $line) 
     171                foreach ($data as $line) 
    172172                { 
    173173                        if (strpos($line, 'class') !== FALSE AND preg_match('/(?:class|interface)\s+([a-z0-9_]+).+{$/i', $line, $matches)) 
     
    186186                        $source = NULL; 
    187187 
    188                         foreach($data as $line) 
    189                         { 
    190                                 switch(substr(trim($line), 0, 2)) 
     188                        foreach ($data as $line) 
     189                        { 
     190                                switch (substr(trim($line), 0, 2)) 
    191191                                { 
    192192                                        case '/*': 
     
    284284                        $about = ''; 
    285285 
    286                         foreach($comment['about'] as $line) 
     286                        foreach ($comment['about'] as $line) 
    287287                        { 
    288288                                if (strpos($line, '`') !== FALSE) 
     
    377377                if ($implements = $reflection->getInterfaces()) 
    378378                { 
    379                         foreach($implements as $interface) 
     379                        foreach ($implements as $interface) 
    380380                        { 
    381381                                // Get implemented interfaces 
     
    392392                if ($methods = $reflection->getMethods()) 
    393393                { 
    394                         foreach($methods as $method) 
     394                        foreach ($methods as $method) 
    395395                        { 
    396396                                // Don't try to document internal methods 
     
    426426                if ($parameters = $method->getParameters()) 
    427427                { 
    428                         foreach($parameters as $param) 
     428                        foreach ($parameters as $param) 
    429429                        { 
    430430                                // Parameter data 
     
    523523                } 
    524524 
    525                 foreach($this->files as $type => $files) 
    526                 { 
    527                         foreach(Kohana::list_files($type) as $filepath) 
     525                foreach ($this->files as $type => $files) 
     526                { 
     527                        foreach (Kohana::list_files($type) as $filepath) 
    528528                        { 
    529529                                // Get the filename with no extension 
     
    547547        public function get_docs($format = 'html') 
    548548        { 
    549                 switch($format) 
     549                switch ($format) 
    550550                { 
    551551                        default: 
     
    635635                                else 
    636636                                { 
    637                                         switch(substr(trim($line), 0, 2)) 
     637                                        switch (substr(trim($line), 0, 2)) 
    638638                                        { 
    639639                                                case '//':