src/Notifier.php
public function sendNotice($notice)
    {
        $notice = $this->filterNotice($notice);
        if (isset($notice['error'])) {
            return $notice;
        }

        if (time() < $this->rateLimitReset) {
            $notice['error'] = ERR_IP_RATE_LIMITED;
            return $notice;
        }

        $req = $this->newHttpRequest($notice);
        $resp = $this->sendRequest($req);
        return $this->processHttpResponse($notice, $resp);
    }
public function sendNotice($notice)
    {
        $notice = $this->filterNotice($notice);
        if (isset($notice['error'])) {
            return $notice;
        }

        if (time() < $this->rateLimitReset) {
            $notice['error'] = ERR_IP_RATE_LIMITED;
            return $notice;
        }

        $req = $this->newHttpRequest($notice);
        $resp = $this->sendRequest($req);
        return $this->processHttpResponse($notice, $resp);
    }
public function sendNotice ( $ notice ) { $ notice = $ this -> filterNotice ( $ notice ) ; if ( isset ( $ notice [ 'error' ] ) ) { return $ notice ; } if ( time ( ) < $ this -> rateLimitReset ) { $ notice [ 'error' ] = ERR_IP_RATE_LIMITED ; return $ notice ; } $ req = $ this -> newHttpRequest ( $ notice ) ; $ resp = $ this -> sendRequest ( $ req ) ; return $ this -> processHttpResponse ( $ notice , $ resp ) ; }
Sends notice to Airbrake.

It returns notice with 2 possible new keys:
- ['id' => '12345'] - notice id on success.
- ['error' => 'error message'] - error message on failure.

@param array $notice Airbrake notice
@return array Airbrake notice
Sends notice to Airbrake .