Code Duplication    Length = 6-7 lines in 2 locations

src/Phiber/ORM/Persistence/TableMySql.php 2 locations

@@ 147-152 (lines=6) @@
144
        $arrFinal          = [];
145
        $stringAlterTable  = "";
146
        for ($i = 0; $i < count($atributosTabela); $i++) {
147
            for ($j = 0; $j < count($annotationsTabela[$atributosTabela[$i]]); $j++) {
148
                $arrAtual = explode("=", $annotationsTabela[$atributosTabela[$i]][$j]);
149
                for ($k = 0; $k < count($arrAtual) - 1; $k++) {
150
                    $arrFormatado[FuncoesString::substituiOcorrenciasDeUmaString($arrAtual[$k], "@_", "")] = $arrAtual[$k + 1];
151
                }
152
            }
153
154
            $arrFinal[$i] = $arrFormatado;
155
        }
@@ 312-318 (lines=7) @@
309
        for ($i = 0; $i < count($atributosTabela); $i++) {
310
311
            $stringSql .= $atributosTabela[$i] . " ";
312
            for ($j = 0; $j < count($annotationsTabela[$atributosTabela[$i]]); $j++) {
313
314
                $arrAtual = explode("=", $annotationsTabela[$atributosTabela[$i]][$j]);
315
                for ($k = 0; $k < count($arrAtual) - 1; $k++) {
316
                    $arrFormatado[FuncoesString::substituiOcorrenciasDeUmaString($arrAtual[$k], "@_", "")] = $arrAtual[$k + 1];
317
                }
318
            }
319
            if (array_key_exists('type', $arrFormatado)) {
320
                $stringSql .= " " . $arrFormatado['type'] . "";
321