Code Duplication    Length = 12-12 lines in 2 locations

spec/Service/SiteServiceSpec.php 2 locations

@@ 26-37 (lines=12) @@
23
        $this->beConstructedWith($client, $factory);
24
    }
25
26
    function it_should_get_sites(Client $client, ModelFactory $factory)
27
    {
28
        $method = 'GET';
29
        $path   = 'sites';
30
31
        $client->sendRequest($method, $path)->willReturn([]);
32
        $client->sendRequest($method, $path)->shouldBeCalled();
33
34
        $factory->createMany(Site::class, [])->willReturn([]);
35
36
        $this->getSites();
37
    }
38
39
    function it_should_get_site(Client $client, ModelFactory $factory, Site $site)
40
    {
@@ 39-50 (lines=12) @@
36
        $this->getSites();
37
    }
38
39
    function it_should_get_site(Client $client, ModelFactory $factory, Site $site)
40
    {
41
        $method = 'GET';
42
        $path   = 'sites/1';
43
44
        $client->sendRequest($method, $path)->willReturn([]);
45
        $client->sendRequest($method, $path)->shouldBeCalled();
46
47
        $factory->create(Site::class, [])->willReturn($site);
48
49
        $this->getSite(1);
50
    }
51
52
    function it_should_post_site(
53
        Client $client,