Skip to content

Commit a5aafde

Browse files
committed
Apply fixes from StyleCI
1 parent ad4c7f1 commit a5aafde

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

extensions/tags/src/Listener/SaveTagsToDatabase.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class SaveTagsToDatabase
3636
*/
3737
protected $translator;
3838

39-
4039
/**
4140
* @var TagCountValidator
4241
*/
@@ -149,8 +148,7 @@ protected function validateTagCount($type, $count)
149148
// $this->tagCountValidator->setCount($count);
150149

151150
$this->tagCountValidator->assertValid([$key => $count]);
152-
153-
151+
154152
// $validator = $this->validator->make(
155153
// [$key => $count],
156154
// [$key => ['numeric', $min === $max ? "size:$min" : "between:$min,$max"]]

extensions/tags/src/TagCountValidator.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of Flarum.
5+
*
6+
* For detailed copyright and license information, please view the
7+
* LICENSE file that was distributed with this source code.
8+
*/
9+
310
namespace Flarum\Tags;
411

512
use Flarum\Foundation\AbstractValidator;
@@ -107,7 +114,7 @@ protected function getRules()
107114
'tag_count_'.$type => [
108115
'numeric',
109116
'size:'.$min,
110-
'between:'.$min,$max
117+
'between:'.$min, $max
111118
]
112119
];
113120
}

0 commit comments

Comments
 (0)