src/Starter.php
protected function processCsvFileOptions (Report $report)
    {
        $value = $report->getFile('file');
        $csvSwitch = "--data-file $value ";

        // NOTE: If column headers array is empty than we assume CSV first row
        $value = $report->getCsvfile('columnHeaderNames');
        if (empty($value)) {
            $csvSwitch .= '--csv-first-row ';
        }
        else {
            $csvSwitch .= "--csv-columns " . implode(',', $value) . ' ';
        }

        $value = $report->getCsvfile('charSet');
        $database = "--csv-charset $value ";

        $value = $report->getCsvfile('delimField');
        $database = "--csv-field-del $value ";

        $value = $report->getCsvfile('delimNewLine');
        $database = "--csv-record-del $value ";

        return $csvSwitch;
    }
protected function processCsvFileOptions (Report $report)
    {
        $value = $report->getFile('file');
        $csvSwitch = "--data-file $value ";

        // NOTE: If column headers array is empty than we assume CSV first row
        $value = $report->getCsvfile('columnHeaderNames');
        if (empty($value)) {
            $csvSwitch .= '--csv-first-row ';
        }
        else {
            $csvSwitch .= "--csv-columns " . implode(',', $value) . ' ';
        }

        $value = $report->getCsvfile('charSet');
        $database = "--csv-charset $value ";

        $value = $report->getCsvfile('delimField');
        $database = "--csv-field-del $value ";

        $value = $report->getCsvfile('delimNewLine');
        $database = "--csv-record-del $value ";

        return $csvSwitch;
    }
protected function processCsvFileOptions ( Report $ report ) { $ value = $ report -> getFile ( 'file' ) ; $ csvSwitch = "--data-file $value " ; // NOTE: If column headers array is empty than we assume CSV first row
 $ value = $ report -> getCsvfile ( 'columnHeaderNames' ) ; if ( empty ( $ value ) ) { $ csvSwitch .= '--csv-first-row ' ; } else { $ csvSwitch .= "--csv-columns " . implode ( ',' , $ value ) . ' ' ; } $ value = $ report -> getCsvfile ( 'charSet' ) ; $ database = "--csv-charset $value " ; $ value = $ report -> getCsvfile ( 'delimField' ) ; $ database = "--csv-field-del $value " ; $ value = $ report -> getCsvfile ( 'delimNewLine' ) ; $ database = "--csv-record-del $value " ; return $ csvSwitch ; }
Process CSV file details

@return $this
Process CSV file details