Code Duplication    Length = 11-11 lines in 2 locations

src/ReadModel/Storage/Pdo/Parser/DefaultParser.php 1 location

@@ 134-144 (lines=11) @@
131
     *
132
     * @return string
133
     */
134
    protected function quote($field)
135
    {
136
        $parts = explode('.', $field);
137
        $quotes = array();
138
139
        foreach ($parts as $part) {
140
            $quotes[] = $this->quote . $part . $this->quote;
141
        }
142
143
        return implode('.', $quotes);
144
    }
145
}
146

src/ReadModel/Storage/Pdo/PdoFinder.php 1 location

@@ 487-497 (lines=11) @@
484
     *
485
     * @return string
486
     */
487
    protected function quote($field)
488
    {
489
        $parts = explode('.', $field);
490
        $quotes = array();
491
492
        foreach ($parts as $part) {
493
            $quotes[] = $this->quote . $part . $this->quote;
494
        }
495
496
        return implode('.', $quotes);
497
    }
498
}
499