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

@@ 228-235 (lines=8) @@
225
     *
226
     * @param string $operator
227
     */
228
    public function setShowOnValueOperator($operator = 'OR')
229
    {
230
        if ($operator != 'AND' && $operator != 'OR') {
231
            throw new \InvalidArgumentException('not allowed operator: "'.$operator.'" (AND / OR is allowed)');
232
        }
233
234
        $this->showOnValueOperator = (string) $operator;
235
    }
236
237
    /**
238
     * Get the show on value operator, e.g.