• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / whip / 7300735247

22 Dec 2023 02:07PM UTC coverage: 31.683% (+3.0%) from 28.713%
7300735247

push

github

web-flow
Merge pull request #157 from Yoast/move-to-namespace-v2

Move source classes to the `Yoast\WHIPv2` namespace

30 of 114 new or added lines in 18 files covered. (26.32%)

96 of 303 relevant lines covered (31.68%)

2.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Exceptions/InvalidOperatorType.php
1
<?php
2

3
namespace Yoast\WHIPv2\Exceptions;
4

5
use Exception;
6

7
/**
8
 * Class InvalidOperatorType.
9
 */
10
class InvalidOperatorType extends Exception {
11

12
        /**
13
         * InvalidOperatorType constructor.
14
         *
15
         * @param string   $value          Invalid operator.
16
         * @param string[] $validOperators Valid operators.
17
         */
18
        public function __construct( $value, $validOperators = array( '=', '==', '===', '<', '>', '<=', '>=' ) ) {
×
19
                parent::__construct(
×
NEW
20
                        \sprintf(
×
21
                                'Invalid operator of %s used. Please use one of the following operators: %s',
×
22
                                $value,
×
NEW
23
                                \implode( ', ', $validOperators )
×
24
                        )
25
                );
26
        }
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc