Code Duplication    Length = 3-3 lines in 2 locations

src/RancherApi.php 1 location

@@ 42-44 (lines=3) @@
39
        $this->client = $client;
40
        $this->wsClient = $wsClient;
41
42
        if (!isset($argv[1]) || !isset($argv[2]) || !isset($argv[3])) {
43
            throw new \UnexpectedValueException('Unknown environment');
44
        }
45
46
        $this->args['projectArg'] = $argv[1];
47
        $this->args['containerArg'] = $argv[2];

tests/RancherApiTest.php 1 location

@@ 42-44 (lines=3) @@
39
        $this->client = $client;
40
        $this->wsClient = $wsClient;
41
42
        if (!isset($argv[1]) || !isset($argv[2]) || !isset($argv[3])) {
43
            throw new \UnexpectedValueException('Unknown environment');
44
        }
45
46
        $this->args['projectArg'] = $argv[1];
47
        $this->args['containerArg'] = $argv[2];