@@ -15,11 +15,11 @@ |
||
15 | 15 | |
16 | 16 | $now = time(); |
17 | 17 | |
18 | - $options = []; |
|
19 | - $options['orderBy'] ="timestamp"; |
|
20 | - $options['startAt'] = $yesterday; |
|
21 | - $options['endAt'] = $now; |
|
22 | - //$opt['equalTo'] ='string that want to be equals'; |
|
18 | + $options = []; |
|
19 | + $options['orderBy'] ="timestamp"; |
|
20 | + $options['startAt'] = $yesterday; |
|
21 | + $options['endAt'] = $now; |
|
22 | + //$opt['equalTo'] ='string that want to be equals'; |
|
23 | 23 | |
24 | 24 | function test(...$params){ |
25 | 25 | // pass event to callback function |
@@ -16,12 +16,12 @@ |
||
16 | 16 | $now = time(); |
17 | 17 | |
18 | 18 | $options = []; |
19 | - $options['orderBy'] ="timestamp"; |
|
19 | + $options['orderBy'] = "timestamp"; |
|
20 | 20 | $options['startAt'] = $yesterday; |
21 | 21 | $options['endAt'] = $now; |
22 | 22 | //$opt['equalTo'] ='string that want to be equals'; |
23 | 23 | |
24 | -function test(...$params){ |
|
24 | +function test(...$params) { |
|
25 | 25 | // pass event to callback function |
26 | 26 | |
27 | 27 | print_r($params[0]); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | $firebase = new Firebase($auth); |
15 | 15 | |
16 | 16 | |
17 | -$opt = [];// |
|
17 | +$opt = []; // |
|
18 | 18 | |
19 | 19 | $firebase->getRules($path, $opt); |
20 | 20 |