@@ -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 \ByTIC\Omnipay\Paylike\Gateway(); |
6 | 6 | $parameters = [ |
@@ -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) { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } catch (\Paylike\Exception\NotFound $e) { |
41 | 41 | $data['message'] = "The transaction was not found"; |
42 | 42 | } catch (\Paylike\Exception\ApiException $e) { |
43 | - $data['message'] = "Api Error:" . $e->getMessage(); |
|
43 | + $data['message'] = "Api Error:".$e->getMessage(); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | return $data; |
@@ -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,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require __DIR__ . '/init.php'; |
|
3 | +require __DIR__.'/init.php'; |
|
4 | 4 | |
5 | 5 | $gateway = new \ByTIC\Omnipay\Paylike\Gateway(); |
6 | 6 | $parameters = [ |
@@ -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 \ByTIC\Omnipay\Paylike\Gateway(); |
6 | 6 | $parameters = [ |
@@ -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 | } |