Removes is_array check in favour of php strict typing
protected $_haveColumnHeader;
/**
- * @param string $fileName
+ * @param array $fileName
* @param string $separator
* @param $mapper
* @param bool $skipColumnHeader
* @throws Exception
*/
public function run(
- $fileName,
+ array $fileName,
$separator = ',',
&$mapper,
$skipColumnHeader = FALSE,
$statusID = NULL,
$totalRowCount = NULL
) {
- if (!is_array($fileName)) {
- throw new CRM_Core_Exception('Unable to determine import file');
- }
+
$fileName = $fileName['name'];
$this->init();