Code Duplication    Length = 4-4 lines in 2 locations

src/Xtools/Repository.php 1 location

@@ 138-141 (lines=4) @@
135
    {
136
        // Use the table specified in the table mapping configuration, if present.
137
        $mapped = false;
138
        if ($this->container->hasParameter("app.table.$tableName")) {
139
            $mapped = true;
140
            $tableName = $this->container->getParameter("app.table.$tableName");
141
        }
142
143
        // For 'revision' and 'logging' tables (actually views) on Labs, use the indexed versions
144
        // (that have some rows hidden, e.g. for revdeleted users).

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.