Fix inaccuracies and mistakes in comments
[civicrm-core.git] / CRM / Financial / BAO / ExportFormat.php
index 09c389c3d672ed7c25d8ad98cba126aa839ea0d2..9559a5d4c60d076437386252a8c371e7d3ae867b 100644 (file)
@@ -214,7 +214,7 @@ abstract class CRM_Financial_BAO_ExportFormat {
 
   /**
    * @param array $files
-   * @param null $destination
+   * @param string $destination
    * @param bool $overwrite
    *
    * @return bool
@@ -224,7 +224,7 @@ abstract class CRM_Financial_BAO_ExportFormat {
     if (file_exists($destination) && !$overwrite) {
       return FALSE;
     }
-    $valid_files = [];
+
     if (is_array($files)) {
       foreach ($files as $file) {
         // make sure the file exists