Code Duplication    Length = 5-5 lines in 2 locations

src/voku/db/Result.php 2 locations

@@ 156-160 (lines=5) @@
153
    }
154
155
    if (is_array($data) === true) {
156
      foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) {
157
        if (isset($data[$type_name])) {
158
          settype($data[$type_name], $type);
159
        }
160
      }
161
    } elseif (is_object($data)) {
162
      foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) {
163
        if (isset($data->{$type_name})) {
@@ 162-166 (lines=5) @@
159
        }
160
      }
161
    } elseif (is_object($data)) {
162
      foreach ($TYPES_CACHE[$result_hash] as $type_name => $type) {
163
        if (isset($data->{$type_name})) {
164
          settype($data->{$type_name}, $type);
165
        }
166
      }
167
    }
168
169
    return $data;