Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
hofmannsven committed Nov 8, 2024
1 parent 648c5f3 commit adc86c7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/BrevoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
4 changes: 2 additions & 2 deletions tests/LaravelBrevoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit adc86c7

Please sign in to comment.