Code Duplication    Length = 4-4 lines in 2 locations

src/AppBundle/Helper/LabsHelper.php 1 location

@@ 183-186 (lines=4) @@
180
    {
181
        // Use the table specified in the table mapping configuration, if present.
182
        $mapped = false;
183
        if ($this->container->hasParameter("app.table.$table")) {
184
            $mapped = true;
185
            $table = $this->container->getParameter("app.table.$table");
186
        }
187
188
        // For 'revision' and 'logging' tables (actually views) on Labs, use the indexed versions
189
        // (that have some rows hidden, e.g. for revdeleted users).

src/Xtools/Repository.php 1 location

@@ 124-127 (lines=4) @@
121
    {
122
        // Use the table specified in the table mapping configuration, if present.
123
        $mapped = false;
124
        if ($this->container->hasParameter("app.table.$tableName")) {
125
            $mapped = true;
126
            $tableName = $this->container->getParameter("app.table.$tableName");
127
        }
128
129
        // For 'revision' and 'logging' tables (actually views) on Labs, use the indexed versions
130
        // (that have some rows hidden, e.g. for revdeleted users).