Code Duplication    Length = 11-11 lines in 2 locations

src/Endpoint/EndpointBuilder.php 1 location

@@ 67-77 (lines=11) @@
64
    /**
65
     * @inheritDoc
66
     */
67
    public function build()
68
    {
69
        $builders = $this->getBuildersList();
70
71
        $config = new EndpointConfiguration();
72
        foreach ($builders as $builder) {
73
            $builder($config);
74
        }
75
76
        return Endpoint::fromConfig($config);
77
    }
78
}
79

tests/unit/Endpoints/EndpointBuilderTest.php 1 location

@@ 75-85 (lines=11) @@
72
    /**
73
     * @inheritDoc
74
     */
75
    public function build()
76
    {
77
        $builders = $this->getBuildersList();
78
79
        $config = new EndpointConfiguration();
80
        foreach ($builders as $builder) {
81
            $builder($config);
82
        }
83
84
        return FakeEndpoint::fromConfig($config);
85
    }
86
};
87