Code Duplication    Length = 5-5 lines in 2 locations

code/DebugBarDatabaseNewProxy.php 1 location

@@ 227-231 (lines=5) @@
224
        $matches = null;
225
        preg_match_all('/SELECT(.+?) FROM/is', $sql, $matches);
226
        $select  = empty($matches[1]) ? null : trim($matches[1][0]);
227
        if (strlen($select) > 100) {
228
            $shortsql = str_replace($select, '"ClickToShowFields"', $sql);
229
        } else {
230
            $select = null;
231
        }
232
233
        $this->queries[] = array(
234
            'raw_query' => $rawsql,

code/DebugBarDatabaseProxy.php 1 location

@@ 199-203 (lines=5) @@
196
        $matches = null;
197
        preg_match_all('/SELECT(.+?) FROM/is', $sql, $matches);
198
        $select  = empty($matches[1]) ? null : trim($matches[1][0]);
199
        if (strlen($select) > 100) {
200
            $shortsql = str_replace($select, '"ClickToShowFields"', $sql);
201
        } else {
202
            $select = null;
203
        }
204
205
        $this->queries[] = array(
206
            'raw_query' => $rawsql,