Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
robertogallea authored and github-actions[bot] committed Jul 16, 2024
1 parent 35f4bb8 commit ebe07aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CodiceFiscaleServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ private function packagePath($path)

public function registerFakerProvider(): void
{
if(!class_exists(Factory::class)){
if (! class_exists(Factory::class)) {
return;
}

$this->app->singleton(Generator::class, function () {
$faker = Factory::create();
$faker->addProvider(new CodiceFiscaleFakerProvider($faker));

return $faker;
});

if(function_exists('fake')){
if (function_exists('fake')) {
fake()->addProvider(app(CodiceFiscaleFakerProvider::class));
}
}
Expand Down

0 comments on commit ebe07aa

Please sign in to comment.