Code Duplication    Length = 8-8 lines in 2 locations

src/API.php 2 locations

@@ 174-181 (lines=8) @@
171
        return Utilities\ensureIsArray($response);
172
    }
173
174
    public function createCalendars($names, BaseFolderIdType $parentFolder = null, $options = array())
175
    {
176
        if ($parentFolder === null) {
177
            $parentFolder = $this->getDistinguishedFolderId('calendar');
178
        }
179
180
        return $this->createFolders($names, $parentFolder, $options, 'IPF.Appointment');
181
    }
182
    
183
    public function createContactsFolder($names, BaseFolderIdType $parentFolder = null, $options = array())
184
    {
@@ 183-190 (lines=8) @@
180
        return $this->createFolders($names, $parentFolder, $options, 'IPF.Appointment');
181
    }
182
    
183
    public function createContactsFolder($names, BaseFolderIdType $parentFolder = null, $options = array())
184
    {
185
        if ($parentFolder === null) {
186
            $parentFolder = $this->getDistinguishedFolderId('contacts');
187
        }
188
189
        return $this->createFolders($names, $parentFolder, $options, 'IPF.Contact');
190
    }
191
192
    public function createFolders($names, BaseFolderIdType $parentFolder, $options = array(), $folderClass = null)
193
    {