Skip to content

Commit

Permalink
Fixed typos (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis authored Mar 19, 2024
1 parent 51d9341 commit 0e3110f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ description: | # Any description of the CSV file. Not u
This example serves as a comprehensive guide for creating robust CSV file validations.
# Regular expression to match the file name. If not set, then no pattern check
# This way you can validate the file name before the validation process.
# Regular expression to match the file name. If not set, then no pattern check.
# This allows you to pre-validate the file name before processing its contents.
# Feel free to check parent directories as well.
# See https://www.php.net/manual/en/reference.pcre.pattern.syntax.php
filename_pattern: /demo(-\d+)?\.csv$/i
Expand Down Expand Up @@ -138,7 +138,7 @@ columns:
# They are grouped below simply for ease of navigation and reading.
# 4. If you see the value for the rule is "true" - that's just an enable flag.
# In other cases, these are rule parameters.
# 5. The order of rules execution is the same as in the scheme. But it doesn't matter.
# 5. The order of rules execution is the same as in the schema. But it doesn't matter.
# The result will be the same in any order.
# 6. Most of the rules are case-sensitive. Unless otherwise specified.
# 7. As backup plan, you always can use the "regex" rule.
Expand Down Expand Up @@ -168,7 +168,7 @@ columns:
length_max: 10

# Basic string checks
is_trimmed: true # Only trimed strings. Example: "Hello World" (not " Hello World ").
is_trimmed: true # Only trimmed strings. Example: "Hello World" (not " Hello World ").
is_lowercase: true # String is only lower-case. Example: "hello world".
is_uppercase: true # String is only upper-case. Example: "HELLO WORLD".
is_capitalize: true # String is only capitalized. Example: "Hello World".
Expand All @@ -188,7 +188,7 @@ columns:
starts_with: "prefix " # Example: "prefix Hello World".
ends_with: " suffix" # Example: "Hello World suffix".

# Under the hood it convertes and compares as float values.
# Under the hood it converts and compares as float values.
# Comparison accuracy is 10 digits after a dot.
# Scientific number format is also supported. Example: "1.2e3".
num: 5 # You can use integers.
Expand Down
10 changes: 5 additions & 5 deletions schema-examples/full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ description: | # Any description of the CSV file. Not u
This example serves as a comprehensive guide for creating robust CSV file validations.
# Regular expression to match the file name. If not set, then no pattern check
# This way you can validate the file name before the validation process.
# Regular expression to match the file name. If not set, then no pattern check.
# This allows you to pre-validate the file name before processing its contents.
# Feel free to check parent directories as well.
# See https://www.php.net/manual/en/reference.pcre.pattern.syntax.php
filename_pattern: /demo(-\d+)?\.csv$/i
Expand Down Expand Up @@ -59,7 +59,7 @@ columns:
# They are grouped below simply for ease of navigation and reading.
# 4. If you see the value for the rule is "true" - that's just an enable flag.
# In other cases, these are rule parameters.
# 5. The order of rules execution is the same as in the scheme. But it doesn't matter.
# 5. The order of rules execution is the same as in the schema. But it doesn't matter.
# The result will be the same in any order.
# 6. Most of the rules are case-sensitive. Unless otherwise specified.
# 7. As backup plan, you always can use the "regex" rule.
Expand Down Expand Up @@ -89,7 +89,7 @@ columns:
length_max: 10

# Basic string checks
is_trimmed: true # Only trimed strings. Example: "Hello World" (not " Hello World ").
is_trimmed: true # Only trimmed strings. Example: "Hello World" (not " Hello World ").
is_lowercase: true # String is only lower-case. Example: "hello world".
is_uppercase: true # String is only upper-case. Example: "HELLO WORLD".
is_capitalize: true # String is only capitalized. Example: "Hello World".
Expand All @@ -109,7 +109,7 @@ columns:
starts_with: "prefix " # Example: "prefix Hello World".
ends_with: " suffix" # Example: "Hello World suffix".

# Under the hood it convertes and compares as float values.
# Under the hood it converts and compares as float values.
# Comparison accuracy is 10 digits after a dot.
# Scientific number format is also supported. Example: "1.2e3".
num: 5 # You can use integers.
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/Cell/ComboNum.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class ComboNum extends AbstractCellRuleCombo
protected const NAME = 'number';

protected const HELP_TOP = [
'Under the hood it convertes and compares as float values.',
'Under the hood it converts and compares as float values.',
'Comparison accuracy is ' . self::PRECISION . ' digits after a dot.',
'Scientific number format is also supported. Example: "1.2e3"',
];
Expand Down

0 comments on commit 0e3110f

Please sign in to comment.