Code Duplication    Length = 7-7 lines in 2 locations

lib/GitHub/Receiver/Enterprise/ManagementConsole.php 2 locations

@@ 78-84 (lines=7) @@
75
     *
76
     * @return array
77
     */
78
    public function upload(string $license, string $package, string $settings = ''): array
79
    {
80
        $this->getApi()->setApiUrl(sprintf('http://license:%s@%s', md5($license), $this->getHostname()));
81
82
        return $this->getApi()->request(sprintf('/setup/api/start -F package=@%s -F license=@%s -F settings=<%s',
83
            $package, $license, $settings), Request::METHOD_POST);
84
    }
85
86
    /**
87
     * Upgrade a license or software package
@@ 96-102 (lines=7) @@
93
     *
94
     * @return array
95
     */
96
    public function upgrade(string $license = '', string $package = ''): array
97
    {
98
        $this->getApi()->setApiUrl(sprintf('http://license:%s@%s', md5($license), $this->getHostname()));
99
100
        return $this->getApi()->request(sprintf('/setup/api/upgrade -F package=@%s -F license=@%s', $package, $license),
101
            Request::METHOD_POST);
102
    }
103
104
    /**
105
     * Check configuration status