mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 07:08:19 +00:00
Some refactoring, courtesy of PHPStorm.
This commit is contained in:
@@ -397,12 +397,13 @@ class CsvController extends Controller
|
|||||||
|
|
||||||
// A tab character cannot be used itself as option value in HTML
|
// A tab character cannot be used itself as option value in HTML
|
||||||
// See http://stackoverflow.com/questions/6064135/valid-characters-in-option-value
|
// See http://stackoverflow.com/questions/6064135/valid-characters-in-option-value
|
||||||
if( $settings[ 'delimiter' ] == 'tab' )
|
if ($settings['delimiter'] == 'tab') {
|
||||||
$settings[ 'delimiter' ] = "\t";
|
$settings['delimiter'] = "\t";
|
||||||
|
}
|
||||||
|
|
||||||
$settings['map'] = [];
|
$settings['map'] = [];
|
||||||
$settings['mapped'] = [];
|
$settings['mapped'] = [];
|
||||||
$settings['roles'] = [];
|
$settings['roles'] = [];
|
||||||
|
|
||||||
if ($request->hasFile('csv_config')) { // Process config file if present.
|
if ($request->hasFile('csv_config')) { // Process config file if present.
|
||||||
$data = file_get_contents($request->file('csv_config')->getRealPath());
|
$data = file_get_contents($request->file('csv_config')->getRealPath());
|
||||||
|
|||||||
Reference in New Issue
Block a user