Code Duplication    Length = 4-7 lines in 2 locations

src/ApaiIO/ResponseTransformer/ObjectToItem.php 2 locations

@@ 105-108 (lines=4) @@
102
    {
103
        if( $key4 )
104
        {
105
            if( isset( $this->item[$key1][$key2][$key3][$key4] ) )
106
            {
107
                $this->data[$data] = $this->item[$key1][$key2][$key3][$key4];
108
            }
109
        }
110
        elseif( $key3 )
111
        {
@@ 110-116 (lines=7) @@
107
                $this->data[$data] = $this->item[$key1][$key2][$key3][$key4];
108
            }
109
        }
110
        elseif( $key3 )
111
        {
112
            if( isset( $this->item[$key1][$key2][$key3] ) )
113
            {
114
                $this->data[$data] = $this->item[$key1][$key2][$key3];
115
            }
116
        }
117
        elseif( $key2 )
118
        {
119
            if( isset( $this->item[$key1][$key2] ) )