Code Duplication    Length = 8-8 lines in 2 locations

src/Api/FirewallRule.php 1 location

@@ 74-81 (lines=8) @@
71
     *
72
     * @throws HttpException
73
     */
74
    public function delete($groupId, $ruleNumber)
75
    {
76
        $data = [
77
            'FIREWALLGROUPID' => $groupId,
78
            'rulenumber'      => $ruleNumber,
79
        ];
80
        $this->adapter->post(\sprintf('%s/firewall/rule_delete', $this->endpoint), $data);
81
    }
82
}
83

src/Api/FirewallGroup.php 1 location

@@ 92-99 (lines=8) @@
89
     *
90
     * @throws HttpException
91
     */
92
    public function setDescription($groupId, $description)
93
    {
94
        $data = [
95
            'FIREWALLGROUPID' => $groupId,
96
            'description' => $description,
97
        ];
98
        $this->adapter->post(\sprintf('%s/firewall/group_set_description', $this->endpoint), $data);
99
    }
100
101
    /**
102
     * Delete a firewall group.