Skip to content

Commit

Permalink
Refactor IgnitionRenderer to improve code formatting by removing unus…
Browse files Browse the repository at this point in the history
…ed middleware and adjusting function syntax
  • Loading branch information
webrgp committed Jan 2, 2025
1 parent a4b5527 commit 07ba073
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/IgnitionRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use craft\base\Component;
use craft\helpers\App;
use Spatie\FlareClient\Flare;
use Spatie\FlareClient\FlareMiddleware\CensorRequestBodyFields;
use Spatie\FlareClient\FlareMiddleware\CensorRequestHeaders;
use Spatie\Ignition\Config\IgnitionConfig;
use Spatie\Ignition\Ignition as SpatieIgnition;
Expand Down Expand Up @@ -91,7 +90,7 @@ private function initIgnition(): SpatieIgnition
->applicationPath($this->applicationPath)
->shouldDisplayException(App::devMode())
->runningInProductionEnvironment(false)
->configureFlare(function (Flare $flare) use ($middlewares) {
->configureFlare(function(Flare $flare) use ($middlewares) {
$flare->registerMiddleware($middlewares);
});
}
Expand Down

0 comments on commit 07ba073

Please sign in to comment.