Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
Small changes in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
whisller committed Oct 31, 2012
1 parent d5033e6 commit d8bcafc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions EventListener/Irc/Messages/PrivMsgListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ class PrivMsgListener extends BaseIrcListener
private $botCommandPrefix;

/**
* @param ConnectionInterface $dispatcher
* @param ConnectionInterface $connection
* @param EventDispatcherInterface $dispatcher
* @param string $botCommandPrefix
*/
public function __construct(ConnectionInterface $connection, EventDispatcherInterface $dispatcher, $botCommandPrefix)
{
Expand All @@ -29,7 +30,8 @@ public function __construct(ConnectionInterface $connection, EventDispatcherInte
}

/**
* @param BaseIrcEvent $event
* @param IrcCommandFoundEvent $event
* @return void
*/
public function onData(IrcCommandFoundEvent $event)
{
Expand All @@ -51,12 +53,12 @@ public function onData(IrcCommandFoundEvent $event)
* Check if message from server has a bot command.
*
* @param string $message
* @return array if is bot command false otherwise
* @return array|false if is bot command false otherwise
*/
private function isBotCommand($message)
{
preg_match('/^'.$this->botCommandPrefix.' (.*)/', $message, $matches);

return $matches;
}
}
}

0 comments on commit d8bcafc

Please sign in to comment.