Code Duplication    Length = 8-8 lines in 2 locations

DataCollector/MongoDb/PrettyDataCollector.php 2 locations

@@ 74-81 (lines=8) @@
71
72
                if (isset($log['collection'])) {
73
                    // flush the previous and start a new query
74
                    if (!empty($query)) {
75
                        if ('.' == $query[0]) {
76
                            $query  = 'db'.$query;
77
                        }
78
79
                        $this->data['queries'][$i++] = $query.';';
80
                        ++$this->data['nb_queries'];
81
                    }
82
83
                    $query = 'db.'.$log['collection'];
84
                }
@@ 174-181 (lines=8) @@
171
            }
172
        }
173
174
        if (!empty($query)) {
175
            if ('.' == $query[0]) {
176
                $query  = 'db'.$query;
177
            }
178
179
            $this->data['queries'][$i++] = $query.';';
180
            ++$this->data['nb_queries'];
181
        }
182
    }
183
184
    /**