Completed
Branch master (d2a091)
by Romain
01:46
created
Controller/Component/GcmComponent.php 1 patch
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	 * @param array $data
111 111
 	 * @param array $parameters
112 112
 	 * @param string $field
113
-	 * @return void
113
+	 * @return boolean
114 114
 	 */
115 115
 	public function send($ids = false, $data = array(), $parameters = array(), $field = 'data') {
116 116
 
@@ -149,8 +149,7 @@  discard block
 block discarded – undo
149 149
 	 * @param string|array $ids
150 150
 	 * @param array $data
151 151
 	 * @param array $parameters
152
-	 * @param string $field
153
-	 * @return void
152
+	 * @return boolean
154 153
 	 */
155 154
 	public function sendNotification($ids = false, $data = array(), $parameters = array()) {
156 155
 		return $this->send($ids, $data, $parameters, 'notification');
@@ -162,8 +161,7 @@  discard block
 block discarded – undo
162 161
 	 * @param string|array $ids
163 162
 	 * @param array $data
164 163
 	 * @param array $parameters
165
-	 * @param string $field
166
-	 * @return void
164
+	 * @return boolean
167 165
 	 */
168 166
 	public function sendData($ids = false, $data = array(), $parameters = array()) {
169 167
 		return $this->send($ids, $data, $parameters, 'data');
@@ -219,7 +217,7 @@  discard block
 block discarded – undo
219 217
 	 * @param array $data
220 218
 	 * @param array $parameters
221 219
 	 * @param string $field
222
-	 * @return json
220
+	 * @return false|string
223 221
 	 */
224 222
 	protected function _buildNotification($ids = false, $data = false, $parameters = false, $field = 'data') {
225 223
 		if ($ids === false) {
Please login to merge, or discard this patch.
Controller/GcmController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 	public function index() {
15 15
 		if ($this->request->is('post')) {
16 16
 
17
-			$ids 		= $this->request->data['Gcm']['ids'];
18
-			$data 		= $this->request->data['Gcm']['data'];
17
+			$ids = $this->request->data['Gcm']['ids'];
18
+			$data = $this->request->data['Gcm']['data'];
19 19
 			$parameters = $this->request->data['Gcm']['parameters'];
20 20
 
21 21
 			if ($this->Gcm->send($ids, $data, $parameters)) {
Please login to merge, or discard this patch.
Controller/GcmAppController.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -8,18 +8,18 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  *
9 9
  * @var array
10 10
  */
11
-    public $helpers =  array(
11
+    public $helpers = array(
12 12
         'Html',
13 13
         'Form'
14 14
     );
Please login to merge, or discard this patch.