Assembla home | Assembla project page
 

Changeset 217

Show
Ignore:
Timestamp:
04/08/08 01:57:38 (8 months ago)
Author:
Slynderdale
Message:

Some final clean up.

Files:

Legend:

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

    r215 r217  
    9292            $excluded = ''; 
    9393            if (strpos($hostmask, '!') !== false) { 
    94                 $excluded.= '!'; 
     94                $excluded .= '!'; 
    9595            } 
    9696            if (strpos($hostmask, '@') !== false) { 
    97                 $excluded.= '@'; 
     97                $excluded .= '@'; 
    9898            } 
    9999 
  • trunk/Phergie/Event/Response.php

    r215 r217  
    857857     * @param string $code 
    858858     */ 
    859     public function setCode($code)  
     859    public function setCode($code) 
    860860    { 
    861861        $this->code = $code; 
     
    867867     * @return string 
    868868     */ 
    869     public function getCode()  
     869    public function getCode() 
    870870    { 
    871871        return $this->code; 
     
    877877     * @param string $description 
    878878     */ 
    879     public function setDescription($description)  
     879    public function setDescription($description) 
    880880    { 
    881881        $this->description = $description; 
     
    887887     * @return string 
    888888     */ 
    889     public function getDescription()  
     889    public function getDescription() 
    890890    { 
    891891        return $this->description; 
     
    898898     * @return void 
    899899     */ 
    900     public function setRawBuffer($buffer)  
     900    public function setRawBuffer($buffer) 
    901901    { 
    902902        $this->rawBuffer = $buffer; 
     
    908908     * @return string 
    909909     */ 
    910     public function getRawBuffer()  
     910    public function getRawBuffer() 
    911911    { 
    912912        return $this->rawBuffer; 
  • trunk/Phergie/Plugin/Abstract/Command.php

    r215 r217  
    2020     * @return void 
    2121     */ 
    22     public function onPrivmsg()  
     22    public function onPrivmsg() 
    2323    { 
    2424        $this->processCommand($this->event->getArgument(1)); 
     
    3636     * @return void 
    3737     */ 
    38     protected final function processCommand($message, $ignorePrefix = false, $forceBotPrefix = false)  
     38    protected final function processCommand($message, $ignorePrefix = false, $forceBotPrefix = false) 
    3939    { 
    4040        if (!$this->methods) { 
  • trunk/Phergie/Plugin/Abstract/Cron.php

    r215 r217  
    4545     * @return void 
    4646     */ 
    47     final protected function check()  
     47    final protected function check() 
    4848    { 
    4949        if ($this->delay === null) { 
     
    6464     * @return void 
    6565     */ 
    66     public function onRaw()  
     66    public function onRaw() 
    6767    { 
    6868        $this->check(); 
  • trunk/Phergie/Plugin/Acronym.php

    r215 r217  
    5656     * @return void 
    5757     */ 
    58     public function init()  
     58    public function init() 
    5959    { 
    6060        $limit = $this->getPluginIni('limit'); 
     
    7575     * @return void 
    7676     */ 
    77     protected function randomAction($target)  
     77    protected function randomAction($target) 
    7878    { 
    7979        do { 
     
    101101     * @return void 
    102102     */ 
    103     public function onPrivmsg()  
     103    public function onPrivmsg() 
    104104    { 
    105105        $source = $this->event->getSource(); 
  • trunk/Phergie/Plugin/Altnick.php

    r215 r217  
    2626     * @return void 
    2727     */ 
    28     public function init()  
     28    public function init() 
    2929    { 
    3030        $this->index = -1; 
     
    3636     * @return void 
    3737     */ 
    38     public function onResponse()  
     38    public function onResponse() 
    3939    { 
    4040        if ($this->event->getCode() == Phergie_Event_Response::ERR_NICKNAMEINUSE) { 
  • trunk/Phergie/Plugin/Autojoin.php

    r215 r217  
    2828     * @return bool TRUE if dependencies are met, FALSE otherwise 
    2929     */ 
    30     public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins)  
     30    public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 
    3131    { 
    3232        $channels = $client->getIni('autojoin.channels'); 
     
    4444     * @return void 
    4545     */ 
    46     public function onResponse()  
     46    public function onResponse() 
    4747    { 
    4848        switch ($this->event->getCode()) { 
  • trunk/Phergie/Plugin/ChuckNorris.php

    r215 r217  
    8181     * @return void 
    8282     */ 
    83     public function init()  
     83    public function init() 
    8484    { 
    8585        try { 
     
    114114     * @return bool TRUE if dependencies are met, FALSE otherwise 
    115115     */ 
    116     public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins)  
     116    public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 
    117117    { 
    118118        if (!extension_loaded('PDO') || !extension_loaded('pdo_sqlite')) { 
     
    128128     * @return bool True is successful, else false 
    129129     */ 
    130     private function getChuckNorris($doCrawl = true)  
     130    private function getChuckNorris($doCrawl = true) 
    131131    { 
    132132        // The current page to retrieve 
     
    183183     *              otherwise 
    184184     */ 
    185     private function findChuckNorris()  
     185    private function findChuckNorris() 
    186186    { 
    187187        if (!$this->db) { 
     
    209209     * @return bool True is successful, else false 
    210210     */ 
    211     private function feedChuckNorris()  
     211    private function feedChuckNorris() 
    212212    { 
    213213        if (!$this->db) { 
     
    240240     * @return string A random fact 
    241241     */ 
    242     private function praiseChuckNorris()  
     242    private function praiseChuckNorris() 
    243243    { 
    244244        if (!$this->db) { 
     
    255255     * @return void 
    256256     */ 
    257     public function onPrivmsg()  
     257    public function onPrivmsg() 
    258258    { 
    259259        if (!$this->db) { 
     
    287287     * @return void 
    288288     */ 
    289     public function onCtcp()  
     289    public function onCtcp() 
    290290    { 
    291291        $source = $this->event->getSource(); 
  • trunk/Phergie/Plugin/Convert.php

    r215 r217  
    1616     * @return bool TRUE if dependencies are met, FALSE otherwise 
    1717     */ 
    18     public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins)  
     18    public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 
    1919    { 
    2020        if (!extension_loaded('Dom')) { 
     
    3131     * @return void 
    3232     */ 
    33     public function onDoConvert($convert)  
     33    public function onDoConvert($convert) 
    3434    { 
    3535        $target = $this->event->getNick(); 
  • trunk/Phergie/Plugin/Ctcp.php

    r215 r217  
    66class Phergie_Plugin_Ctcp extends Phergie_Plugin_Abstract_Base 
    77{ 
    8     public function onTime()  
     8    public function onTime() 
    99    { 
    1010        $source = $this->event->getSource(); 
     
    1414    } 
    1515 
    16     public function onVersion()  
     16    public function onVersion() 
    1717    { 
    1818        $source = $this->event->getSource(); 
     
    2222    } 
    2323 
    24     public function onPing()  
     24    public function onPing() 
    2525    { 
    2626        $source = $this->event->getSource(); 
     
    3333    } 
    3434 
    35     public function onCtcp()  
     35    public function onCtcp() 
    3636    { 
    3737        $source = $this->event->getSource(); 
  • trunk/Phergie/Plugin/Daddy.php

    r215 r217  
    1313     * @return void 
    1414     */ 
    15     public function onPrivmsg()  
     15    public function onPrivmsg() 
    1616    { 
    1717        $bot = $this->getIni('nick'); 
  • trunk/Phergie/Plugin/Debug.php

    r215 r217  
    2020     * @return void 
    2121     */ 
    22     public function onDoMem()  
     22    public function onDoMem() 
    2323    { 
    2424        if (function_exists('memory_get_usage')) { 
     
    3535     * @return void 
    3636     */ 
    37     public function onDoUptime()  
     37    public function onDoUptime() 
    3838    { 
    3939        $target = $this->event->getNick(); 
     
    4747     * @return void 
    4848     */ 
    49     public function onDoExtensions()  
     49    public function onDoExtensions() 
    5050    { 
    5151        $target = $this->event->getNick(); 
     
    6565     * @return void 
    6666     */ 
    67     public function onDoGetversion($prog = null)  
     67    public function onDoGetversion($prog = null) 
    6868    { 
    6969        $target = $this->event->getNick(); 
  • trunk/Phergie/Plugin/Dice.php

    r215 r217  
    4545     * @return void 
    4646     */ 
    47     protected function processExpression($expr)  
     47    protected function processExpression($expr) 
    4848    { 
    4949        // Parse equation 
     
    9999     * @return void 
    100100     */ 
    101     protected function processDice($message)  
     101    protected function processDice($message) 
    102102    { 
    103103        $message = trim($message); 
     
    141141     * @return void 
    142142     */ 
    143     public function onDoRoll($message)  
     143    public function onDoRoll($message) 
    144144    { 
    145145        $source = $this->event->getSource(); 
     
    156156     * @return void 
    157157     */ 
    158     public function onDoDice($message)  
     158    public function onDoDice($message) 
    159159    { 
    160160        $source = $this->event->getSource(); 
     
    172172     * @return void 
    173173     */ 
    174     public function onCtcp()  
     174    public function onCtcp() 
    175175    { 
    176176        $source = $this->event->getSource(); 
  • trunk/Phergie/Plugin/Dns.php

    r215 r217  
    1414     * @return void 
    1515     */ 
    16     protected function processRequest($arg)  
     16    protected function processRequest($arg) 
    1717    { 
    1818        $target = $this->event->getNick(); 
     
    3737     * @return void 
    3838     */ 
    39     public function onDoDns($host)  
     39    public function onDoDns($host) 
    4040    { 
    4141        $this->processRequest($host); 
     
    4848     * @return void 
    4949     */ 
    50     public function onDoRevdns($ip)  
     50    public function onDoRevdns($ip) 
    5151    { 
    5252        $this->processRequest($ip); 
  • trunk/Phergie/Plugin/Drink.php

    r216 r217  
    323323                $text = 'throws ' . $target . ' a'; 
    324324                if (preg_match('/^[aeoiu]/i', $drink)) { 
    325                     $text.= 'n'; 
    326                 } 
    327                 $text.= ' ' . $drink; 
     325                    $text .= 'n'; 
     326                } 
     327                $text .= ' ' . $drink; 
    328328            } else { 
    329329                // One must be gentle with tea 
  • trunk/Phergie/Plugin/Eval.php

    r215 r217  
    1919     * @return void 
    2020     */ 
    21     public function onDoEval($code)  
     21    public function onDoEval($code) 
    2222    { 
    2323        $user = $this->event->getNick(); 
     
    7171     * @return void 
    7272     */ 
    73     public function onDoExec($code)  
     73    public function onDoExec($code) 
    7474    { 
    7575        $user = $this->event->getNick(); 
     
    9797                if (!empty($output)) { 
    9898                    if ($console) { 
    99                         $this->debug('OUTPUT:' . PHP_EOL . implode("\n", $output)); 
     99                        $this->debug('OUTPUT:' . PHP_EOL . implode(PHP_EOL, $output)); 
    100100                    } 
    101101                    unset($output); 
  • trunk/Phergie/Plugin/FeedTicker.php

    r215 r217  
    9898     * @return void 
    9999     */ 
    100     public function init()  
     100    public function init() 
    101101    { 
    102102        // Delay between feed syndications 
     
    151151     * @return bool TRUE if dependencies are met, FALSE otherwise 
    152152     */ 
    153     public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins)  
     153    public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 
    154154    { 
    155155        if (!extension_loaded('SimpleXML')) { 
     
    168168     * @return void 
    169169     */ 
    170     public function onPrivmsg()  
     170    public function onPrivmsg() 
    171171    { 
    172172        $this->checkQueue(); 
     
    180180     * @return void 
    181181     */ 
    182     protected function checkQueue()  
     182    protected function checkQueue() 
    183183    { 
    184184        if (!empty($this->queue) && time() > $this->nextOutput) { 
     
    217217     * @return void 
    218218     */ 
    219     protected function run()  
     219    protected function run() 
    220220    { 
    221221        $retrieved = array(); 
     
    290290 
    291291    // Checks the given feed Title and URL as well as article title against the feed filters 
    292     protected function filterCheck($id, $title, $url, $article)  
     292    protected function filterCheck($id, $title, $url, $article) 
    293293    { 
    294294        // Feed Title, Feed URL and Article Title Filters 
     
    315315     * @return string 
    316316     */ 
    317     protected function decode($str, $trim = null)  
     317    protected function decode($str, $trim = null) 
    318318    { 
    319319        $out = $this->decodeTranslit($str); 
  • trunk/Phergie/Plugin/JoinPart.php

    r215 r217  
    2626     * @param string $channel Name of the channel to join 
    2727     */ 
    28     public function onDoJoin($channel)  
     28    public function onDoJoin($channel) 
    2929    { 
    3030        if (!empty($channel)) { 
     
    4040     * @param Phergie_Event_Request $event Intercepted event 
    4141     */ 
    42     public function onDoPart($channel = null)  
     42    public function onDoPart($channel = null) 
    4343    { 
    4444        $source = $this->event->getSource(); 
  • trunk/Phergie/Plugin/Karma.php

    r215 r217  
    7777     * @return void 
    7878     */ 
    79     public function init()  
     79    public function init() 
    8080    { 
    8181        $this->db = null; 
     
    204204     * @return bool TRUE if dependencies are met, FALSE otherwise 
    205205     */ 
    206     public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins)  
     206    public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 
    207207    { 
    208208        if (!extension_loaded('PDO') || !extension_loaded('pdo_sqlite')) { 
     
    219219     * @return void 
    220220     */ 
    221     public function onPrivmsg()  
     221    public function onPrivmsg() 
    222222    { 
    223223        if (!$this->db) { 
     
    416416    } 
    417417 
    418     protected function fetchPositiveAnswer($owner, $owned)  
     418    protected function fetchPositiveAnswer($owner, $owned) 
    419419    { 
    420420        return str_replace(array('%owner%','%owned%'), array($owner, $owned), $this->positiveAnswers[array_rand($this->positiveAnswers,1)]); 
    421421    } 
    422422 
    423     protected function fetchNegativeAnswer($owned, $owner)  
     423    protected function fetchNegativeAnswer($owned, $owner) 
    424424    { 
    425425        return str_replace(array('%owner%','%owned%'), array($owner, $owned), $this->negativeAnswers[array_rand($this->negativeAnswers,1)]); 
    426426    } 
    427427 
    428     protected function doCleanWord($word)  
     428    protected function doCleanWord($word) 
    429429    { 
    430430        $word = trim($word); 
     
    441441     * @return void 
    442442     */ 
    443     public function doGc()  
     443    public function doGc() 
    444444    { 
    445445        unset($this->log); 
  • trunk/Phergie/Plugin/Lart.php

    r215 r217  
    7878     * @return void 
    7979     */ 
    80     public function init()  
     80    public function init() 
    8181    { 
    8282        try { 
     
    154154     * @return bool TRUE if dependencies are met, FALSE otherwise 
    155155     */ 
    156     public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins)  
     156    public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 
    157157    { 
    158158        if (!extension_loaded('PDO') || !extension_loaded('pdo_sqlite')) { 
     
    171171     *               exists 
    172172     */ 
    173     protected function getDefinition($term)  
     173    protected function getDefinition($term) 
    174174    { 
    175175        if (!isset($this->cache[$term])) { 
     
    192192     * @return mixed String containing the definition or FALSE if no alias exist 
    193193     */ 
    194     protected function getAlias($definition)  
     194    protected function getAlias($definition) 
    195195    { 
    196196        $this->alias->execute(array(':definition' => $definition)); 
     
    211211     * @return void 
    212212     */ 
    213     private function checkLart($message)  
     213    private function checkLart($message) 
    214214    { 
    215215        if (empty($message) || strlen($message) > 255) { 
     
    262262     * @return array An array of aliases for the given term 
    263263     */ 
    264     public function getAliases($term, $recursive = true, $firstRun = true)  
     264    public function getAliases($term, $recursive = true, $firstRun = true) 
    265265    { 
    266266        if (!is_array($this->aCache) || $firstRun) { 
     
    297297     * @return void 
    298298     */ 
    299     function deleteLart($name, $recursive = true)  
     299    function deleteLart($name, $recursive = true) 
    300300    { 
    301301        if (!$recursive) { 
     
    322322     * @return void 
    323323     */ 
    324     public function onPrivmsg()  
     324    public function onPrivmsg() 
    325325    { 
    326326        if (!$this->db) { 
     
    406406     * @return void 
    407407     */ 
    408     public function onAction()  
     408    public function onAction() 
    409409    { 
    410410        if (!$this->db) { 
  • trunk/Phergie/Plugin/Logging.php

    r215 r217  
    118118     * @return void 
    119119     */ 
    120     public function init()  
     120    public function init() 
    121121    { 
    122122        try { 
     
    162162     * @return bool TRUE if dependencies are met, FALSE otherwise 
    163163     */ 
    164     public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins)  
     164    public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 
    165165    { 
    166166        if (self::staticPluginLoaded('Users', $client, $plugins)) { 
     
    185185     * @return void 
    186186     */ 
    187     protected function insertEvent($type, $chan, $nick, $message = null)  
     187    protected function insertEvent($type, $chan, $nick, $message = null) 
    188188    { 
    189189        if (!is_object($this->db)) { 
     
    207207     * @return void 
    208208     */ 
    209     public function onPrivmsg()  
     209    public function onPrivmsg() 
    210210    { 
    211211        // Allow the Command plugin to process command calls 
     
    225225     * @return void 
    226226     */ 
    227     public function onAction()  
     227    public function onAction() 
    228228    { 
    229229        if ($this->event->isInChannel()) { 
     
    242242     * @return void 
    243243     */ 
    244     public function onJoin()  
     244    public function onJoin() 
    245245    { 
    246246        $this->insertEvent( 
     
    257257     * @return void 
    258258     */ 
    259     public function onPart()  
     259    public function onPart() 
    260260    { 
    261261        $this->insertEvent( 
     
    272272     * @return void 
    273273     */ 
    274     public function onKick()  
     274    public function onKick() 
    275275    { 
    276276        $this->insertEvent( 
     
    287287     * @return void 
    288288     */ 
    289     public function onMode()  
     289    public function onMode() 
    290290    { 
    291291        $this->insertEvent( 
     
    302302     * @return void 
    303303     */ 
    304     public function onTopic()  
     304    public function onTopic() 
    305305    { 
    306306        $this->insertEvent( 
     
    317317     * @return void 
    318318     */ 
    319     public function onQuit()  
     319    public function onQuit() 
    320320    { 
    321321        $nick = $this->event->getNick(); 
     
    336336     * @return void 
    337337     */ 
    338     public function onNick()  
     338    public function onNick() 
    339339    { 
    340340        $nick = $this->event->getNick(); 
     
    350350    } 
    351351 
    352     public static function databaseExists()  
     352    public static function databaseExists() 
    353353    { 
    354354        return (is_object(self::$staticDB) ? true : false); 
    355355    } 
    356356 
    357     public static function prepare($query)  
     357    public static function prepare($query) 
    358358    { 
    359359        if (!is_object(self::$staticDB)) { 
  • trunk/Phergie/Plugin/Math.php

    r215 r217  
    1111     * Backwards compatibility for constants not defined in PHP 5.1.x 
    1212     */ 
    13     public function init()  
     13    public function init() 
    1414    { 
    1515        if (version_compare('5.2', PHP_VERSION, '>')) { 
     
    6767     */ 
    6868    //return sine of <an angle in degrees> 
    69     protected function sind($degrees)  
     69    protected function sind($degrees) 
    7070    { 
    7171        return sin(deg2rad($degrees)); 
    7272    } 
    7373    //return cosd of <an angle in degrees> 
    74     protected function cosd($degrees)  
     74    protected function cosd($degrees) 
    7575    { 
    7676        return cos(deg2rad($degrees)); 
    7777    } 
    7878    //return tand of <an angle in degrees> 
    79     protected function tand($degrees)  
     79    protected function tand($degrees) 
    8080    { 
    8181        return tan(deg2rad($degrees)); 
    8282    } 
    8383    //return atand of <an angle in degrees> 
    84     protected function atand($x)  
     84    protected function atand($x) 
    8585    { 
    8686        return rad2deg(atan($x)); 
    8787    } 
    8888    //return asind of <an angle in degrees> 
    89     protected function asind($x)  
     89    protected function asind($x) 
    9090    { 
    9191        return rad2deg(asin($x)); 
    9292    } 
    9393    //return acosd of <an angle in degrees> 
    94     protected function acosd($x)  
     94    protected function acosd($x) 
    9595    { 
    9696        return rad2deg(acos($x)); 
     
    103103     * @return void 
    104104     */ 
    105     protected function processRequest($expr, $quietMode = false)  
     105    protected function processRequest($expr, $quietMode = false) 
    106106    { 
    107107        $user = $this->event->getNick(); 
     
    195195     * @return void 
    196196     */ 
    197     public function onDoMath($expr)  
     197    public function onDoMath($expr) 
    198198    { 
    199199        $this->processRequest($expr, true); 
     
    205205     * @return void 
    206206     */ 
    207     public function onDoCalc($expr)  
     207    public function onDoCalc($expr) 
    208208    { 
    209209        $this->processRequest($expr); 
  • trunk/Phergie/Plugin/ModuleList.php

    r215 r217  
    5353    ); 
    5454 
    55     public function onDoPlugins($rawArgs = '')  
     55    public function onDoPlugins($rawArgs = '') 
    5656    { 
    5757        $source = $this->event->getSource(); 
     
    154154                    } 
    155155                    $plugins = trim(count($pluginData[$plugin]) > 0 ? implode(', ', $pluginData[$plugin]) : ''); 
    156                     $message.= ucfirst(str_replace('_', ' ', $plugin)) . ': ' . ($plugins ? $plugins : 'No Plugins') . ' :: '; 
     156                    $message .= ucfirst(str_replace('_', ' ', $plugin)) . ': ' . ($plugins ? $plugins : 'No Plugins') . ' :: '; 
    157157                } 
    158158            } 
  • trunk/Phergie/Plugin/Nickserv.php

    r215 r217  
    4343     * @return void 
    4444     */ 
    45     public function init()  
     45    public function init() 
    4646    { 
    4747        parent::init(); 
     
    6161     * @return void 
    6262     */ 
    63     public function onNotice()  
     63    public function onNotice() 
    6464    { 
    6565        if (strtolower($this->event->getNick()) == strtolower($this->botNick)) { 
     
    8181     * @return void 
    8282     */ 
    83     public function onQuit()  
     83    public function onQuit() 
    8484    { 
    8585        $nick = $this->event->getNick(); 
     
    9595     * @return void 
    9696     */ 
    97     public function onNick()  
     97    public function onNick() 
    9898    { 
    9999        if ($this->event->getSource() == $this->getIni('nick')) { 
     
    107107     * @return void 
    108108     */ 
    109     public function onDoGhostbust()  
     109    public function onDoGhostbust() 
    110110    { 
    111111        $user = $this->event->getNick(); 
     
    130130     * @return void 
    131131     */ 
    132     public function onResponse()  
     132    public function onResponse() 
    133133    { 
    134134        if ($this->event->getCode() == Phergie_Event_Response::ERR_NICKNAMEINUSE) { 
     
    150150     * @return void 
    151151     */ 
    152     public function onKill()  
     152    public function onKill() 
    153153    { 
    154154        $this->doQuit($this->event->getArgument(1)); 
  • trunk/Phergie/Plugin/Php.php

    r215 r217  
    2424     * @return void 
    2525     */ 
    26     public function init()  
     26    public function init() 
    2727    { 
    2828        $this->cache = array(); 
     
    3636     * @return void 
    3737     */ 
    38     public function onDoPhp($function)  
     38    public function onDoPhp($function) 
    3939    { 
    4040        if (!isset($this->cache[$function])) { 
  • trunk/Phergie/Plugin/Pong.php

    r215 r217  
    2020     * @return void 
    2121     */ 
    22     public function onPing()  
     22    public function onPing() 
    2323    { <