Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Oct 12, 2023
1 parent 3b63875 commit 8a43055
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Transformers/DataTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ protected function resolvePropertyValue(
};

if ($value instanceof TransformableData && $this->transformValues) {
return $value->transform($this->transformValues, $wrapExecutionType, $this->mapPropertyNames,);
return $value->transform($this->transformValues, $wrapExecutionType, $this->mapPropertyNames, );
}

return $value;
Expand Down
8 changes: 5 additions & 3 deletions tests/ValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
use Illuminate\Validation\Rules\In as LaravelIn;
use Illuminate\Validation\ValidationException;
use Illuminate\Validation\Validator;

use function Pest\Laravel\mock;
use function PHPUnit\Framework\assertFalse;

use Spatie\LaravelData\Attributes\DataCollectionOf;
use Spatie\LaravelData\Attributes\MapInputName;
use Spatie\LaravelData\Attributes\MapName;
Expand Down Expand Up @@ -65,8 +69,6 @@
use Spatie\LaravelData\Tests\Fakes\Support\FakeInjectable;
use Spatie\LaravelData\Tests\Fakes\ValidationAttributes\PassThroughCustomValidationAttribute;
use Spatie\LaravelData\Tests\TestSupport\DataValidationAsserter;
use function Pest\Laravel\mock;
use function PHPUnit\Framework\assertFalse;

it('can validate a string', function () {
$dataClass = new class () extends Data {
Expand Down Expand Up @@ -2379,7 +2381,7 @@ public static function rules(ValidationContext $context): array
})->skip('V4: The rule inferrers need to be rewritten/removed for this, we need to first add attribute rules and then decide require stuff');

it('will not transform non set optional properties ', function () {
$dataClass = new class extends Data {
$dataClass = new class () extends Data {
public array|Optional $optional;
};

Expand Down

0 comments on commit 8a43055

Please sign in to comment.