@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | $table = $node->filter('table')->eq(1); |
21 | 21 | |
22 | - return $table->filter('tbody > tr')->each(function (Crawler $row) { |
|
22 | + return $table->filter('tbody > tr')->each(function(Crawler $row) { |
|
23 | 23 | $cols = $row->children(); |
24 | 24 | |
25 | 25 | return new DeliveryOption( |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function map(array $data) |
18 | 18 | { |
19 | - return array_map(function ($location) { |
|
19 | + return array_map(function($location) { |
|
20 | 20 | return new Location($location['label'], $location['code']); |
21 | 21 | }, $data); |
22 | 22 | } |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace Jne; |
4 | 4 | |
5 | -use Jne\Contracts\CourierSystemInterface; |
|
5 | +use Jne\Collections\DeliveryOptionCollection; |
|
6 | 6 | use Jne\Collections\LocationCollection; |
7 | +use Jne\Contracts\CourierSystemInterface; |
|
8 | +use Jne\Contracts\Foundation\PackageInterface; |
|
7 | 9 | use Jne\Mappers\ArrayMappers\LocationMapper; |
8 | -use Jne\Collections\DeliveryOptionCollection; |
|
9 | 10 | use Jne\Mappers\HtmlMappers\DeliveryOptionHtmlMapper; |
10 | -use Jne\Contracts\Foundation\PackageInterface; |
|
11 | 11 | |
12 | 12 | class Jne implements CourierSystemInterface |
13 | 13 | { |