@@ 119-124 (lines=6) @@ | ||
116 | throw new GcmException(__("Parameters must be an array.")); |
|
117 | } |
|
118 | ||
119 | if (isset($payload['notification'])) { |
|
120 | $payload['notification'] = $this->_checkNotification($payload['notification']); |
|
121 | if (!$payload['notification']) { |
|
122 | throw new GcmException(__("Unable to check notification.")); |
|
123 | } |
|
124 | } |
|
125 | ||
126 | if (isset($payload['data'])) { |
|
127 | $payload['data'] = $this->_checkData($payload['data']); |
|
@@ 126-131 (lines=6) @@ | ||
123 | } |
|
124 | } |
|
125 | ||
126 | if (isset($payload['data'])) { |
|
127 | $payload['data'] = $this->_checkData($payload['data']); |
|
128 | if (!$payload['data']) { |
|
129 | throw new GcmException(__("Unable to check data.")); |
|
130 | } |
|
131 | } |
|
132 | ||
133 | $parameters = $this->_checkParameters($parameters); |
|
134 | if (!$parameters) { |