Code Duplication    Length = 6-6 lines in 2 locations

typo3/sysext/workspaces/Classes/Service/WorkspaceService.php 2 locations

@@ 361-366 (lines=6) @@
358
            );
359
        }
360
361
        if ((int)$stage !== -99) {
362
            $constraints[] = $queryBuilder->expr()->eq(
363
                'A.t3ver_stage',
364
                $queryBuilder->createNamedParameter($stage, \PDO::PARAM_INT)
365
            );
366
        }
367
368
        // ... and finally the join between the two tables.
369
        $constraints[] = $queryBuilder->expr()->eq('A.t3ver_oid', $queryBuilder->quoteIdentifier('B.uid'));
@@ 479-484 (lines=6) @@
476
            );
477
        }
478
479
        if ((int)$stage != -99) {
480
            $constraints[] = $queryBuilder->expr()->eq(
481
                'C.t3ver_stage',
482
                $queryBuilder->createNamedParameter($stage, \PDO::PARAM_INT)
483
            );
484
        }
485
486
        if ($pageList) {
487
            $pidField = $table === 'pages' ? 'B.uid' : 'A.pid';