@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return \Codenom\Midtrans\Parse\JSONParse::decodeToObject( |
45 | 45 | APIMidtrans::call( |
46 | 46 | \Codenom\Midtrans\Constant::CURL_TYPE_GET, |
47 | - $this->veritrans->getBaseUrl() . '/' . $id . '/status', |
|
47 | + $this->veritrans->getBaseUrl().'/'.$id.'/status', |
|
48 | 48 | $this->config->serverKey |
49 | 49 | ) |
50 | 50 | ); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return \Codenom\Midtrans\Parse\JSONParse::decodeToObject( |
67 | 67 | APIMidtrans::call( |
68 | 68 | \Codenom\Midtrans\Constant::CURL_TYPE_POST, |
69 | - $this->veritrans->getBaseUrl() . '/charge', |
|
69 | + $this->veritrans->getBaseUrl().'/charge', |
|
70 | 70 | $this->config->serverKey, |
71 | 71 | $payload |
72 | 72 | ) |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | return \Codenom\Midtrans\Parse\JSONParse::decodeToObject( |
90 | 90 | APIMidtrans::call( |
91 | 91 | \Codenom\Midtrans\Constant::CURL_TYPE_POST, |
92 | - $this->veritrans->getBaseUrl() . '/charge', |
|
92 | + $this->veritrans->getBaseUrl().'/charge', |
|
93 | 93 | $this->config->serverKey, |
94 | 94 | $payload |
95 | 95 | ) |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | return \Codenom\Midtrans\Parse\JSONParse::decodeToObject( |
113 | 113 | APIMidtrans::call( |
114 | 114 | \Codenom\Midtrans\Constant::CURL_TYPE_POST, |
115 | - $this->veritrans->getBaseUrl() . '/' . $id . '/approve', |
|
115 | + $this->veritrans->getBaseUrl().'/'.$id.'/approve', |
|
116 | 116 | $this->config->serverKey |
117 | 117 | ) |
118 | 118 | ); |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | return \Codenom\Midtrans\Parse\JSONParse::decodeToObject( |
135 | 135 | APIMidtrans::call( |
136 | 136 | \Codenom\Midtrans\Constant::CURL_TYPE_POST, |
137 | - $this->veritrans->getBaseUrl() . '/' . $id . '/cancel', |
|
137 | + $this->veritrans->getBaseUrl().'/'.$id.'/cancel', |
|
138 | 138 | $this->config->serverKey |
139 | 139 | ) |
140 | 140 | ); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | return \Codenom\Midtrans\Parse\JSONParse::decodeToObject( |
157 | 157 | APIMidtrans::call( |
158 | 158 | \Codenom\Midtrans\Constant::CURL_TYPE_POST, |
159 | - $this->veritrans->getBaseUrl() . '/' . $id . '/expire', |
|
159 | + $this->veritrans->getBaseUrl().'/'.$id.'/expire', |
|
160 | 160 | $this->config->serverKey |
161 | 161 | ) |
162 | 162 | ); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected function determineSourcePath() |
40 | 40 | { |
41 | - $this->sourcePath = \realpath(__DIR__ . '/../'); |
|
41 | + $this->sourcePath = \realpath(__DIR__.'/../'); |
|
42 | 42 | if ($this->sourcePath == '/' || empty($this->sourcePath)) { |
43 | 43 | CLI::error('Unable to determine the correct source directory. Bailing.'); |
44 | 44 | exit(); |
@@ -72,23 +72,23 @@ discard block |
||
72 | 72 | { |
73 | 73 | $config = new Autoload(); |
74 | 74 | $appPath = $config->psr4[APP_NAMESPACE]; |
75 | - $directory = \dirname($appPath . $path); |
|
75 | + $directory = \dirname($appPath.$path); |
|
76 | 76 | if (!\is_dir($directory)) { |
77 | 77 | \mkdir($directory, 0777, true); |
78 | 78 | } |
79 | - if (\file_exists($appPath . $path) && CLI::prompt('Config file already exists, do you want to replace it?', ['y', 'n']) == 'n') { |
|
79 | + if (\file_exists($appPath.$path) && CLI::prompt('Config file already exists, do you want to replace it?', ['y', 'n']) == 'n') { |
|
80 | 80 | CLI::error('Cancelled'); |
81 | 81 | exit(); |
82 | 82 | } |
83 | 83 | |
84 | 84 | try { |
85 | - write_file($appPath . $path, $content); |
|
85 | + write_file($appPath.$path, $content); |
|
86 | 86 | } catch (\Exception $e) { |
87 | 87 | $this->showError($e); |
88 | 88 | exit(); |
89 | 89 | } |
90 | 90 | $path = \str_replace($appPath, '', $path); |
91 | - CLI::write(CLI::color('Created: ', 'yellow') . $path); |
|
91 | + CLI::write(CLI::color('Created: ', 'yellow').$path); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | //-------------------------------------------------------------------- |
@@ -34,7 +34,7 @@ |
||
34 | 34 | ['headers' => [ |
35 | 35 | 'Content-type' => \Codenom\Midtrans\Constant::CONTENT_TYPE, |
36 | 36 | 'Accept' => \Codenom\Midtrans\Constant::ACCEPT, |
37 | - 'Authorization' => 'Basic ' . \base64_encode($serverKey . ':'), |
|
37 | + 'Authorization' => 'Basic '.\base64_encode($serverKey.':'), |
|
38 | 38 | ]] |
39 | 39 | )->getBody(); |
40 | 40 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | return \Codenom\Midtrans\Parse\JSONParse::decodeToObject( |
54 | 54 | APIMidtrans::call( |
55 | 55 | \Codenom\Midtrans\Constant::CURL_TYPE_POST, |
56 | - $this->midtrans->getSnapBaseUrl() . '/transactions', |
|
56 | + $this->midtrans->getSnapBaseUrl().'/transactions', |
|
57 | 57 | $this->config->serverKey, |
58 | 58 | $placeOrder |
59 | 59 | ) |