diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php b/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php index 702c7f7a..17070c59 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php | |||
@@ -23,9 +23,6 @@ class EntryFilterType extends AbstractType | |||
23 | 23 | ||
24 | /** | 24 | /** |
25 | * Repository & user are used to get a list of language entries for this user. | 25 | * Repository & user are used to get a list of language entries for this user. |
26 | * | ||
27 | * @param EntityRepository $entryRepository | ||
28 | * @param TokenStorageInterface $tokenStorage | ||
29 | */ | 26 | */ |
30 | public function __construct(EntityRepository $entryRepository, TokenStorageInterface $tokenStorage) | 27 | public function __construct(EntityRepository $entryRepository, TokenStorageInterface $tokenStorage) |
31 | { | 28 | { |
@@ -54,8 +51,8 @@ class EntryFilterType extends AbstractType | |||
54 | $lower = $values['value']['left_number'][0]; | 51 | $lower = $values['value']['left_number'][0]; |
55 | $upper = $values['value']['right_number'][0]; | 52 | $upper = $values['value']['right_number'][0]; |
56 | 53 | ||
57 | $min = (int) ($lower * $this->user->getConfig()->getReadingSpeed()); | 54 | $min = (int) ($lower * $this->user->getConfig()->getReadingSpeed() / 200); |
58 | $max = (int) ($upper * $this->user->getConfig()->getReadingSpeed()); | 55 | $max = (int) ($upper * $this->user->getConfig()->getReadingSpeed() / 200); |
59 | 56 | ||
60 | if (null === $lower && null === $upper) { | 57 | if (null === $lower && null === $upper) { |
61 | // no value? no filter | 58 | // no value? no filter |
@@ -108,7 +105,7 @@ class EntryFilterType extends AbstractType | |||
108 | ->add('httpStatus', TextFilterType::class, [ | 105 | ->add('httpStatus', TextFilterType::class, [ |
109 | 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { | 106 | 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) { |
110 | $value = $values['value']; | 107 | $value = $values['value']; |
111 | if (false === array_key_exists($value, Response::$statusTexts)) { | 108 | if (false === \array_key_exists($value, Response::$statusTexts)) { |
112 | return; | 109 | return; |
113 | } | 110 | } |
114 | 111 | ||