diff --git a/README.md b/README.md index 8d20a7f..18bae3a 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,15 @@ Publish package config files: php artisan vendor:publish --provider="Hofmannsven\Brevo\BrevoServiceProvider" ``` -## Testing +## Development + +### Code Style Fixer + +```bash +composer format +``` + +### Testing ```bash composer test diff --git a/src/BrevoServiceProvider.php b/src/BrevoServiceProvider.php index 79ae797..60ad010 100644 --- a/src/BrevoServiceProvider.php +++ b/src/BrevoServiceProvider.php @@ -27,6 +27,6 @@ public function register(): void $this->mergeConfigFrom(__DIR__.'/../config/brevo.php', 'brevo'); // Bind the service to the container. - $this->app->singleton('brevo', fn () => new Brevo()); + $this->app->singleton('brevo', fn () => new Brevo); } } diff --git a/tests/LaravelBrevoTest.php b/tests/LaravelBrevoTest.php index 12b303b..83bf042 100644 --- a/tests/LaravelBrevoTest.php +++ b/tests/LaravelBrevoTest.php @@ -21,8 +21,8 @@ public function it_tests_if_configuration_is_instance_of_brevo_client(): void #[Test] public function it_tests_if_configuration_is_set(): void { - $config = new Configuration(); - $brevo = new Brevo(); + $config = new Configuration; + $brevo = new Brevo; $brevo::setConfiguration($config); $this->assertEquals($config, $brevo::getConfiguration()); }