Code Duplication    Length = 7-7 lines in 2 locations

Service/JWTRequest.php 2 locations

@@ 63-69 (lines=7) @@
60
     *
61
     * @return string
62
     */
63
    public function put(string $restUrl, array $json): string
64
    {
65
        $options['headers']['Content-Type'] = 'application/json';
66
        $options['json'] = $json;
67
68
        return $this->client->put($this->buildURL($restUrl), $options)->getBody()->getContents();
69
    }
70
71
    /**
72
     * @param string  $restUrl
@@ 77-83 (lines=7) @@
74
     *
75
     * @return string
76
     */
77
    public function post(string $restUrl, array $json): string
78
    {
79
        $options['headers']['Content-Type'] = 'application/json';
80
        $options['json'] = $json;
81
82
        return $this->client->post($this->buildURL($restUrl), $options)->getBody()->getContents();
83
    }
84
85
    /**
86
     * @param string $restUrl