Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 7, 2022
1 parent 6578b7c commit de35bf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Validation/Concerns/ReplacesAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -629,15 +629,15 @@ protected function replaceStartsWith($message, $attribute, $rule, $parameters)
}

/**
* Replace all place-holders for the not_starts_with rule.
* Replace all place-holders for the doesnt_start_with rule.
*
* @param string $message
* @param string $attribute
* @param string $rule
* @param array<int,string> $parameters
* @return string
*/
protected function replaceNotStartsWith($message, $attribute, $rule, $parameters)
protected function replaceDoesntStartWith($message, $attribute, $rule, $parameters)
{
foreach ($parameters as &$parameter) {
$parameter = $this->getDisplayableValue($attribute, $parameter);
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Validation/Concerns/ValidatesAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1951,14 +1951,14 @@ public function validateStartsWith($attribute, $value, $parameters)
}

/**
* Validate the attribute not starts with a given substring.
* Validate the attribute does not start with a given substring.
*
* @param string $attribute
* @param mixed $value
* @param array<int, int|string> $parameters
* @return bool
*/
public function validateNotStartsWith($attribute, $value, $parameters)
public function validateDoesntStartWith($attribute, $value, $parameters)
{
return ! Str::startsWith($value, $parameters);
}
Expand Down

0 comments on commit de35bf2

Please sign in to comment.