Code Duplication    Length = 8-8 lines in 2 locations

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

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

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

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