src/Jobs/SendBatch.php
protected function fireEvents()
    {
        array_map(function (VkRequest $request, $response) {
            $status = isset($response['error_code']) ? VkRequest::STATUS_FAIL : VkRequest::STATUS_SUCCESS;
            $event = sprintf(VkRequest::EVENT_FORMAT, $status, $request->method, $request->tag);
            event($event, [$request, $response]);
        }, $this->requests->all(), $this->responses);
    }
protected function fireEvents()
    {
        array_map(function (VkRequest $request, $response) {
            $status = isset($response['error_code']) ? VkRequest::STATUS_FAIL : VkRequest::STATUS_SUCCESS;
            $event = sprintf(VkRequest::EVENT_FORMAT, $status, $request->method, $request->tag);
            event($event, [$request, $response]);
        }, $this->requests->all(), $this->responses);
    }
protected function fireEvents ( ) { array_map ( function ( VkRequest $ request , $ response ) { $ status = isset ( $ response [ 'error_code' ] ) ? VkRequest :: STATUS_FAIL : VkRequest :: STATUS_SUCCESS ; $ event = sprintf ( VkRequest :: EVENT_FORMAT , $ status , $ request -> method , $ request -> tag ) ; event ( $ event , [ $ request , $ response ] ) ; } , $ this -> requests -> all ( ) , $ this -> responses ) ; }
Fire an event for each of response
Fire an event for each of response