Code Duplication    Length = 4-4 lines in 4 locations

Twig/DoctrineExtension.php 4 locations

@@ 204-207 (lines=4) @@
201
202
        // Check if we can match the query against any of the major types
203
        switch (true) {
204
            case stripos($query, 'SELECT') !== false:
205
                $keywords = array('SELECT', 'FROM', 'WHERE', 'HAVING', 'ORDER BY', 'LIMIT');
206
                $required = 2;
207
                break;
208
209
            case stripos($query, 'DELETE') !== false:
210
                $keywords = array('DELETE', 'FROM', 'WHERE', 'ORDER BY', 'LIMIT');
@@ 209-212 (lines=4) @@
206
                $required = 2;
207
                break;
208
209
            case stripos($query, 'DELETE') !== false:
210
                $keywords = array('DELETE', 'FROM', 'WHERE', 'ORDER BY', 'LIMIT');
211
                $required = 2;
212
                break;
213
214
            case stripos($query, 'UPDATE') !== false:
215
                $keywords = array('UPDATE', 'SET', 'WHERE', 'ORDER BY', 'LIMIT');
@@ 214-217 (lines=4) @@
211
                $required = 2;
212
                break;
213
214
            case stripos($query, 'UPDATE') !== false:
215
                $keywords = array('UPDATE', 'SET', 'WHERE', 'ORDER BY', 'LIMIT');
216
                $required = 2;
217
                break;
218
219
            case stripos($query, 'INSERT') !== false:
220
                $keywords = array('INSERT', 'INTO', 'VALUE', 'VALUES');
@@ 219-222 (lines=4) @@
216
                $required = 2;
217
                break;
218
219
            case stripos($query, 'INSERT') !== false:
220
                $keywords = array('INSERT', 'INTO', 'VALUE', 'VALUES');
221
                $required = 2;
222
                break;
223
224
            // If there's no match so far just truncate it to the maximum allowed by the interface
225
            default: