Skip to content

Commit

Permalink
Applied Laravel Pint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
little-apps authored and github-actions[bot] committed May 18, 2024
1 parent ab995c1 commit 0b993fb
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/Validation/ExtendedValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ public function withoutDefaults(): static
/**
* Includes validatable
*
* @param callable $validatable
* @param boolean $after If true, added at the end.
* @return static
* @param callable $validatable
* @param bool $after If true, added at the end.
*/
public function with($validatable, bool $after = false): static {
if (!$after) {
public function with($validatable, bool $after = false): static
{
if (! $after) {
array_unshift($this->beforeValidatables, $validatable);
} else {
array_push($this->afterValidatables, $validatable);
Expand All @@ -81,12 +81,11 @@ public function with($validatable, bool $after = false): static {
/**
* Excludes validatable
*
* @param callable $validatable
* @param boolean $after
* @return static
* @param callable $validatable
*/
public function without($validatable, bool $after = false): static {
if (!$after) {
public function without($validatable, bool $after = false): static
{
if (! $after) {
$this->beforeValidatables = array_filter($this->beforeValidatables, fn ($callback) => $callback !== $validatable);
} else {
$this->afterValidatables = array_filter($this->afterValidatables, fn ($callback) => $callback !== $validatable);
Expand Down

0 comments on commit 0b993fb

Please sign in to comment.