@@ -23,7 +23,7 @@ |
||
23 | 23 | <h3><?= $ip . $isValidMessage; ?> |
24 | 24 | <?php |
25 | 25 | if ($isValidIPv4) { |
26 | - echo " (IPv4)"; |
|
26 | + echo " (IPv4)"; |
|
27 | 27 | } elseif ($isValidIPv6) { |
28 | 28 | echo " (IPv6)"; |
29 | 29 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "keystore" => [ |
9 | 9 | "shared" => true, |
10 | 10 | //"callback" => "\Anax\Response\Response", |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $keystore = new \Lefty\KeyStore\KeyStore(); |
13 | 13 | $keystore->setDI($this); |
14 | 14 |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | "keys" => [ |
5 | - "ipstack" => file_get_contents(ANAX_INSTALL_PATH."/data/PRIVATE_TOKEN"), |
|
6 | - "openweathermap" => file_get_contents(ANAX_INSTALL_PATH."/data/PRIVATE_TOKEN2"), |
|
5 | + "ipstack" => file_get_contents(ANAX_INSTALL_PATH . "/data/PRIVATE_TOKEN"), |
|
6 | + "openweathermap" => file_get_contents(ANAX_INSTALL_PATH . "/data/PRIVATE_TOKEN2"), |
|
7 | 7 | ] |
8 | 8 | ]; |
@@ -45,13 +45,13 @@ discard block |
||
45 | 45 | |
46 | 46 | |
47 | 47 | /** |
48 | - * This is the index method action, it handles: |
|
49 | - * ANY METHOD mountpoint |
|
50 | - * ANY METHOD mountpoint/ |
|
51 | - * ANY METHOD mountpoint/index |
|
52 | - * |
|
53 | - * @return object |
|
54 | - */ |
|
48 | + * This is the index method action, it handles: |
|
49 | + * ANY METHOD mountpoint |
|
50 | + * ANY METHOD mountpoint/ |
|
51 | + * ANY METHOD mountpoint/index |
|
52 | + * |
|
53 | + * @return object |
|
54 | + */ |
|
55 | 55 | public function indexActionGet(): object |
56 | 56 | { |
57 | 57 | $request = $this->di->get("request"); |
@@ -117,13 +117,13 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
120 | - * This is the index method action, it handles: |
|
121 | - * ANY METHOD mountpoint |
|
122 | - * ANY METHOD mountpoint/ |
|
123 | - * ANY METHOD mountpoint/index |
|
124 | - * |
|
125 | - * @return object |
|
126 | - */ |
|
120 | + * This is the index method action, it handles: |
|
121 | + * ANY METHOD mountpoint |
|
122 | + * ANY METHOD mountpoint/ |
|
123 | + * ANY METHOD mountpoint/index |
|
124 | + * |
|
125 | + * @return object |
|
126 | + */ |
|
127 | 127 | public function indexActionPost(): object |
128 | 128 | { |
129 | 129 | $request = $this->di->get("request"); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function indexActionGet(): object |
56 | 56 | { |
57 | - $request = $this->di->get("request"); |
|
57 | + $request = $this->di->get("request"); |
|
58 | 58 | $iptocheck = $request->getGet("ip") ?? ""; |
59 | 59 | |
60 | 60 | // Prepare page |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | public function indexActionPost(): object |
126 | 126 | { |
127 | - $request = $this->di->get("request"); |
|
127 | + $request = $this->di->get("request"); |
|
128 | 128 | $iptocheck = $request->getPost("ip") ?? ""; |
129 | 129 | |
130 | 130 | // Prepare page |
@@ -45,13 +45,13 @@ discard block |
||
45 | 45 | |
46 | 46 | |
47 | 47 | /** |
48 | - * This is the index method action, it handles: |
|
49 | - * ANY METHOD mountpoint |
|
50 | - * ANY METHOD mountpoint/ |
|
51 | - * ANY METHOD mountpoint/index |
|
52 | - * |
|
53 | - * @return object |
|
54 | - */ |
|
48 | + * This is the index method action, it handles: |
|
49 | + * ANY METHOD mountpoint |
|
50 | + * ANY METHOD mountpoint/ |
|
51 | + * ANY METHOD mountpoint/index |
|
52 | + * |
|
53 | + * @return object |
|
54 | + */ |
|
55 | 55 | public function indexActionGet(): array |
56 | 56 | { |
57 | 57 | $request = $this->di->get("request"); |
@@ -95,13 +95,13 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | - * This is the index method action, it handles: |
|
99 | - * ANY METHOD mountpoint |
|
100 | - * ANY METHOD mountpoint/ |
|
101 | - * ANY METHOD mountpoint/index |
|
102 | - * |
|
103 | - * @return object |
|
104 | - */ |
|
98 | + * This is the index method action, it handles: |
|
99 | + * ANY METHOD mountpoint |
|
100 | + * ANY METHOD mountpoint/ |
|
101 | + * ANY METHOD mountpoint/index |
|
102 | + * |
|
103 | + * @return object |
|
104 | + */ |
|
105 | 105 | public function indexActionPost(): array |
106 | 106 | { |
107 | 107 | $request = $this->di->get("request"); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function indexActionGet(): array |
56 | 56 | { |
57 | - $request = $this->di->get("request"); |
|
57 | + $request = $this->di->get("request"); |
|
58 | 58 | $iptocheck = $request->getGet("ip") ?? ""; |
59 | 59 | |
60 | 60 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function indexActionPost(): array |
106 | 106 | { |
107 | - $request = $this->di->get("request"); |
|
107 | + $request = $this->di->get("request"); |
|
108 | 108 | $iptocheck = $request->getPost("ip") ?? ""; |
109 | 109 | |
110 | 110 |