Skip to content

Commit

Permalink
Fix typos (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Apr 23, 2024
1 parent ae88d06 commit 3a01758
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Checks for a valid [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_

### Camel case string

The field under validation must be a formated in [Camel case](https://en.wikipedia.org/wiki/Camel_case).
The field under validation must be a formatted in [Camel case](https://en.wikipedia.org/wiki/Camel_case).

public Intervention\Validation\Rules\Camelcase::__construct()

Expand Down Expand Up @@ -179,7 +179,7 @@ The given value must be a in format of a [JSON Web Token](https://en.wikipedia.o

### Kebab case string

The given value must be formated in [Kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
The given value must be formatted in [Kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).

public Intervention\Validation\Rules\Kebabcase::__construct()

Expand Down Expand Up @@ -247,13 +247,13 @@ The field under validation must be a user- and [SEO-friendly short text](https:/

### Snake case string

The field under validation must formated as [Snake case](https://en.wikipedia.org/wiki/Snake_case) text.
The field under validation must formatted as [Snake case](https://en.wikipedia.org/wiki/Snake_case) text.

public Intervention\Validation\Rules\Snakecase::__construct()

### Title case string

The field under validation must formated in [Title case](https://en.wikipedia.org/wiki/Title_case).
The field under validation must formatted in [Title case](https://en.wikipedia.org/wiki/Title_case).

public Intervention\Validation\Rules\Titlecase::__construct()

Expand Down
4 changes: 2 additions & 2 deletions src/AbstractRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ abstract class AbstractRule implements Rule, ValidationRule
abstract public function isValid(mixed $value): bool;

/**
* Laravel Framwork validation method
* Laravel Framework validation method
*
* @param string $attribute
* @param mixed $value
Expand Down Expand Up @@ -49,7 +49,7 @@ public function message()

if (function_exists('trans')) {
// if message is same as key, there is no
// tranlation so we will use internal
// translation so we will use internal
$message = trans($key);
if ($message === $key) {
return trans('validation::' . $key);
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/Domainname.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function isValidALabel(string $value): bool
}

/**
* Determine if given value is valud NR-LDH label
* Determine if given value is valid NR-LDH label
*
* @param string $value
* @return bool
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/Ean.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function isValid(mixed $value): bool
}

/**
* Determine if the current value has the lenghts of EAN-8 or EAN-13
* Determine if the current value has the lengths of EAN-8 or EAN-13
*
* @return bool
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/Hexadecimalcolor.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function isValid(mixed $value): bool
}

/**
* Determine if the current value has correct lenght
* Determine if the current value has correct length
*
* @return bool
*/
Expand Down

0 comments on commit 3a01758

Please sign in to comment.