Passed
Push — master ( 08a82c...2fb4d4 )
by
unknown
02:45
created
Models/Adapters/AbstractQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     public function __construct($clientId, $clientPassword, $baseUrl, MangoPayApi $mangoPayApi, Logger $logger)
31 31
     {
32 32
         $this->logger = $logger;
33
-        $path = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR. '..' . DIRECTORY_SEPARATOR. '..' . DIRECTORY_SEPARATOR. '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR. 'var/logs/mangopay.log';
33
+        $path = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'var/logs/mangopay.log';
34 34
         $this->logger->pushHandler(new StreamHandler($path, Logger::DEBUG));
35 35
 
36 36
         $this->mangoPayApi = $mangoPayApi;
Please login to merge, or discard this patch.
Models/Adapters/PayInQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,10 +75,10 @@
 block discarded – undo
75 75
                     return $this->payInTranslator->translateMangoPayBankwireDirectPayInToDto($createdPayIn);
76 76
                 }
77 77
                 $this->logger->addCritical(
78
-                    "Pay-In has been created with status: ".$createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
78
+                    "Pay-In has been created with status: " . $createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
79 79
                 );
80 80
                 throw new PartFireException(
81
-                    "Pay-In has been created with status: ".$createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
81
+                    "Pay-In has been created with status: " . $createdPayIn->Status . ' (result code: ' . $createdPayIn->ResultCode . ')'
82 82
                 );
83 83
             }
84 84
             $this->logger->addCritical("Failed to create PayIn");
Please login to merge, or discard this patch.
Models/Adapters/PayOutQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@
 block discarded – undo
55 55
                     return $this->payOutTranslator->translateMangoToPayOutDto($createdPayout);
56 56
                 }
57 57
                 $this->logger->addCritical(
58
-                    "Pay-Out has been created with status: ".$createdPayout->Status . ' (result code: ' . $createdPayout->ResultCode . ' '. $createdPayout->ResultMessage.')'
58
+                    "Pay-Out has been created with status: " . $createdPayout->Status . ' (result code: ' . $createdPayout->ResultCode . ' ' . $createdPayout->ResultMessage . ')'
59 59
                 );
60 60
                 throw new PartFireException(
61
-                    "Pay-Out has been created with status: ".$createdPayout->Status . ' (result code: ' . $createdPayout->ResultCode . ' '. $createdPayout->ResultMessage.')'
61
+                    "Pay-Out has been created with status: " . $createdPayout->Status . ' (result code: ' . $createdPayout->ResultCode . ' ' . $createdPayout->ResultMessage . ')'
62 62
                 );
63 63
             }
64 64
             $this->logger->addCritical("Failed to create PayOut");
Please login to merge, or discard this patch.
Models/Adapters/KycDocumentPageQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         KycDocumentPageTranslator $kycDocumentPageTranslator
47 47
     ) {
48 48
         $this->kycDocumentPageTranslator = $kycDocumentPageTranslator;
49
-        parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger);
49
+        parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger);
50 50
     }
51 51
 
52 52
     /**
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
         try {
59 59
             $kycDocumentPage = $this->mangoPayApi->Users->CreateKycPageFromFile($kycDocumentPage->getOwnerId(), $kycDocumentPage->getKycDocumentId(), $kycDocumentPage->getFilePath());
60 60
 
61
-        } catch(ResponseException $e) {
61
+        } catch (ResponseException $e) {
62 62
             $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]);
63 63
             throw new PartFireException($e->getMessage(), $e->getCode(), $e);
64
-        } catch(Exception $e) {
64
+        } catch (Exception $e) {
65 65
             $this->logger->addError($e->getMessage());
66 66
             throw new PartFireException($e->getMessage(), $e->getCode(), $e);
67 67
         }
Please login to merge, or discard this patch.
Models/Adapters/WalletQuery.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         Logger $logger,
46 46
         WalletTranslator $walletTranslator
47 47
     ) {
48
-        parent::__construct($clientId, $clientPassword, $baseUrl,$mangoPayApi, $logger);
48
+        parent::__construct($clientId, $clientPassword, $baseUrl, $mangoPayApi, $logger);
49 49
         $this->walletTranslator = $walletTranslator;
50 50
     }
51 51
 
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
         $mangoWallet = $this->walletTranslator->convertDTOToMangoPayWallet($walletDto);
55 55
         try {
56 56
             $mangoWallet = $this->mangoPayApi->Wallets->Create($mangoWallet);
57
-        } catch(ResponseException $e) {
57
+        } catch (ResponseException $e) {
58 58
             $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]);
59 59
             throw new PartFireException($e->getMessage(), $e->getCode(), $e);
60
-        } catch(Exception $e) {
60
+        } catch (Exception $e) {
61 61
             $this->logger->addError($e->getMessage());
62 62
             throw new PartFireException($e->getMessage(), $e->getCode(), $e);
63 63
         }
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
     {
69 69
         try {
70 70
             $mangoWallet = $this->mangoPayApi->Wallets->Get($walletId);
71
-        } catch(ResponseException $e) {
71
+        } catch (ResponseException $e) {
72 72
             $this->logger->addCritical($e->getMessage(), ['code' => $e->getCode(), 'details' => $e->GetErrorDetails()]);
73 73
             throw new PartFireException($e->getMessage(), $e->getCode(), $e);
74
-        } catch(Exception $e) {
74
+        } catch (Exception $e) {
75 75
             $this->logger->addError($e->getMessage());
76 76
             throw new PartFireException($e->getMessage(), $e->getCode(), $e);
77 77
         }
Please login to merge, or discard this patch.