@@ -42,7 +42,7 @@ |
||
42 | 42 | $json = file_get_contents($file); |
43 | 43 | try { |
44 | 44 | $configuration = json_decode($json, true, 512, JSON_THROW_ON_ERROR); |
45 | - } catch (Exception|JsonException $e) { |
|
45 | + } catch (Exception | JsonException $e) { |
|
46 | 46 | $message = sprintf('The importer can\'t import: could not decode the JSON in the config file: %s', $e->getMessage()); |
47 | 47 | Log::error($message); |
48 | 48 |
@@ -108,7 +108,7 @@ |
||
108 | 108 | Log::debug(sprintf('Date converter is going to work on "%s" using format "%s"', $string, $this->dateFormat)); |
109 | 109 | try { |
110 | 110 | $carbon = Carbon::createFromFormat($this->dateFormat, $string); |
111 | - } catch (InvalidArgumentException|Exception $e) { |
|
111 | + } catch (InvalidArgumentException | Exception $e) { |
|
112 | 112 | Log::error(sprintf('%s converting the date: %s', get_class($e), $e->getMessage())); |
113 | 113 | return Carbon::today()->format('Y-m-d'); |
114 | 114 | } |
@@ -142,7 +142,7 @@ |
||
142 | 142 | private function getOriginalValue(string $key, array $transaction): string |
143 | 143 | { |
144 | 144 | $parts = explode('.', $key); |
145 | - if(1 === count($parts)) { |
|
145 | + if (1 === count($parts)) { |
|
146 | 146 | return $transaction[$key] ?? '(not found)'; |
147 | 147 | } |
148 | 148 | if (3 !== count($parts)) { |