Code Duplication    Length = 9-9 lines in 2 locations

src/PleskX/Api/Operator/Database.php 2 locations

@@ 85-93 (lines=9) @@
82
     * @param integer|string $value
83
     * @return Struct\Info[]
84
     */
85
    public function getAll($field, $value)
86
    {
87
        $response = $this->_get('get-db', $field, $value);
88
        $items = [];
89
        foreach ($response->xpath('//result') as $xmlResult) {
90
            $items[] = new Struct\Info($xmlResult);
91
        }
92
        return $items;
93
    }
94
95
    /**
96
     * @param string $field
@@ 100-108 (lines=9) @@
97
     * @param integer|string $value
98
     * @return Struct\UserInfo[]
99
     */
100
    public function getAllUsers($field, $value)
101
    {
102
        $response = $this->_get('get-db-users', $field, $value);
103
        $items = [];
104
        foreach ($response->xpath('//result') as $xmlResult) {
105
            $items[] = new Struct\UserInfo($xmlResult);
106
        }
107
        return $items;
108
    }
109
110
    /**
111
     * @param $command