From fe3a4c801b0fb2d75350a2a50ba85a07ec7c0750 Mon Sep 17 00:00:00 2001 From: Dani Garcia Date: Mon, 12 Feb 2024 17:03:45 +0100 Subject: [PATCH] fixed typos --- Domain/Model/Helper/DateTimeHelper.php | 2 +- Infrastructure/Persistence/Doctrine/LoggableMigration.php | 2 +- .../Persistence/Doctrine/Model/Helper/CriteriaHelper.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Domain/Model/Helper/DateTimeHelper.php b/Domain/Model/Helper/DateTimeHelper.php index 7bba51e..bc7b054 100755 --- a/Domain/Model/Helper/DateTimeHelper.php +++ b/Domain/Model/Helper/DateTimeHelper.php @@ -58,7 +58,7 @@ public static function createOrFix($value = null, $defaultValue = null) return self::createFromString($value); } - throw new \Exception('Unkown format'); + throw new \Exception('Unknown format'); } /** diff --git a/Infrastructure/Persistence/Doctrine/LoggableMigration.php b/Infrastructure/Persistence/Doctrine/LoggableMigration.php index 4907ef8..c0c849c 100644 --- a/Infrastructure/Persistence/Doctrine/LoggableMigration.php +++ b/Infrastructure/Persistence/Doctrine/LoggableMigration.php @@ -60,7 +60,7 @@ private function logChanges(string $direction) foreach ($this->queries as $query) { $event = new EntityWasUpdated( - 'unkown', + 'unknown', 0, [ 'query' => $query, diff --git a/Infrastructure/Persistence/Doctrine/Model/Helper/CriteriaHelper.php b/Infrastructure/Persistence/Doctrine/Model/Helper/CriteriaHelper.php index 820ffb0..228f603 100755 --- a/Infrastructure/Persistence/Doctrine/Model/Helper/CriteriaHelper.php +++ b/Infrastructure/Persistence/Doctrine/Model/Helper/CriteriaHelper.php @@ -281,7 +281,7 @@ public static function append(string $operator, Criteria $baseCriteria, Criteria { $operator = strtoupper($operator); if (!in_array($operator, [CompositeExpression::TYPE_OR, CompositeExpression::TYPE_AND])) { - throw new \InvalidArgumentException('Unkown operator ' . $operator); + throw new \InvalidArgumentException('Unknown operator ' . $operator); } /** @var CompositeExpression $expression */