Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Apr 26, 2024
1 parent 6620ded commit 25ec3e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Classes/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function validateConfig(): bool
],
]);

if (!$passes) {
if (! $passes) {
$validationMessage = $validator->errors()[array_key_first($validator->errors())][0];

throw new ValidationException($validationMessage);
Expand All @@ -58,7 +58,7 @@ protected function validateTrackingOptions(): array
];

foreach ($trackingOptions as $trackingOption => $value) {
$rules[] = Rule::make('tracking.fields.' . $trackingOption)
$rules[] = Rule::make('tracking.fields.'.$trackingOption)
->rules(['required', 'boolean']);
}

Expand Down

0 comments on commit 25ec3e2

Please sign in to comment.