Skip to content

Commit

Permalink
Merge pull request #279 from ash-jc-allen/analysis-maPGbY
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
ash-jc-allen authored Apr 26, 2024
2 parents a5a10ec + 2cf3617 commit 168392c
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 168392c

Please sign in to comment.