@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Mpociot\VatCalculator\Validators; |
| 4 | 4 | |
| 5 | -use Illuminate\Validation\Validator; |
|
| 6 | 5 | use Mpociot\VatCalculator\Exceptions\VATCheckUnavailableException; |
| 7 | 6 | use Mpociot\VatCalculator\Facades\VatCalculator; |
| 8 | 7 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | { |
| 71 | 71 | $this->app->bind('vatcalculator', '\Mpociot\VatCalculator\VatCalculator'); |
| 72 | 72 | |
| 73 | - $this->app->bind('\Mpociot\VatCalculator\VatCalculator', function ($app) { |
|
| 73 | + $this->app->bind('\Mpociot\VatCalculator\VatCalculator', function($app) { |
|
| 74 | 74 | $config = $app->make('Illuminate\Contracts\Config\Repository'); |
| 75 | 75 | |
| 76 | 76 | return new \Mpociot\VatCalculator\VatCalculator($config); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function registerFacade() |
| 86 | 86 | { |
| 87 | - $this->app->booting(function () { |
|
| 87 | + $this->app->booting(function() { |
|
| 88 | 88 | $loader = \Illuminate\Foundation\AliasLoader::getInstance(); |
| 89 | 89 | $loader->alias('VatCalculator', 'Mpociot\VatCalculator\Facades\VatCalculator'); |
| 90 | 90 | }); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | 'vatnumber-validator' |
| 110 | 110 | ); |
| 111 | 111 | |
| 112 | - $this->app['validator']->extend('vat_number', |
|
| 112 | + $this->app[ 'validator' ]->extend('vat_number', |
|
| 113 | 113 | 'Mpociot\VatCalculator\Validators\VatCalculatorValidatorExtension@validateVatNumber'); |
| 114 | 114 | } |
| 115 | 115 | |