Code Duplication    Length = 9-9 lines in 2 locations

Alpha/Model/ActiveRecordProviderMySQL.php 1 location

@@ 1117-1125 (lines=9) @@
1114
1115
        $sqlQuery = 'INSERT INTO '.$this->BO->getTableName().'_history (';
1116
1117
        foreach ($properties as $propObj) {
1118
            $propName = $propObj->name;
1119
            if (!in_array($propName, $this->BO->getTransientAttributes())) {
1120
                $sqlQuery .= "$propName,";
1121
                $attributeNames[] = $propName;
1122
                $attributeValues[] = $this->BO->get($propName);
1123
                ++$savedFieldsCount;
1124
            }
1125
        }
1126
1127
        if ($this->BO->isTableOverloaded()) {
1128
            $sqlQuery .= 'classname,';

Alpha/Model/ActiveRecordProviderSQLite.php 1 location

@@ 1122-1130 (lines=9) @@
1119
1120
        $sqlQuery = 'INSERT INTO '.$this->BO->getTableName().'_history (';
1121
1122
        foreach ($properties as $propObj) {
1123
            $propName = $propObj->name;
1124
            if (!in_array($propName, $this->BO->getTransientAttributes())) {
1125
                $sqlQuery .= "$propName,";
1126
                $attributeNames[] = $propName;
1127
                $attributeValues[] = $this->BO->get($propName);
1128
                $savedFields[] = $propName;
1129
            }
1130
        }
1131
1132
        if ($this->BO->isTableOverloaded()) {
1133
            $sqlQuery .= 'classname,';