Code Duplication    Length = 14-14 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Content/Gateway/DoctrineDatabase.php 1 location

@@ 1333-1346 (lines=14) @@
1330
                    )
1331
                )
1332
            );
1333
        } else {
1334
            $query->where(
1335
                $query->expr->lOr(
1336
                    $query->expr->eq(
1337
                        $this->dbHandler->quoteColumn('from_contentobject_id'),
1338
                        $query->bindValue($contentId, null, \PDO::PARAM_INT)
1339
                    ),
1340
                    $query->expr->eq(
1341
                        $this->dbHandler->quoteColumn('to_contentobject_id'),
1342
                        $query->bindValue($contentId, null, \PDO::PARAM_INT)
1343
                    )
1344
                )
1345
            );
1346
        }
1347
1348
        $query->prepare()->execute();
1349
    }

eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php 1 location

@@ 1066-1079 (lines=14) @@
1063
            )
1064
        );
1065
1066
        if ($id !== null) {
1067
            $query->where(
1068
                $query->expr->lAnd(
1069
                    $query->expr->eq(
1070
                        $this->dbHandler->quoteColumn('is_alias'),
1071
                        $query->bindValue(0, null, \PDO::PARAM_INT)
1072
                    ),
1073
                    $query->expr->eq(
1074
                        $this->dbHandler->quoteColumn('id'),
1075
                        $query->bindValue($id, null, \PDO::PARAM_INT)
1076
                    )
1077
                )
1078
            );
1079
        }
1080
1081
        $query->prepare()->execute();
1082
    }