Code Duplication    Length = 11-11 lines in 2 locations

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

src/Endpoint/EndpointBuilder.php 1 location

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