Code Duplication    Length = 6-6 lines in 2 locations

sources/lib/ConvertedResultIterator.php 1 location

@@ 114-119 (lines=6) @@
111
            $type = 'text';
112
        }
113
114
        if (!isset($this->converters[$type])) {
115
            $this->converters[$type] = $this
116
            ->session
117
            ->getClientUsingPooler('converter', $type)
118
            ;
119
        }
120
121
        return $this
122
            ->converters[$type]

sources/lib/Converter/ArrayTypeConverter.php 1 location

@@ 68-73 (lines=6) @@
65
     */
66
    protected function getSubtypeConverter($type, Session $session)
67
    {
68
        if (!isset($this->converters[$type])) {
69
            $this->converters[$type] = $session
70
                ->getClientUsingPooler('converter', $type)
71
                ->getConverter()
72
                ;
73
        }
74
75
        return $this->converters[$type];
76
    }