Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
refactor: change usernameRules and getUserData visibility (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaur authored Jul 22, 2021
1 parent 21e953c commit f768d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Actions/CreateNewUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private function buildValidator(array $input): Illuminate
return Validator::make($input, static::createValidationRules());
}

private function getUserData(array $input): array
public function getUserData(array $input): array
{
$userData = [
'name' => $input['name'],
Expand All @@ -99,7 +99,7 @@ private function getUserData(array $input): array
return $userData;
}

private static function usernameRules(): array
protected static function usernameRules(): array
{
$rules = ['required', 'string', 'max:255', 'unique:users'];

Expand Down

0 comments on commit f768d9a

Please sign in to comment.