| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 66 | public function register() |
|
| 16 | 66 | { |
|
| 17 | 66 | $this->mergeConfigFrom( |
|
| 18 | __DIR__ . '/../config/services.php', |
||
| 19 | 'services' |
||
| 20 | 66 | ); |
|
| 21 | 66 | ||
| 22 | 66 | $this->mergeConfigFrom( |
|
| 23 | __DIR__ . '/../config/postcodes.php', |
||
| 24 | 'postcodes' |
||
| 25 | ); |
||
| 26 | 3 | ||
| 27 | 3 | $this->app->bind(PostcodeService::class, function () { |
|
| 28 | return new PostcodeService( |
||
| 29 | 66 | new Client() |
|
| 30 | ); |
||
| 31 | }); |
||
| 32 | 3 | ||
| 33 | 66 | Rule::macro('postcode', function () { |
|
| 34 | 66 | return new Postcode(resolve(PostcodeService::class)); |
|
| 35 | }); |
||
| 38 |