Code Duplication    Length = 13-13 lines in 2 locations

Result/Suggestion/OptionIterator.php 1 location

@@ 59-71 (lines=13) @@
56
     *
57
     * @return SimpleOption|null
58
     */
59
    public function offsetGet($offset)
60
    {
61
        if (!$this->offsetExists($offset)) {
62
            return null;
63
        }
64
65
        if (!isset($this->convertedData[$offset])) {
66
            $this->convertedData[$offset] = $this->convert($this->rawData[$offset]);
67
            $this->rawData[$offset] = null;
68
        }
69
70
        return $this->convertedData[$offset];
71
    }
72
73
    /**
74
     * {@inheritdoc}

Result/Suggestion/SuggestionIterator.php 1 location

@@ 54-66 (lines=13) @@
51
     *
52
     * @return SuggestionEntry[]|null
53
     */
54
    public function offsetGet($offset)
55
    {
56
        if (!$this->offsetExists($offset)) {
57
            return null;
58
        }
59
60
        if (!isset($this->convertedData[$offset])) {
61
            $this->convertedData[$offset] = $this->convert($this->rawData[$offset]);
62
            $this->rawData[$offset] = null;
63
        }
64
65
        return $this->convertedData[$offset];
66
    }
67
68
    /**
69
     * {@inheritdoc}