@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require dirname(__DIR__) . '/tests/bootstrap.php'; |
|
3 | +require dirname(__DIR__).'/tests/bootstrap.php'; |
@@ -62,7 +62,7 @@ |
||
62 | 62 | } catch (\Paylike\Exception\NotFound $e) { |
63 | 63 | $this->setDataItem('message', "The transaction was not found"); |
64 | 64 | } catch (\Paylike\Exception\ApiException $e) { |
65 | - $this->setDataItem('message', "Api Error:" . $e->getMessage()); |
|
65 | + $this->setDataItem('message', "Api Error:".$e->getMessage()); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | if ($isValid) { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | protected function initViewVars() |
19 | 19 | { |
20 | 20 | $data = $this->getData(); |
21 | - $data['returnUrl'] .= strpos($data['returnUrl'], '?') === false ? $data['returnUrl'] . '?' : ''; |
|
21 | + $data['returnUrl'] .= strpos($data['returnUrl'], '?') === false ? $data['returnUrl'].'?' : ''; |
|
22 | 22 | $this->getView()->with($data); |
23 | 23 | } |
24 | 24 |
@@ -137,7 +137,7 @@ |
||
137 | 137 | custom: { |
138 | 138 | orderId: "<?php echo $this->get('orderId'); ?>", |
139 | 139 | customer: { |
140 | - name: '<?php echo $this->get('firstName') . ' ' . $this->get('lastName'); ?>', |
|
140 | + name: '<?php echo $this->get('firstName').' '.$this->get('lastName'); ?>', |
|
141 | 141 | email: '<?php echo $this->get('email'); ?>', |
142 | 142 | telephone: '<?php echo $this->get('phone'); ?>', |
143 | 143 | address: '<?php echo $this->get('address'); ?>', |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('PROJECT_BASE_PATH', __DIR__ . '/..'); |
|
3 | +define('PROJECT_BASE_PATH', __DIR__.'/..'); |
|
4 | 4 | define('TEST_BASE_PATH', __DIR__); |
5 | -define('TEST_FIXTURE_PATH', __DIR__ . DIRECTORY_SEPARATOR . 'fixtures'); |
|
5 | +define('TEST_FIXTURE_PATH', __DIR__.DIRECTORY_SEPARATOR.'fixtures'); |
|
6 | 6 | |
7 | -require dirname(__DIR__) . '/vendor/autoload.php'; |
|
7 | +require dirname(__DIR__).'/vendor/autoload.php'; |
|
8 | 8 | |
9 | -if (file_exists(TEST_BASE_PATH . DIRECTORY_SEPARATOR . '.env')) { |
|
9 | +if (file_exists(TEST_BASE_PATH.DIRECTORY_SEPARATOR.'.env')) { |
|
10 | 10 | $dotenv = Dotenv\Dotenv::createImmutable(TEST_BASE_PATH); |
11 | 11 | $dotenv->load(); |
12 | 12 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public function initialize(array $parameters = []) |
17 | 17 | { |
18 | 18 | $parameters['identifier'] = isset($parameters['identifier']) ? |
19 | - $parameters['identifier'] : 'anonymous' . microtime(true); |
|
19 | + $parameters['identifier'] : 'anonymous'.microtime(true); |
|
20 | 20 | |
21 | 21 | return parent::initialize($parameters); |
22 | 22 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | public static function viewsPath() |
12 | 12 | { |
13 | - return __DIR__ . '/resources/views/'; |
|
13 | + return __DIR__.'/resources/views/'; |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /** |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } catch (\Paylike\Exception\InvalidRequest $e) { |
61 | 61 | // Bad (invalid) request - see $e->getJsonBody() for the error |
62 | 62 | $data['exception_class'] = "\Paylike\Exception\InvalidRequest"; |
63 | - $data['message'] = "Bad (invalid) request - " . substr(json_encode($e->getJsonBody()), 0, 250); |
|
63 | + $data['message'] = "Bad (invalid) request - ".substr(json_encode($e->getJsonBody()), 0, 250); |
|
64 | 64 | } catch (\Paylike\Exception\Forbidden $e) { |
65 | 65 | // You are correctly authenticated but do not have access. |
66 | 66 | $data['exception_class'] = "\Paylike\Exception\Forbidden"; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $data['message'] = "Network error on connecting via cURL"; |
80 | 80 | } catch (\Paylike\Exception\ApiException $e) { |
81 | 81 | $data['exception_class'] = "\Paylike\Exception\ApiException"; |
82 | - $data['message'] = "Api Error:" . $e->getMessage(); |
|
82 | + $data['message'] = "Api Error:".$e->getMessage(); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | return $data; |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require __DIR__ . '/init.php'; |
|
3 | +require __DIR__.'/init.php'; |
|
4 | 4 | |
5 | 5 | $gateway = new \Paytic\Omnipay\Paylike\Gateway(); |
6 | 6 | $parameters = [ |