Code Duplication    Length = 11-11 lines in 3 locations

tests/Doctrine/Tests/ORM/Functional/SQLFilterTest.php 3 locations

@@ 1153-1163 (lines=11) @@
1150
    }
1151
}
1152
1153
class CompanyPersonNameFilter extends SQLFilter
1154
{
1155
    public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias, $targetTable = '')
1156
    {
1157
        if ($targetEntity->name != CompanyPerson::class) {
1158
            return "";
1159
        }
1160
1161
        return $targetTableAlias.'.name LIKE ' . $this->getParameter('name');
1162
    }
1163
}
1164
1165
class CompletedContractFilter extends SQLFilter
1166
{
@@ 1165-1175 (lines=11) @@
1162
    }
1163
}
1164
1165
class CompletedContractFilter extends SQLFilter
1166
{
1167
    public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias, $targetTable = '')
1168
    {
1169
        if ($targetEntity->name != CompanyContract::class) {
1170
            return "";
1171
        }
1172
1173
        return $targetTableAlias.'.completed = ' . $this->getParameter('completed');
1174
    }
1175
}
1176
1177
class CompanyEventFilter extends SQLFilter
1178
{
@@ 1177-1187 (lines=11) @@
1174
    }
1175
}
1176
1177
class CompanyEventFilter extends SQLFilter
1178
{
1179
    public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias, $targetTable = '')
1180
    {
1181
        if ($targetEntity->name != CompanyEvent::class) {
1182
            return "";
1183
        }
1184
1185
        return $targetTableAlias.'.id = ' . $this->getParameter('id');
1186
    }
1187
}
1188