Code Duplication    Length = 4-4 lines in 2 locations

src/Xtools/Repository.php 1 location

@@ 147-150 (lines=4) @@
144
    {
145
        // Use the table specified in the table mapping configuration, if present.
146
        $mapped = false;
147
        if ($this->container->hasParameter("app.table.$tableName")) {
148
            $mapped = true;
149
            $tableName = $this->container->getParameter("app.table.$tableName");
150
        }
151
152
        // For 'revision' and 'logging' tables (actually views) on Labs, use the indexed versions
153
        // (that have some rows hidden, e.g. for revdeleted users).

src/AppBundle/Helper/LabsHelper.php 1 location

@@ 82-85 (lines=4) @@
79
80
        // Use the table specified in the table mapping configuration, if present.
81
        $mapped = false;
82
        if ($this->container->hasParameter("app.table.$table")) {
83
            $mapped = true;
84
            $table = $this->container->getParameter("app.table.$table");
85
        }
86
87
        // Figure out database name.
88
        // Use class variable for the database name if not set via function parameter.