From a5aafde3a06355f9394151232965f49cbb348608 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Tue, 19 Nov 2024 22:36:18 +0000 Subject: [PATCH] Apply fixes from StyleCI --- extensions/tags/src/Listener/SaveTagsToDatabase.php | 4 +--- extensions/tags/src/TagCountValidator.php | 9 ++++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/extensions/tags/src/Listener/SaveTagsToDatabase.php b/extensions/tags/src/Listener/SaveTagsToDatabase.php index bd4b48fbdc..d127400955 100755 --- a/extensions/tags/src/Listener/SaveTagsToDatabase.php +++ b/extensions/tags/src/Listener/SaveTagsToDatabase.php @@ -36,7 +36,6 @@ class SaveTagsToDatabase */ protected $translator; - /** * @var TagCountValidator */ @@ -149,8 +148,7 @@ protected function validateTagCount($type, $count) // $this->tagCountValidator->setCount($count); $this->tagCountValidator->assertValid([$key => $count]); - - + // $validator = $this->validator->make( // [$key => $count], // [$key => ['numeric', $min === $max ? "size:$min" : "between:$min,$max"]] diff --git a/extensions/tags/src/TagCountValidator.php b/extensions/tags/src/TagCountValidator.php index 8c30eb2e42..a0f1ef02de 100644 --- a/extensions/tags/src/TagCountValidator.php +++ b/extensions/tags/src/TagCountValidator.php @@ -1,5 +1,12 @@ [ 'numeric', 'size:'.$min, - 'between:'.$min,$max + 'between:'.$min, $max ] ]; }