|
@@ 131-136 (lines=6) @@
|
| 128 |
|
throw new Exception(__('Parameters must be an array.')); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
if (isset($payload['notification'])) { |
| 132 |
|
$payload['notification'] = $this->_checkNotification($payload['notification']); |
| 133 |
|
if (!$payload['notification']) { |
| 134 |
|
throw new Exception(__("Unable to check notification.")); |
| 135 |
|
} |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
if (isset($payload['data'])) { |
| 139 |
|
$payload['data'] = $this->_checkData($payload['data']); |
|
@@ 138-143 (lines=6) @@
|
| 135 |
|
} |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
if (isset($payload['data'])) { |
| 139 |
|
$payload['data'] = $this->_checkData($payload['data']); |
| 140 |
|
if (!$payload['data']) { |
| 141 |
|
throw new Exception(__("Unable to check data.")); |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
$parameters = $this->_checkParameters($parameters); |
| 146 |
|
$message = $this->_buildMessage($ids, $payload, $parameters); |