@@ -6,8 +6,7 @@ discard block |
||
6 | 6 | use LunixREST\Request\Request; |
7 | 7 | use LunixREST\Response\ResponseData; |
8 | 8 | |
9 | -class PhoneNumbers extends DefaultEndpoint |
|
10 | -{ |
|
9 | +class PhoneNumbers extends DefaultEndpoint { |
|
11 | 10 | |
12 | 11 | protected $geoPhone; |
13 | 12 | |
@@ -15,8 +14,7 @@ discard block |
||
15 | 14 | * PhoneNumbers constructor. |
16 | 15 | * @param GeoPhone $geoPhone |
17 | 16 | */ |
18 | - public function __construct(GeoPhone $geoPhone) |
|
19 | - { |
|
17 | + public function __construct(GeoPhone $geoPhone) { |
|
20 | 18 | $this->geoPhone = $geoPhone; |
21 | 19 | } |
22 | 20 |
@@ -6,13 +6,11 @@ |
||
6 | 6 | use LunixREST\Endpoint\Endpoint; |
7 | 7 | use LunixREST\Endpoint\Exceptions\UnknownEndpointException; |
8 | 8 | |
9 | -class EndpointFactory implements \LunixREST\Endpoint\EndpointFactory |
|
10 | -{ |
|
9 | +class EndpointFactory implements \LunixREST\Endpoint\EndpointFactory { |
|
11 | 10 | |
12 | 11 | protected $geoPhone; |
13 | 12 | |
14 | - public function __construct(GeoPhone $geoPhone) |
|
15 | - { |
|
13 | + public function __construct(GeoPhone $geoPhone) { |
|
16 | 14 | $this->geoPhone = $geoPhone; |
17 | 15 | } |
18 | 16 |
@@ -7,8 +7,7 @@ discard block |
||
7 | 7 | * Class GeoPhone |
8 | 8 | * @package GeoPhone\Models |
9 | 9 | */ |
10 | -class LookupResponse implements ResponseData |
|
11 | -{ |
|
10 | +class LookupResponse implements ResponseData { |
|
12 | 11 | protected $city; |
13 | 12 | protected $state; |
14 | 13 | |
@@ -17,8 +16,7 @@ discard block |
||
17 | 16 | * @param string $city |
18 | 17 | * @param string $state |
19 | 18 | */ |
20 | - public function __construct(string $city, string $state) |
|
21 | - { |
|
19 | + public function __construct(string $city, string $state) { |
|
22 | 20 | $this->city = $city; |
23 | 21 | $this->state = $state; |
24 | 22 | } |
@@ -5,8 +5,7 @@ discard block |
||
5 | 5 | * Class GeoPhone |
6 | 6 | * @package GeoPhone\Models |
7 | 7 | */ |
8 | -class GeoPhone |
|
9 | -{ |
|
8 | +class GeoPhone { |
|
10 | 9 | /** |
11 | 10 | * @var resource |
12 | 11 | */ |
@@ -15,8 +14,7 @@ discard block |
||
15 | 14 | /** |
16 | 15 | * @param string $filename |
17 | 16 | */ |
18 | - public function __construct($filename = 'data.csv') |
|
19 | - { |
|
17 | + public function __construct($filename = 'data.csv') { |
|
20 | 18 | $this->fileHandle = fopen($filename, 'r'); |
21 | 19 | } |
22 | 20 |
@@ -6,8 +6,7 @@ |
||
6 | 6 | use LunixREST\Request\Request; |
7 | 7 | use LunixREST\Response\ResponseData; |
8 | 8 | |
9 | -class helloworld extends DefaultEndpoint |
|
10 | -{ |
|
9 | +class helloworld extends DefaultEndpoint { |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * @param Request $request |
@@ -3,8 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use LunixREST\Response\ResponseData; |
5 | 5 | |
6 | -class HelloWorld implements ResponseData |
|
7 | -{ |
|
6 | +class HelloWorld implements ResponseData { |
|
8 | 7 | |
9 | 8 | protected $helloWorld = "HelloWorld"; |
10 | 9 |