Code Duplication    Length = 9-9 lines in 6 locations

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

@@ 198-206 (lines=9) @@
195
             * @todo NOT NULL AQUI
196
            */
197
198
            if (array_key_exists('notNull', $arrFormatado)) {
199
                if ($arrFormatado['notNull'] === "true") {
200
                    $stringSql .= " NOT NULL ";
201
                } else {
202
                    $stringSql .= "";
203
                };
204
            } else {
205
                $stringSql .= "";
206
            }
207
208
            if (array_key_exists('primaryKey', $arrFormatado)) {
209
                if ($arrFormatado['primaryKey'] === "true") {
@@ 208-216 (lines=9) @@
205
                $stringSql .= "";
206
            }
207
208
            if (array_key_exists('primaryKey', $arrFormatado)) {
209
                if ($arrFormatado['primaryKey'] === "true") {
210
                    $stringSql .= " PRIMARY KEY ";
211
                } else {
212
                    $stringSql .= "";
213
                };
214
            } else {
215
                $stringSql .= "";
216
            }
217
218
            if (array_key_exists('autoIncrement', $arrFormatado)) {
219
                if ($arrFormatado['autoIncrement'] === "true") {
@@ 218-226 (lines=9) @@
215
                $stringSql .= "";
216
            }
217
218
            if (array_key_exists('autoIncrement', $arrFormatado)) {
219
                if ($arrFormatado['autoIncrement'] === "true") {
220
                    $stringSql .= " AUTO_INCREMENT ";
221
                } else {
222
                    $stringSql .= "";
223
                };
224
            } else {
225
                $stringSql .= "";
226
            }
227
228
            $fileContent = JsonReader::read(BASE_DIR."/phiber_config.json")->phiber->code_sync == 1 ? true : false;
229
            if ($fileContent) {
@@ 339-347 (lines=9) @@
336
             * @todo NOT NULL AQUI
337
             */
338
339
            if (array_key_exists('notNull', $arrFormatado)) {
340
                if ($arrFormatado['notNull'] === "true") {
341
                    $stringSql .= " NOT NULL ";
342
                } else {
343
                    $stringSql .= "";
344
                };
345
            } else {
346
                $stringSql .= "";
347
            }
348
349
            if (array_key_exists('primaryKey', $arrFormatado)) {
350
                if ($arrFormatado['primaryKey'] === "true") {
@@ 349-357 (lines=9) @@
346
                $stringSql .= "";
347
            }
348
349
            if (array_key_exists('primaryKey', $arrFormatado)) {
350
                if ($arrFormatado['primaryKey'] === "true") {
351
                    $stringSql .= " PRIMARY KEY ";
352
                } else {
353
                    $stringSql .= "";
354
                };
355
            } else {
356
                $stringSql .= "";
357
            }
358
359
            if (array_key_exists('autoIncrement', $arrFormatado)) {
360
                if ($arrFormatado['autoIncrement'] === "true") {
@@ 359-367 (lines=9) @@
356
                $stringSql .= "";
357
            }
358
359
            if (array_key_exists('autoIncrement', $arrFormatado)) {
360
                if ($arrFormatado['autoIncrement'] === "true") {
361
                    $stringSql .= " AUTO_INCREMENT ";
362
                } else {
363
                    $stringSql .= "";
364
                };
365
            } else {
366
                $stringSql .= "";
367
            }
368
369
            if ($i != count($atributosTabela) - 1) {
370