Code Duplication    Length = 8-8 lines in 2 locations

src/Api/Block.php 2 locations

@@ 104-111 (lines=8) @@
101
     *
102
     * @throws HttpException
103
     */
104
    public function labelSet($subid, $label)
105
    {
106
        $data = [
107
            'SUBID' => $subid,
108
            'label' => $label,
109
        ];
110
        $this->adapter->post(\sprintf('%s/block/label_set', $this->endpoint), http_build_query($data));
111
    }
112
113
    /**
114
     * Resize the block storage volume to a new size.
@@ 125-132 (lines=8) @@
122
     *
123
     * @throws HttpException
124
     */
125
    public function resize($subid, $size)
126
    {
127
        $data = [
128
            'SUBID'   => $subid,
129
            'size_gb' => $size,
130
        ];
131
        $this->adapter->post(\sprintf('%s/block/resize', $this->endpoint), http_build_query($data));
132
    }
133
}
134