Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and actions-user committed Nov 16, 2021
1 parent 44fb77d commit f89192f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/LaravelDataServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function packageRegistered()
{
$this->app->singleton(
DataConfig::class,
fn() => new DataConfig(config('data'))
fn () => new DataConfig(config('data'))
);

/** @psalm-suppress UndefinedInterfaceMethod */
Expand All @@ -31,7 +31,7 @@ public function packageRegistered()

$this->app->bind(
$class,
fn() => $class::from($this->app->make(Request::class)),
fn () => $class::from($this->app->make(Request::class)),
);
});
}
Expand Down
7 changes: 3 additions & 4 deletions tests/DataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Carbon\Carbon;
use Carbon\CarbonImmutable;
use DateTime;
use Exception;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Http\FormRequest;
Expand Down Expand Up @@ -681,11 +680,11 @@ protected function dataClass(): string
/** @test */
public function it_always_validates_requests_when_passed_to_the_from_method()
{
try{
try {
RequestData::from(new Request());
}catch (ValidationException $exception){
} catch (ValidationException $exception) {
$this->assertEquals([
'string' => ['The string field is required.']
'string' => ['The string field is required.'],
], $exception->errors());

return;
Expand Down

0 comments on commit f89192f

Please sign in to comment.