Code Duplication    Length = 3-3 lines in 2 locations

src/Queries/Mysql/Select.php 2 locations

@@ 220-222 (lines=3) @@
217
        $join = strtoupper($join);
218
        $scheme = $this->table->getScheme();
219
220
        if (!isset($scheme['relations'][$table])) {
221
            throw new SimpleCrudException(sprintf("The tables '%s' and '%s' are not related", $this->table->getName(), $table));
222
        }
223
224
        if ($scheme['relations'][$table][0] !== Scheme::HAS_ONE) {
225
            throw new SimpleCrudException(sprintf("Invalid %s JOIN between the tables '%s' and '%s'", $join, $this->table->getName(), $table));
@@ 224-226 (lines=3) @@
221
            throw new SimpleCrudException(sprintf("The tables '%s' and '%s' are not related", $this->table->getName(), $table));
222
        }
223
224
        if ($scheme['relations'][$table][0] !== Scheme::HAS_ONE) {
225
            throw new SimpleCrudException(sprintf("Invalid %s JOIN between the tables '%s' and '%s'", $join, $this->table->getName(), $table));
226
        }
227
228
        if (!isset($this->join[$join])) {
229
            $this->join[$join] = [];