Passed
Push — bugfix/supesc-135-easycredit-m... ( 9f1a86...261e2a )
by
unknown
03:42
created
src/SprykerEco/Yves/Easycredit/Form/EasycreditSubForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     protected function getTemplatePath(): string
64 64
     {
65
-        return EasycreditConfig::PROVIDER_NAME . '/' . EasycreditConfig::PAYMENT_METHOD;
65
+        return EasycreditConfig::PROVIDER_NAME.'/'.EasycreditConfig::PAYMENT_METHOD;
66 66
     }
67 67
 
68 68
     /**
Please login to merge, or discard this patch.
src/SprykerEco/Yves/Easycredit/EasycreditDependencyProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     protected function addClientCalculation(Container $container): Container
43 43
     {
44
-        $container->set(static::CLIENT_CALCULATION, function (Container $container) {
44
+        $container->set(static::CLIENT_CALCULATION, function(Container $container) {
45 45
             return new EasycreditToCalculationClientBridge($container->getLocator()->calculation()->client());
46 46
         });
47 47
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     protected function addClientQuote(Container $container): Container
57 57
     {
58
-        $container->set(static::CLIENT_QUOTE, function (Container $container) {
58
+        $container->set(static::CLIENT_QUOTE, function(Container $container) {
59 59
             return new EasycreditToQuoteClientBridge($container->getLocator()->quote()->client());
60 60
         });
61 61
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function addPluginMoney(Container $container): Container
71 71
     {
72
-        $container->set(static::PLUGIN_MONEY, function () {
72
+        $container->set(static::PLUGIN_MONEY, function() {
73 73
             return new MoneyPlugin();
74 74
         });
75 75
 
Please login to merge, or discard this patch.
src/SprykerEco/Client/Easycredit/EasycreditDependencyProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     protected function addZedRequestClient(Container $container): Container
36 36
     {
37
-        $container->set(static::CLIENT_ZED_REQUEST, function (Container $container) {
37
+        $container->set(static::CLIENT_ZED_REQUEST, function(Container $container) {
38 38
             return new EasycreditToZedRequestClientBridge($container->getLocator()->zedRequest()->client());
39 39
         });
40 40
 
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Easycredit/Business/Parser/ResponseParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
             return $easycreditInterestAndAdjustTotalSumResponseTransfer;
179 179
         }
180 180
 
181
-        $anfallendeZinsen = (float)($payload[static::KEY_RATENPLAN][static::KEY_ZINSEN][static::KEY_ANFALLENDE_ZINSEN] ?? null);
181
+        $anfallendeZinsen = (float) ($payload[static::KEY_RATENPLAN][static::KEY_ZINSEN][static::KEY_ANFALLENDE_ZINSEN] ?? null);
182 182
         $tilgungsplanText = $payload[static::KEY_TILGUNGSPLAN_TEXT] ?? null;
183 183
 
184 184
         $easycreditInterestAndAdjustTotalSumResponseTransfer->setAnfallendeZinsen($anfallendeZinsen);
Please login to merge, or discard this patch.
src/SprykerEco/Zed/Easycredit/EasycreditDependencyProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     protected function addUtilEncodingService(Container $container): Container
56 56
     {
57
-        $container->set(static::SERVICE_UTIL_ENCODING, function (Container $container) {
57
+        $container->set(static::SERVICE_UTIL_ENCODING, function(Container $container) {
58 58
             return new EasycreditToUtilEncodingServiceBridge($container->getLocator()->utilEncoding()->service());
59 59
         });
60 60
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     protected function addPluginMoney(Container $container): Container
70 70
     {
71
-        $container->set(static::PLUGIN_MONEY, function () {
71
+        $container->set(static::PLUGIN_MONEY, function() {
72 72
             return new MoneyPlugin();
73 73
         });
74 74
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     protected function addGuzzleClient(Container $container): Container
84 84
     {
85
-        $container->set(static::GUZZLE_CLIENT, function () {
85
+        $container->set(static::GUZZLE_CLIENT, function() {
86 86
             return new Client();
87 87
         });
88 88
 
Please login to merge, or discard this patch.
tests/config/Shared/config_propel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,9 +81,9 @@
 block discarded – undo
81 81
     ],
82 82
     'paths' => [
83 83
         'phpDir' => APPLICATION_ROOT_DIR,
84
-        'sqlDir' => APPLICATION_ROOT_DIR . '/src/Orm/Propel/Sql/',
85
-        'migrationDir' => APPLICATION_ROOT_DIR . '/src/Orm/Propel/Migration_' . $config[PropelConstants::ZED_DB_ENGINE] . '/',
86
-        'schemaDir' => APPLICATION_ROOT_DIR . '/src/Orm/Propel/Schema/',
84
+        'sqlDir' => APPLICATION_ROOT_DIR.'/src/Orm/Propel/Sql/',
85
+        'migrationDir' => APPLICATION_ROOT_DIR.'/src/Orm/Propel/Migration_'.$config[PropelConstants::ZED_DB_ENGINE].'/',
86
+        'schemaDir' => APPLICATION_ROOT_DIR.'/src/Orm/Propel/Schema/',
87 87
     ],
88 88
 ];
89 89
 
Please login to merge, or discard this patch.
tests/config/Shared/stores.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     'DE' =>
5
-         [
5
+            [
6 6
             'locales' =>
7
-                 [
7
+                    [
8 8
                     'de' => 'de_DE',
9 9
                 ],
10 10
             'countries' =>
11
-                 [
11
+                    [
12 12
                     0 => 'DE',
13 13
                 ],
14 14
             'currencyIsoCode' => 'EUR',
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@  discard block
 block discarded – undo
5 5
 }
6 6
 
7 7
 if (!defined('APPLICATION_ROOT_DIR')) {
8
-    define('APPLICATION_ROOT_DIR', __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR);
8
+    define('APPLICATION_ROOT_DIR', __DIR__.DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR);
9 9
 }
10 10
 
11 11
 if (!defined('APPLICATION_VENDOR_DIR')) {
12
-    define('APPLICATION_VENDOR_DIR', APPLICATION_ROOT_DIR . 'vendor');
12
+    define('APPLICATION_VENDOR_DIR', APPLICATION_ROOT_DIR.'vendor');
13 13
 }
14 14
 
15 15
 if (!defined('APPLICATION_STORE')) {
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
 }
22 22
 
23 23
 if (!defined('APPLICATION_SOURCE_DIR')) {
24
-    define('APPLICATION_SOURCE_DIR', APPLICATION_ROOT_DIR . 'src' . DIRECTORY_SEPARATOR);
24
+    define('APPLICATION_SOURCE_DIR', APPLICATION_ROOT_DIR.'src'.DIRECTORY_SEPARATOR);
25 25
 }
26 26
 
27 27
 if (!defined('MODULE_UNDER_TEST_ROOT_DIR')) {
28 28
     define('MODULE_UNDER_TEST_ROOT_DIR', '');
29 29
 }
30 30
 
31
-spl_autoload_register(function ($className) {
31
+spl_autoload_register(function($className) {
32 32
     if (
33 33
         strrpos($className, 'Transfer') === false
34 34
         && strrpos($className, 'Builder') === false
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     $classNameParts = explode('\\', $className);
41
-    $fileName = implode(DIRECTORY_SEPARATOR, $classNameParts) . '.php';
42
-    $filePath = APPLICATION_ROOT_DIR . 'src' . DIRECTORY_SEPARATOR . $fileName;
41
+    $fileName = implode(DIRECTORY_SEPARATOR, $classNameParts).'.php';
42
+    $filePath = APPLICATION_ROOT_DIR.'src'.DIRECTORY_SEPARATOR.$fileName;
43 43
 
44 44
     if (!file_exists($filePath)) {
45 45
         return false;
@@ -50,17 +50,17 @@  discard block
 block discarded – undo
50 50
     return true;
51 51
 });
52 52
 
53
-$configSourceDirectory = APPLICATION_ROOT_DIR . '..' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'Shared' . DIRECTORY_SEPARATOR;
54
-$configTargetDirectory = APPLICATION_ROOT_DIR . 'config' . DIRECTORY_SEPARATOR . 'Shared' . DIRECTORY_SEPARATOR;
53
+$configSourceDirectory = APPLICATION_ROOT_DIR.'..'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'Shared'.DIRECTORY_SEPARATOR;
54
+$configTargetDirectory = APPLICATION_ROOT_DIR.'config'.DIRECTORY_SEPARATOR.'Shared'.DIRECTORY_SEPARATOR;
55 55
 
56 56
 if (!is_dir($configTargetDirectory)) {
57 57
     mkdir($configTargetDirectory, 0777, true);
58 58
 }
59 59
 
60
-copy($configSourceDirectory . 'config_propel.php', $configTargetDirectory . 'config_propel.php');
61
-copy($configSourceDirectory . 'config_default.php', $configTargetDirectory . 'config_default.php');
62
-copy($configSourceDirectory . 'default_store.php', $configTargetDirectory . 'default_store.php');
63
-copy($configSourceDirectory . 'stores.php', $configTargetDirectory . 'stores.php');
60
+copy($configSourceDirectory.'config_propel.php', $configTargetDirectory.'config_propel.php');
61
+copy($configSourceDirectory.'config_default.php', $configTargetDirectory.'config_default.php');
62
+copy($configSourceDirectory.'default_store.php', $configTargetDirectory.'default_store.php');
63
+copy($configSourceDirectory.'stores.php', $configTargetDirectory.'stores.php');
64 64
 
65 65
 $config = \Spryker\Shared\Config\Config::getInstance();
66 66
 
Please login to merge, or discard this patch.
tests/config/Shared/config_default.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
 $config[EasycreditConstants::SHOP_TOKEN] = '';
31 31
 $config[EasycreditConstants::API_URL] = 'https://ratenkauf.easycredit.de/ratenkauf-ws/rest/v2';
32 32
 $config[ApplicationConstants::BASE_URL_YVES] = 'http://yves.de.spryker.local/';
33
-$config[EasycreditConstants::SUCCESS_URL] = $config[ApplicationConstants::BASE_URL_YVES] . '/easycredit/payment/success';
34
-$config[EasycreditConstants::CANCELLED_URL] = $config[ApplicationConstants::BASE_URL_YVES] . '/checkout/payment';
35
-$config[EasycreditConstants::DENIED_URL] = $config[ApplicationConstants::BASE_URL_YVES] . '/checkout/payment';
33
+$config[EasycreditConstants::SUCCESS_URL] = $config[ApplicationConstants::BASE_URL_YVES].'/easycredit/payment/success';
34
+$config[EasycreditConstants::CANCELLED_URL] = $config[ApplicationConstants::BASE_URL_YVES].'/checkout/payment';
35
+$config[EasycreditConstants::DENIED_URL] = $config[ApplicationConstants::BASE_URL_YVES].'/checkout/payment';
Please login to merge, or discard this patch.