Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 71-79 (lines=9) @@
68
     * @param integer|string $value
69
     * @return Struct\Info[]
70
     */
71
    public function getAll($field, $value)
72
    {
73
        $response = $this->_get('get-db', $field, $value);
74
        $items = [];
75
        foreach ($response->xpath('//result') as $xmlResult) {
76
            $items[] = new Struct\Info($xmlResult);
77
        }
78
        return $items;
79
    }
80
81
    /**
82
     * @param string $field
@@ 86-94 (lines=9) @@
83
     * @param integer|string $value
84
     * @return Struct\UserInfo[]
85
     */
86
    public function getAllUsers($field, $value)
87
    {
88
        $response = $this->_get('get-db-users', $field, $value);
89
        $items = [];
90
        foreach ($response->xpath('//result') as $xmlResult) {
91
            $items[] = new Struct\UserInfo($xmlResult);
92
        }
93
        return $items;
94
    }
95
96
    /**
97
     * @param $command