public function execute()
    {
        $hipChat = new \HipChat\HipChat($this->authToken);
        $message = $this->phpci->interpolate($this->message);

        $result = true;
        if (is_array($this->room)) {
            foreach ($this->room as $room) {
                if (!$hipChat->message_room($room, 'PHPCI', $message, $this->notify, $this->color)) {
                    $result = false;
                }
            }
        } else {
            if (!$hipChat->message_room($this->room, 'PHPCI', $message, $this->notify, $this->color)) {
                $result = false;
            }
        }

        return $result;
    }
public function execute()
    {
        $hipChat = new \HipChat\HipChat($this->authToken);
        $message = $this->phpci->interpolate($this->message);

        $result = true;
        if (is_array($this->room)) {
            foreach ($this->room as $room) {
                if (!$hipChat->message_room($room, 'PHPCI', $message, $this->notify, $this->color)) {
                    $result = false;
                }
            }
        } else {
            if (!$hipChat->message_room($this->room, 'PHPCI', $message, $this->notify, $this->color)) {
                $result = false;
            }
        }

        return $result;
    }
public function execute ( ) { $ hipChat = new \ HipChat \ HipChat ( $ this -> authToken ) ; $ message = $ this -> phpci -> interpolate ( $ this -> message ) ; $ result = true ; if ( is_array ( $ this -> room ) ) { foreach ( $ this -> room as $ room ) { if ( ! $ hipChat -> message_room ( $ room , 'PHPCI' , $ message , $ this -> notify , $ this -> color ) ) { $ result = false ; } } } else { if ( ! $ hipChat -> message_room ( $ this -> room , 'PHPCI' , $ message , $ this -> notify , $ this -> color ) ) { $ result = false ; } } return $ result ; }
Run the HipChat plugin.
@return bool
Run the HipChat plugin .