@@ -38,7 +38,7 @@  | 
                                                    ||
| 38 | 38 | protected function configure()  | 
                                                        
| 39 | 39 |      { | 
                                                        
| 40 | 40 |          $this->setName('report:merchant') | 
                                                        
| 41 | -             ->setDescription('Generate the merchant transactions report') | 
                                                        |
| 41 | +                ->setDescription('Generate the merchant transactions report') | 
                                                        |
| 42 | 42 | ->addArgument(  | 
                                                        
| 43 | 43 | 'merchant_id',  | 
                                                        
| 44 | 44 | InputArgument::OPTIONAL,  | 
                                                        
@@ -40,7 +40,7 @@  | 
                                                    ||
| 40 | 40 | */  | 
                                                        
| 41 | 41 | public function __construct($csvFilePath)  | 
                                                        
| 42 | 42 |      { | 
                                                        
| 43 | - $this->csvFilePath = $csvFilePath;  | 
                                                        |
| 43 | + $this->csvFilePath = $csvFilePath;  | 
                                                        |
| 44 | 44 | |
| 45 | 45 |          if (!ini_get("auto_detect_line_endings")) { | 
                                                        
| 46 | 46 |              ini_set("auto_detect_line_endings", '1'); | 
                                                        
@@ -70,7 +70,7 @@  | 
                                                    ||
| 70 | 70 | |
| 71 | 71 |          foreach ($data as $item) { | 
                                                        
| 72 | 72 |              $itemTime = $dateWorker->createFromFormat('d/m/Y', $item[1])->format('Y-m-d H:i:s'); | 
                                                        
| 73 | -            if (null === $formattedDate || strtotime($formattedDate) - strtotime($itemTime) >= 0 ) { | 
                                                        |
| 73 | +            if (null === $formattedDate || strtotime($formattedDate) - strtotime($itemTime) >= 0) { | 
                                                        |
| 74 | 74 | $symbol = mb_substr($item[2], 0, 1, 'UTF-8');  | 
                                                        
| 75 | 75 | $amount = mb_substr($item[2], 1);  | 
                                                        
| 76 | 76 | $temp = array_merge($item, [$symbol, $amount]);  | 
                                                        
@@ -29,7 +29,7 @@ discard block  | 
                                                    ||
| 29 | 29 | |
| 30 | 30 |          switch ($originalCurrency) { | 
                                                        
| 31 | 31 | case 'GBP':  | 
                                                        
| 32 | -                switch($targetCurrency) { | 
                                                        |
| 32 | +                switch ($targetCurrency) { | 
                                                        |
| 33 | 33 | case 'GBP':  | 
                                                        
| 34 | 34 | $rate = 1.00;  | 
                                                        
| 35 | 35 | break;  | 
                                                        
@@ -44,7 +44,7 @@ discard block  | 
                                                    ||
| 44 | 44 | }  | 
                                                        
| 45 | 45 | break;  | 
                                                        
| 46 | 46 | case 'USD':  | 
                                                        
| 47 | -                switch($targetCurrency) { | 
                                                        |
| 47 | +                switch ($targetCurrency) { | 
                                                        |
| 48 | 48 | case 'GBP':  | 
                                                        
| 49 | 49 | $rate = random_int(77, 82) / 100;  | 
                                                        
| 50 | 50 | break;  | 
                                                        
@@ -59,7 +59,7 @@ discard block  | 
                                                    ||
| 59 | 59 | }  | 
                                                        
| 60 | 60 | break;  | 
                                                        
| 61 | 61 | case 'EUR':  | 
                                                        
| 62 | -                switch($targetCurrency) { | 
                                                        |
| 62 | +                switch ($targetCurrency) { | 
                                                        |
| 63 | 63 | case 'GBP':  | 
                                                        
| 64 | 64 | $rate = random_int(85, 90) / 100;  | 
                                                        
| 65 | 65 | break;  | 
                                                        
@@ -54,7 +54,7 @@  | 
                                                    ||
| 54 | 54 | |
| 55 | 55 | return array_filter(  | 
                                                        
| 56 | 56 | $this->getTransactionRepository()->getTransactions(),  | 
                                                        
| 57 | -            function ($e) use ($merchantId) { | 
                                                        |
| 57 | +            function($e) use ($merchantId) { | 
                                                        |
| 58 | 58 | return (int)$e[0] === (int)$merchantId;  | 
                                                        
| 59 | 59 | }  | 
                                                        
| 60 | 60 | );  | 
                                                        
@@ -23,7 +23,7 @@  | 
                                                    ||
| 23 | 23 | */  | 
                                                        
| 24 | 24 | public static function array_intersect_recursive($array1, $array2)  | 
                                                        
| 25 | 25 |      { | 
                                                        
| 26 | -        foreach($array1 as $key => $value) { | 
                                                        |
| 26 | +        foreach ($array1 as $key => $value) { | 
                                                        |
| 27 | 27 |              if (!isset($array2[$key])) { | 
                                                        
| 28 | 28 | unset($array1[$key]);  | 
                                                        
| 29 | 29 |              } else { |