Code Duplication    Length = 9-9 lines in 2 locations

Alpha/Model/ActiveRecordProviderMySQL.php 1 location

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

Alpha/Model/ActiveRecordProviderSQLite.php 1 location

@@ 1154-1162 (lines=9) @@
1151
1152
        $sqlQuery = 'INSERT INTO '.$this->BO->getTableName().'_history (';
1153
1154
        foreach ($properties as $propObj) {
1155
            $propName = $propObj->name;
1156
            if (!in_array($propName, $this->BO->getTransientAttributes())) {
1157
                $sqlQuery .= "$propName,";
1158
                $attributeNames[] = $propName;
1159
                $attributeValues[] = $this->BO->get($propName);
1160
                $savedFields[] = $propName;
1161
            }
1162
        }
1163
1164
        if ($this->BO->isTableOverloaded()) {
1165
            $sqlQuery .= 'classname,';