Assembla home | Assembla project page
 

Changeset 218

Show
Ignore:
Timestamp:
04/08/08 02:22:36 (8 months ago)
Author:
Slynderdale
Message:

This should be it for the clean up.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Driver/Abstract.php

    r217 r218  
    5656    public final function setIni($name, $value) 
    5757    { 
    58         $this->config[strtolower($name) ] = $value; 
     58        $this->config[strtolower($name)] = $value; 
    5959    } 
    6060 
     
    137137    public function addPlugin(Phergie_Plugin_Abstract_Base $plugin) 
    138138    { 
    139         $this->plugins[strtolower($plugin->getName()) ] = $plugin; 
     139        $this->plugins[strtolower($plugin->getName())] = $plugin; 
    140140    } 
    141141 
  • trunk/Phergie/Plugin/Abstract/Command.php

    r217 r218  
    4343                $name = $method->getName(); 
    4444                if (strpos($name, 'onDo') === 0) { 
    45                     $this->methods[strtolower(substr($name, 4)) ] = array( 
     45                    $this->methods[strtolower(substr($name, 4))] = array( 
    4646                        $method->getNumberOfParameters(), 
    4747                        $method->getNumberOfRequiredParameters() 
  • trunk/Phergie/Plugin/Acronym.php

    r217 r218  
    7878    { 
    7979        do { 
    80             $reaction = $this->reactions[mt_rand(0, count($this->reactions) -1) ]; 
     80            $reaction = $this->reactions[mt_rand(0, count($this->reactions) - 1)]; 
    8181            $randomUser = (strpos($reaction, '%randomuser%') !== false); 
    8282        } while ($target[0] != '#' && $randomUser); 
  • trunk/Phergie/Plugin/Dice.php

    r217 r218  
    126126                    $total = 0; 
    127127                    for ($d = 0; $d < $dice; $d++) { 
    128                         $total += intval(mt_rand(1, $sides) +($operator ? $bonus : ($bonus*-1))); 
     128                        $total += intval(mt_rand(1, $sides) + ($operator ? $bonus : ($bonus * -1))); 
    129129                    } 
    130130                    $output[] = $total; 
  • trunk/Phergie/Plugin/Drink.php

    r217 r218  
    124124                        break; 
    125125                    } 
    126                     $this->debug('Parsing data for: Cocktail (' . $i . ' - ' . ($i+150) . ')'); 
     126                    $this->debug('Parsing data for: Cocktail (' . $i . ' - ' . ($i + 150) . ')'); 
    127127                    if ($i == 1) { 
    128128                        preg_match('/>([0-9]+) found\\.</', $contents, $match); 
  • trunk/Phergie/Plugin/FeedTicker.php

    r217 r218  
    195195                ), $this->format)); 
    196196            } 
    197             $this->nextOutput = time() +($this->postThrottle*60); 
     197            $this->nextOutput = time() + ($this->postThrottle * 60); 
    198198        } 
    199199    } 
  • trunk/Phergie/Plugin/Karma.php

    r217 r218  
    135135        $static = $this->getPluginIni('static'); 
    136136        if ($static) { 
    137             $this->fixedKarma[strtolower($this->getIni('nick')) ] = $static; 
     137            $this->fixedKarma[strtolower($this->getIni('nick'))] = $static; 
    138138        } 
    139139 
     
    332332            $res = $this->fetchKarma->fetch(PDO::FETCH_ASSOC); 
    333333            if ($res) { 
    334                 $karma = ($res['karma']+($sign == '++' ? 1 : -1)); 
     334                $karma = ($res['karma'] + ($sign == '++' ? 1 : -1)); 
    335335                $args = array( 
    336336                    ':word' => $word, 
  • trunk/Phergie/Plugin/ModuleList.php

    r217 r218  
    6565            if ($arg == 'mg' || $arg == 'mutedglobal') $arg = 'g'; 
    6666            else if ($arg == 'ml' || $arg == 'mutedlocal') $arg = 'l'; 
    67             $args[substr(strtolower($arg), 0, 1) ] = $value; 
     67            $args[substr(strtolower($arg), 0, 1)] = $value; 
    6868        } 
    6969        unset($rawArgs); 
  • trunk/Phergie/Plugin/Users.php

    r216 r218  
    197197                    $flag |= self::VOICE; 
    198198                } 
    199                 self::$list[trim(strtolower($chan)) ][trim(strtolower($user)) ] = $flag; 
     199                self::$list[trim(strtolower($chan))][trim(strtolower($user))] = $flag; 
    200200            } 
    201201        }