@@ -8,18 +8,18 @@ |
||
8 | 8 | * |
9 | 9 | * @var array |
10 | 10 | */ |
11 | - public $helpers = array( |
|
12 | - 'Html', |
|
13 | - 'Form' |
|
14 | - ); |
|
11 | + public $helpers = array( |
|
12 | + 'Html', |
|
13 | + 'Form' |
|
14 | + ); |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Components to use in this Controller |
18 | 18 | * |
19 | 19 | * @var array |
20 | 20 | */ |
21 | - public $components = array( |
|
22 | - 'Session', |
|
23 | - 'Gcm.Gcm' |
|
24 | - ); |
|
21 | + public $components = array( |
|
22 | + 'Session', |
|
23 | + 'Gcm.Gcm' |
|
24 | + ); |
|
25 | 25 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * |
9 | 9 | * @var array |
10 | 10 | */ |
11 | - public $helpers = array( |
|
11 | + public $helpers = array( |
|
12 | 12 | 'Html', |
13 | 13 | 'Form' |
14 | 14 | ); |
@@ -93,10 +93,8 @@ discard block |
||
93 | 93 | * send method |
94 | 94 | * |
95 | 95 | * @param string|array $ids |
96 | - * @param array $data |
|
97 | 96 | * @param array $parameters |
98 | - * @param string $field |
|
99 | - * @return void |
|
97 | + * @return boolean |
|
100 | 98 | */ |
101 | 99 | public function send($ids = false, $payload = array(), $parameters = array()) { |
102 | 100 | |
@@ -149,7 +147,7 @@ discard block |
||
149 | 147 | * @param string|array $ids |
150 | 148 | * @param array $notification |
151 | 149 | * @param array $parameters |
152 | - * @return void |
|
150 | + * @return boolean |
|
153 | 151 | */ |
154 | 152 | public function sendNotification($ids = false, $notification = array(), $parameters = array()) { |
155 | 153 | return $this->send($ids, array('notification' => $notification), $parameters); |
@@ -161,7 +159,7 @@ discard block |
||
161 | 159 | * @param string|array $ids |
162 | 160 | * @param array $data |
163 | 161 | * @param array $parameters |
164 | - * @return void |
|
162 | + * @return boolean |
|
165 | 163 | */ |
166 | 164 | public function sendData($ids = false, $data = array(), $parameters = array()) { |
167 | 165 | return $this->send($ids, array('data' => $data), $parameters); |
@@ -214,10 +212,8 @@ discard block |
||
214 | 212 | * _buildNotification method |
215 | 213 | * |
216 | 214 | * @param array $ids |
217 | - * @param array $data |
|
218 | 215 | * @param array $parameters |
219 | - * @param string $field |
|
220 | - * @return json |
|
216 | + * @return false|string |
|
221 | 217 | */ |
222 | 218 | protected function _buildMessage($ids = false, $payload = false, $parameters = false) { |
223 | 219 | if ($ids === false) { |