Passed
Pull Request — master (#4)
by
unknown
02:51
created
app/Services/CSV/Specifics/IngBelgium.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     protected static function processTransactionDetails(array $row): array
79 79
     {
80
-        if(isset($row[9])) {
80
+        if (isset($row[9])) {
81 81
             $transactionDetails = $row[9];
82 82
             $row[11] = self::opposingAccountName($transactionDetails);
83 83
             $row[12] = self::opposingAccountIban($transactionDetails);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     private static function convertStructuredDescriptionToProperFormat(string $description): string
131 131
     {
132 132
         preg_match('/^\*\*\*(\d{3}\/\d{4}\/\d{5})\*\*\*$/', $description, $matches);
133
-        if(isset($matches[1])) {
133
+        if (isset($matches[1])) {
134 134
             return '+++' . $matches[1] . '+++';
135 135
         }
136 136
         return $description;
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     private static function parseInformationFromTransactionDetails(string $transactionDetails, string $regex): string
146 146
     {
147
-        if(isset($transactionDetails)) {
147
+        if (isset($transactionDetails)) {
148 148
             preg_match($regex, $transactionDetails, $matches);
149 149
             if (isset($matches[1])) {
150 150
                 return trim($matches[1]);
Please login to merge, or discard this patch.
app/Services/CSV/Specifics/SpecificService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     {
79 79
         /** @var string $name */
80 80
         foreach ($specifics as $name => $enabled) {
81
-            if($enabled && self::exists($name)) {
81
+            if ($enabled && self::exists($name)) {
82 82
                 /** @var SpecificInterface $object */
83 83
                 $object = app(self::fullClass($name));
84 84
                 $row    = $object->run($row);
Please login to merge, or discard this patch.
app/Console/VerifyJSON.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Services/CSV/Converter/Date.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
app/Services/Import/Routine/APISubmitter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
app/Services/Import/Routine/PseudoTransactionProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
             throw new ImportException('Could not load the users currency preference.');
132 132
         }
133 133
         $code            = $response->getPreference()->data ?? 'EUR';
134
-        $currencyRequest = new GetCurrencyRequest($uri,$token);
134
+        $currencyRequest = new GetCurrencyRequest($uri, $token);
135 135
         $currencyRequest->setCode($code);
136 136
         try {
137 137
             /** @var GetCurrencyResponse $result */
Please login to merge, or discard this patch.
app/Console/HaveAccess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
      */
36 36
     private function haveAccess(): bool
37 37
     {
38
-        $uri   = (string)config('csv_importer.uri');
39
-        $token     = (string)config('csv_importer.access_token');
38
+        $uri = (string)config('csv_importer.uri');
39
+        $token = (string)config('csv_importer.access_token');
40 40
         $request = new SystemInformationRequest($uri, $token);
41 41
         try {
42 42
             $request->get();
Please login to merge, or discard this patch.
app/Http/Controllers/TokenController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
40 40
     public function doValidate(): JsonResponse
41 41
     {
42 42
         $response = ['result' => 'OK', 'message' => null];
43
-        $uri   = (string)config('csv_importer.uri');
44
-        $token   = (string)config('csv_importer.access_token');
43
+        $uri = (string)config('csv_importer.uri');
44
+        $token = (string)config('csv_importer.access_token');
45 45
         $request  = new SystemInformationRequest($uri, $token);
46 46
         try {
47 47
             $result = $request->get();
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     protected function redirectTo($request)
42 42
     {
43
-        if (! $request->expectsJson()) {
43
+        if (!$request->expectsJson()) {
44 44
             return route('login');
45 45
         }
46 46
     }
Please login to merge, or discard this patch.