Code Duplication    Length = 3-3 lines in 2 locations

generator/templates/static/Graph.php 1 location

@@ 19-21 (lines=3) @@
16
17
    public function __call(string $method, array $arguments)
18
    {
19
        if (is_callable([Schema::class, $method])) {
20
            return $this->getOrCreate((new ReflectionClass(Schema::class))->getMethod($method)->getReturnType());
21
        }
22
23
        throw new BadMethodCallException(sprintf('The method "%" does not exist on class "%s".', $method, get_class($this)));
24
    }

src/Graph.php 1 location

@@ 18-20 (lines=3) @@
15
16
    public function __call(string $method, array $arguments)
17
    {
18
        if (is_callable([Schema::class, $method])) {
19
            return $this->getOrCreate((new ReflectionClass(Schema::class))->getMethod($method)->getReturnType());
20
        }
21
    }
22
23
    public function add(Type $schema)