Fix some spelling errors.

This commit is contained in:
James Cole
2017-12-19 18:53:50 +01:00
parent 9ede6755c5
commit e21e339cb0
11 changed files with 45 additions and 40 deletions

View File

@@ -35,7 +35,7 @@ use Log;
class Initial implements ConfigurationInterface
{
/**
* @var
* @var ImportJob
*/
private $job;
@@ -53,6 +53,11 @@ class Initial implements ConfigurationInterface
'tab' => trans('form.csv_tab'),
];
// update job with default date format:
$config = $this->job->configuration;
$config['date-format'] = 'Ymd';
$this->job->configuration = $config;
$this->job->save();
$specifics = [];
// collect specifics.
@@ -68,6 +73,7 @@ class Initial implements ConfigurationInterface
'specifix' => [],
'delimiters' => $delimiters,
'specifics' => $specifics,
];
return $data;

View File

@@ -55,7 +55,6 @@ class Roles implements ConfigurationInterface
{
$config = $this->job->configuration;
$content = $this->job->uploadFileContents();
$config['has-headers'] = true;
$headers = [];
$offset = 0;
// create CSV reader.
@@ -272,7 +271,7 @@ class Roles implements ConfigurationInterface
if ('_ignore' !== $role) {
++$assigned;
}
if (in_array($role, ['amount', 'amount_credit', 'amount_debet'])) {
if (in_array($role, ['amount', 'amount_credit', 'amount_debit'])) {
$hasAmount = true;
}
}