Code Duplication    Length = 3-3 lines in 2 locations

src/Queries/Mysql/Select.php 2 locations

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