Code Duplication    Length = 3-3 lines in 2 locations

src/Mappable/Hooks.php 1 location

@@ 31-33 (lines=3) @@
28
                return call_user_func_array([$this, 'mappedQuery'], [$query, $method, $args]);
29
            }
30
31
            if (in_array($method, ['select', 'addSelect'])) {
32
                call_user_func_array([$this, 'mappedSelect'], [$query, $args]);
33
            }
34
35
            return $next($query, $bag);
36
        };

src/Metable/Hooks.php 1 location

@@ 149-151 (lines=3) @@
146
                return call_user_func_array([$this, 'metaQuery'], [$query, $method, $args]);
147
            }
148
149
            if (in_array($method, ['select', 'addSelect'])) {
150
                call_user_func_array([$this, 'metaSelect'], [$query, $args]);
151
            }
152
153
            return $next($query, $bag);
154
        };