Code Duplication    Length = 8-8 lines in 2 locations

src/ZfcDatagrid/Column/Style/AbstractStyle.php 1 location

@@ 22-29 (lines=8) @@
19
     *
20
     * @param string $operator
21
     */
22
    public function setByValueOperator($operator = 'OR')
23
    {
24
        if ($operator != 'AND' && $operator != 'OR') {
25
            throw new \InvalidArgumentException('not allowed operator: "'.$operator.'" (AND / OR is allowed)');
26
        }
27
28
        $this->byValueOperator = (string) $operator;
29
    }
30
31
    /**
32
     * Get the show on value operator, e.g.

src/ZfcDatagrid/Column/Action/AbstractAction.php 1 location

@@ 270-277 (lines=8) @@
267
     *
268
     * @param string $operator
269
     */
270
    public function setShowOnValueOperator($operator = 'OR')
271
    {
272
        if ($operator != 'AND' && $operator != 'OR') {
273
            throw new \InvalidArgumentException('not allowed operator: "'.$operator.'" (AND / OR is allowed)');
274
        }
275
276
        $this->showOnValueOperator = (string) $operator;
277
    }
278
279
    /**
280
     * Get the show on value operator, e.g.