Code Duplication    Length = 11-11 lines in 2 locations

src/RancherApi.php 1 location

@@ 74-84 (lines=11) @@
71
        }
72
    }
73
74
    private function getService($url)
75
    {
76
        $services = $this->client->get($url, true)->data;
77
78
        foreach ($services as $service)
79
        {
80
            if ($service->name == $this->args['containerArg']) {
81
                return $service->links->self;
82
            }
83
        }
84
    }
85
86
    private function getContainers($url)
87
    {

tests/RancherApiTest.php 1 location

@@ 71-81 (lines=11) @@
68
        }
69
    }
70
71
    private function getService($url)
72
    {
73
        $services = $this->client->get($url, true)->data;
74
75
        foreach ($services as $service)
76
        {
77
            if ($service->name == $this->args['containerArg']) {
78
                return $service->links->self;
79
            }
80
        }
81
    }
82
83
    private function getContainer($url)
84
    {