Code Duplication    Length = 6-8 lines in 4 locations

Alpha/Model/ActiveRecordProviderSQLite.php 4 locations

@@ 381-386 (lines=6) @@
378
379
        if ($stmt instanceof SQLite3Stmt) {
380
            if ($this->BO->getPropObject($attribute) instanceof Integer) {
381
                if (!$ignoreClassType && $this->BO->isTableOverloaded()) {
382
                    $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER);
383
                    $stmt->bindValue(':classname', get_class($this->BO), SQLITE3_TEXT);
384
                } else {
385
                    $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER);
386
                }
387
            } else {
388
                if (!$ignoreClassType && $this->BO->isTableOverloaded()) {
389
                    $stmt->bindValue(':attribute', $value, SQLITE3_TEXT);
@@ 387-394 (lines=8) @@
384
                } else {
385
                    $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER);
386
                }
387
            } else {
388
                if (!$ignoreClassType && $this->BO->isTableOverloaded()) {
389
                    $stmt->bindValue(':attribute', $value, SQLITE3_TEXT);
390
                    $stmt->bindValue(':classname', get_class($this->BO), SQLITE3_TEXT);
391
                } else {
392
                    $stmt->bindValue(':attribute', $value, SQLITE3_TEXT);
393
                }
394
            }
395
396
            $result = $stmt->execute();
397
@@ 558-563 (lines=6) @@
555
556
        if ($stmt instanceof SQLite3Stmt) {
557
            if ($this->BO->getPropObject($attribute) instanceof Integer) {
558
                if ($this->BO->isTableOverloaded()) {
559
                    $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER);
560
                    $stmt->bindValue(':classname', get_class($this->BO), SQLITE3_TEXT);
561
                } else {
562
                    $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER);
563
                }
564
            } else {
565
                if ($this->BO->isTableOverloaded()) {
566
                    $stmt->bindValue(':attribute', $value, SQLITE3_TEXT);
@@ 564-571 (lines=8) @@
561
                } else {
562
                    $stmt->bindValue(':attribute', $value, SQLITE3_INTEGER);
563
                }
564
            } else {
565
                if ($this->BO->isTableOverloaded()) {
566
                    $stmt->bindValue(':attribute', $value, SQLITE3_TEXT);
567
                    $stmt->bindValue(':classname', get_class($this->BO), SQLITE3_TEXT);
568
                } else {
569
                    $stmt->bindValue(':attribute', $value, SQLITE3_TEXT);
570
                }
571
            }
572
573
            $result = $stmt->execute();
574