Skip to content

Commit 014b90e

Browse files
author
Jordan Hall
committed
Style fixes
1 parent 899cad8 commit 014b90e

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

src/Objects/PostcodesIo.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php
22

3-
43
namespace DivineOmega\Postcodes\Objects;
54

6-
75
use DivineOmega\Postcodes\Interfaces\PostcodeServiceInterface;
86
use Exception;
97
use GuzzleHttp\Client;
@@ -71,4 +69,4 @@ private function parseResponse(Response $response)
7169

7270
return $addresses;
7371
}
74-
}
72+
}

tests/Unit/PostcodesIoTest.php

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<?php
22

3-
use DivineOmega\Postcodes\Exceptions\InvalidPostcodeException;
43
use DivineOmega\Postcodes\Objects\PostcodesIo;
5-
use DivineOmega\Postcodes\Utils\Generator;
6-
use DivineOmega\Postcodes\Utils\Tokenizer;
7-
use DivineOmega\Postcodes\Utils\Validator;
84
use PHPUnit\Framework\TestCase;
95

106
final class PostcodesIoTest extends TestCase
@@ -13,23 +9,23 @@ public function validationProvider()
139
{
1410
return [
1511
[
16-
'postcode' => 'ST163DP',
12+
'postcode' => 'ST163DP',
1713
'expectedResponse' => [
18-
'townCity' => 'Stafford',
19-
'county' => 'Staffordshire',
20-
'postcode' => 'ST16 3DP',
14+
'townCity' => 'Stafford',
15+
'county' => 'Staffordshire',
16+
'postcode' => 'ST16 3DP',
2117
'longitude' => -2.11556,
22-
'latitude' => 52.822944,
18+
'latitude' => 52.822944,
2319
],
2420
],
2521
[
26-
'postcode' => 'TN30YA',
22+
'postcode' => 'TN30YA',
2723
'expectedResponse' => [
28-
'townCity' => 'Tunbridge Wells',
29-
'county' => 'Kent',
30-
'postcode' => 'TN3 0YA',
24+
'townCity' => 'Tunbridge Wells',
25+
'county' => 'Kent',
26+
'postcode' => 'TN3 0YA',
3127
'longitude' => 0.226856,
32-
'latitude' => 51.13246,
28+
'latitude' => 51.13246,
3329
],
3430
],
3531
];
@@ -45,9 +41,8 @@ public function testLookup($postcode, $expectedResponse)
4541

4642
$address = $addresses[0];
4743

48-
foreach($expectedResponse as $key => $value) {
44+
foreach ($expectedResponse as $key => $value) {
4945
$this->assertEquals($value, $address->$key);
5046
}
5147
}
52-
5348
}

0 commit comments

Comments
 (0)