Code Duplication    Length = 4-4 lines in 2 locations

src/AppBundle/Helper/LabsHelper.php 1 location

@@ 154-157 (lines=4) @@
151
152
        // Use the table specified in the table mapping configuration, if present.
153
        $mapped = false;
154
        if ($this->container->hasParameter("app.table.$table")) {
155
            $mapped = true;
156
            $table = $this->container->getParameter("app.table.$table");
157
        }
158
159
        // Figure out database name.
160
        // Use class variable for the database name if not set via function parameter.

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).