Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 1346-1359 (lines=14) @@
1343
                    )
1344
                )
1345
            );
1346
        } else {
1347
            $query->where(
1348
                $query->expr->lOr(
1349
                    $query->expr->eq(
1350
                        $this->dbHandler->quoteColumn('from_contentobject_id'),
1351
                        $query->bindValue($contentId, null, \PDO::PARAM_INT)
1352
                    ),
1353
                    $query->expr->eq(
1354
                        $this->dbHandler->quoteColumn('to_contentobject_id'),
1355
                        $query->bindValue($contentId, null, \PDO::PARAM_INT)
1356
                    )
1357
                )
1358
            );
1359
        }
1360
1361
        $query->prepare()->execute();
1362
    }

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
    }