@@ -11,14 +11,14 @@ |
||
11 | 11 | * |
12 | 12 | * @SuppressWarnings(PHPMD.TooManyPublicMethods) |
13 | 13 | */ |
14 | - class WeatherIp implements ContainerInjectableInterface |
|
15 | - { |
|
16 | - use ContainerInjectableTrait; |
|
17 | - public function validateIp($ipAddress) |
|
18 | - { |
|
19 | - if (filter_var($ipAddress, FILTER_VALIDATE_IP)) { |
|
20 | - return $ipAddress; |
|
21 | - } |
|
22 | - return null; |
|
23 | - } |
|
24 | - } |
|
14 | + class WeatherIp implements ContainerInjectableInterface |
|
15 | + { |
|
16 | + use ContainerInjectableTrait; |
|
17 | + public function validateIp($ipAddress) |
|
18 | + { |
|
19 | + if (filter_var($ipAddress, FILTER_VALIDATE_IP)) { |
|
20 | + return $ipAddress; |
|
21 | + } |
|
22 | + return null; |
|
23 | + } |
|
24 | + } |
@@ -5,9 +5,9 @@ |
||
5 | 5 | return [ |
6 | 6 | "routes" => [ |
7 | 7 | [ |
8 | - "info" => "Weather IP (JSON)", |
|
9 | - "mount" => "weatherjson", |
|
10 | - "handler" => "\Aisa\Weather\JsonWeather", |
|
11 | - ], |
|
8 | + "info" => "Weather IP (JSON)", |
|
9 | + "mount" => "weatherjson", |
|
10 | + "handler" => "\Aisa\Weather\JsonWeather", |
|
11 | + ], |
|
12 | 12 | ] |
13 | 13 | ]; |