From 12db529d2bac147020d79694a87458ebd5d22ec0 Mon Sep 17 00:00:00 2001 From: Damien Debin Date: Tue, 13 Jun 2023 14:12:32 +0200 Subject: [PATCH] Typos --- .gitignore | 1 + composer.json | 4 ++-- examples/callback_fields.php | 4 ++-- examples/simple.php | 2 +- lib/MC/Parser/Def/Regex.php | 2 +- lib/MC/Parser/Def/Word.php | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 26fe71e..d0a4c20 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /vendor/ +/.idea/ /.*.cache /tests-report-html/ /composer.lock diff --git a/composer.json b/composer.json index f2cef42..49d9d08 100644 --- a/composer.json +++ b/composer.json @@ -38,12 +38,12 @@ }, "autoload": { "psr-4": { - "MC\\": "lib/MC" + "MC\\": "lib/MC/" } }, "autoload-dev": { "psr-4": { - "Tests\\": "tests" + "Tests\\": "tests/" } }, "scripts": { diff --git a/examples/callback_fields.php b/examples/callback_fields.php index 05aea08..4d89894 100644 --- a/examples/callback_fields.php +++ b/examples/callback_fields.php @@ -35,7 +35,7 @@ function most_common(array $row): ?string 'pill' => ['field' => 'pill', 'type' => 'number'], 'iud' => ['field' => 'iud', 'type' => 'number'], 'condom' => ['field' => 'condom', 'type' => 'number'], - 'sterile_total' => ['field' => 'steril_total', 'type' => 'number'], + 'sterile_total' => ['field' => 'sterile_total', 'type' => 'number'], 'other_modern' => ['field' => 'other_modern', 'type' => 'number'], 'traditional' => ['field' => 'traditional', 'type' => 'number'], 'most_common' => [ @@ -54,7 +54,7 @@ function most_common(array $row): ?string Callback fields visualization example - + diff --git a/lib/MC/Parser/Def/Regex.php b/lib/MC/Parser/Def/Regex.php index 8d3ec34..8a66e4e 100644 --- a/lib/MC/Parser/Def/Regex.php +++ b/lib/MC/Parser/Def/Regex.php @@ -8,7 +8,7 @@ use MC\Parser\ParseError; /** - * Generic grammar rule for matching a regular expresion. + * Generic grammar rule for matching a regular expression. */ class Regex extends Def { diff --git a/lib/MC/Parser/Def/Word.php b/lib/MC/Parser/Def/Word.php index d8b0086..e8c04ac 100644 --- a/lib/MC/Parser/Def/Word.php +++ b/lib/MC/Parser/Def/Word.php @@ -11,7 +11,7 @@ class Word extends Regex { /** * @param string $firstChars the characters allowed as the first character in the word - * @param null|string $restChars the characters allwed as the rest of the word - defaults to same as $first_chars + * @param null|string $restChars the characters allowed as the rest of the word - defaults to same as $first_chars */ public function __construct(string $firstChars, string $restChars = null) {