public function deleteFile($formData) { $result = false; if (is_array($formData) && isset($formData['name'])) { $git = new Git(); $result = $git->rmFile($this->getPath() . $formData['name']); } else { throw new Exception('New file form data in incorrect format'); } return $result; }