@@ -165,11 +165,11 @@ |
||
165 | 165 | throw new UnexpectedValueException(sprintf('No place for role "%s"', $value->getRole())); |
166 | 166 | } |
167 | 167 | if (null === $parsedValue) { |
168 | - Log::debug(sprintf('Skip column #%d with role "%s" (in field "%s")', $columnIndex+1, $role, $transactionField)); |
|
168 | + Log::debug(sprintf('Skip column #%d with role "%s" (in field "%s")', $columnIndex + 1, $role, $transactionField)); |
|
169 | 169 | continue; |
170 | 170 | } |
171 | 171 | Log::debug( |
172 | - sprintf('Stored column #%d with value "%s" and role "%s" in field "%s"', $columnIndex+1, $this->toString($parsedValue), $role, $transactionField) |
|
172 | + sprintf('Stored column #%d with value "%s" and role "%s" in field "%s"', $columnIndex + 1, $this->toString($parsedValue), $role, $transactionField) |
|
173 | 173 | ); |
174 | 174 | |
175 | 175 | // if append, append. |
@@ -83,7 +83,7 @@ |
||
83 | 83 | } |
84 | 84 | } |
85 | 85 | // loop data, clean up data: |
86 | - foreach($data as $index => $columnInfo) { |
|
86 | + foreach ($data as $index => $columnInfo) { |
|
87 | 87 | $data[$index]['values'] = array_unique($data[$index]['values']); |
88 | 88 | asort($data[$index]['values']); |
89 | 89 | } |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | { |
47 | 47 | // get list of asset accounts: |
48 | 48 | $accounts = []; |
49 | - $uri = (string) config('csv_importer.uri'); |
|
50 | - $token = (string) config('csv_importer.access_token'); |
|
49 | + $uri = (string)config('csv_importer.uri'); |
|
50 | + $token = (string)config('csv_importer.access_token'); |
|
51 | 51 | $request = new GetAccountsRequest($uri, $token); |
52 | 52 | $request->setType(GetAccountsRequest::ALL); |
53 | 53 | |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | // get list of asset accounts: |
79 | 79 | $accounts = []; |
80 | 80 | $liabilities = []; |
81 | - $uri = (string) config('csv_importer.uri'); |
|
82 | - $token = (string) config('csv_importer.access_token'); |
|
81 | + $uri = (string)config('csv_importer.uri'); |
|
82 | + $token = (string)config('csv_importer.access_token'); |
|
83 | 83 | $request = new GetAccountsRequest($uri, $token); |
84 | 84 | $request->setType(GetAccountsRequest::ASSET); |
85 | 85 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | $search = [' ', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']; |
59 | 59 | $replace = ['', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', |
60 | - '32', '33', '34', '35',]; |
|
60 | + '32', '33', '34', '35', ]; |
|
61 | 61 | |
62 | 62 | // take |
63 | 63 | $first = substr($value, 0, 4); |
@@ -49,11 +49,11 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public static function getColumns(string $content, Configuration $configuration): array |
51 | 51 | { |
52 | - $reader = Reader::createFromString($content); |
|
52 | + $reader = Reader::createFromString($content); |
|
53 | 53 | |
54 | 54 | // configure reader: |
55 | 55 | $delimiter = $configuration->getDelimiter(); |
56 | - switch($delimiter) { |
|
56 | + switch ($delimiter) { |
|
57 | 57 | default: |
58 | 58 | case 'comma': |
59 | 59 | $reader->setDelimiter(','); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public static function getExampleData(string $content, Configuration $configuration): array |
122 | 122 | { |
123 | - $reader = Reader::createFromString($content); |
|
123 | + $reader = Reader::createFromString($content); |
|
124 | 124 | |
125 | 125 | // configure reader: |
126 | 126 | $delimiter = $configuration->getDelimiter(); |