@@ -102,11 +102,11 @@ discard block |
||
| 102 | 102 | $receiver = $expectedDocument->createElement('international:receiver'); |
| 103 | 103 | $international->appendChild($receiver); |
| 104 | 104 | foreach ($data['international']['receiver'] as $key => $value) { |
| 105 | - $key = 'common:' . $key; |
|
| 105 | + $key = 'common:'.$key; |
|
| 106 | 106 | if ($key == 'common:address') { |
| 107 | 107 | $address = $expectedDocument->createElement($key); |
| 108 | 108 | foreach ($value as $key2 => $value2) { |
| 109 | - $key2 = 'common:' . $key2; |
|
| 109 | + $key2 = 'common:'.$key2; |
|
| 110 | 110 | $address->appendChild( |
| 111 | 111 | $expectedDocument->createElement($key2, $value2) |
| 112 | 112 | ); |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $value = ($value) ? 'true' : 'false'; |
| 128 | 128 | } |
| 129 | 129 | $customsInfo->appendChild( |
| 130 | - $expectedDocument->createElement('international:' . $key, $value) |
|
| 130 | + $expectedDocument->createElement('international:'.$key, $value) |
|
| 131 | 131 | ); |
| 132 | 132 | } |
| 133 | 133 | $international->appendChild($customsInfo); |
@@ -16,13 +16,13 @@ |
||
| 16 | 16 | $test = new ShopHandlingInstruction($value); |
| 17 | 17 | $this->assertEquals($value, $test->getValue()); |
| 18 | 18 | } catch (BpostException $ex) { |
| 19 | - $this->fail('Exception launched for valid value: "' . $value . '"'); |
|
| 19 | + $this->fail('Exception launched for valid value: "'.$value.'"'); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | $value = str_repeat('a', 51); |
| 23 | 23 | try { |
| 24 | 24 | new ShopHandlingInstruction($value); |
| 25 | - $this->fail('Exception uncaught for invalid value: "' . $value . '"'); |
|
| 25 | + $this->fail('Exception uncaught for invalid value: "'.$value.'"'); |
|
| 26 | 26 | } catch (BpostInvalidLengthException $ex) { |
| 27 | 27 | $this->assertTrue(true); |
| 28 | 28 | } |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | if ($key == 'parcelsDepotAddress') { |
| 71 | 71 | $address = $expectedDocument->createElement($key); |
| 72 | 72 | foreach ($value as $key2 => $value2) { |
| 73 | - $key2 = 'common:' . $key2; |
|
| 73 | + $key2 = 'common:'.$key2; |
|
| 74 | 74 | $address->appendChild( |
| 75 | 75 | $expectedDocument->createElement($key2, $value2) |
| 76 | 76 | ); |
@@ -77,11 +77,11 @@ discard block |
||
| 77 | 77 | $expectedDocument->appendChild($box); |
| 78 | 78 | $sender = $expectedDocument->createElement('sender'); |
| 79 | 79 | foreach ($data['sender'] as $key => $value) { |
| 80 | - $key = 'common:' . $key; |
|
| 80 | + $key = 'common:'.$key; |
|
| 81 | 81 | if ($key == 'common:address') { |
| 82 | 82 | $address = $expectedDocument->createElement($key); |
| 83 | 83 | foreach ($value as $key2 => $value2) { |
| 84 | - $key2 = 'common:' . $key2; |
|
| 84 | + $key2 = 'common:'.$key2; |
|
| 85 | 85 | $address->appendChild( |
| 86 | 86 | $expectedDocument->createElement($key2, $value2) |
| 87 | 87 | ); |
@@ -101,11 +101,11 @@ discard block |
||
| 101 | 101 | $receiver = $expectedDocument->createElement('receiver'); |
| 102 | 102 | $atHome->appendChild($receiver); |
| 103 | 103 | foreach ($data['nationalBox']['atHome']['receiver'] as $key => $value) { |
| 104 | - $key = 'common:' . $key; |
|
| 104 | + $key = 'common:'.$key; |
|
| 105 | 105 | if ($key == 'common:address') { |
| 106 | 106 | $address = $expectedDocument->createElement($key); |
| 107 | 107 | foreach ($value as $key2 => $value2) { |
| 108 | - $key2 = 'common:' . $key2; |
|
| 108 | + $key2 = 'common:'.$key2; |
|
| 109 | 109 | $address->appendChild( |
| 110 | 110 | $expectedDocument->createElement($key2, $value2) |
| 111 | 111 | ); |
@@ -219,11 +219,11 @@ discard block |
||
| 219 | 219 | $expectedDocument->appendChild($box); |
| 220 | 220 | $sender = $expectedDocument->createElement('sender'); |
| 221 | 221 | foreach ($data['sender'] as $key => $value) { |
| 222 | - $key = 'common:' . $key; |
|
| 222 | + $key = 'common:'.$key; |
|
| 223 | 223 | if ($key == 'common:address') { |
| 224 | 224 | $address = $expectedDocument->createElement($key); |
| 225 | 225 | foreach ($value as $key2 => $value2) { |
| 226 | - $key2 = 'common:' . $key2; |
|
| 226 | + $key2 = 'common:'.$key2; |
|
| 227 | 227 | $address->appendChild( |
| 228 | 228 | $expectedDocument->createElement($key2, $value2) |
| 229 | 229 | ); |
@@ -247,11 +247,11 @@ discard block |
||
| 247 | 247 | $receiver = $expectedDocument->createElement('international:receiver'); |
| 248 | 248 | $atHome->appendChild($receiver); |
| 249 | 249 | foreach ($data['internationalBox']['international']['receiver'] as $key => $value) { |
| 250 | - $key = 'common:' . $key; |
|
| 250 | + $key = 'common:'.$key; |
|
| 251 | 251 | if ($key == 'common:address') { |
| 252 | 252 | $address = $expectedDocument->createElement($key); |
| 253 | 253 | foreach ($value as $key2 => $value2) { |
| 254 | - $key2 = 'common:' . $key2; |
|
| 254 | + $key2 = 'common:'.$key2; |
|
| 255 | 255 | $address->appendChild( |
| 256 | 256 | $expectedDocument->createElement($key2, $value2) |
| 257 | 257 | ); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | public function testGetUserAgent() |
| 57 | 57 | { |
| 58 | 58 | $this->bpost->setUserAgent('testing/1.0.0'); |
| 59 | - $this->assertSame('PHP Bpost/' . Bpost::VERSION . ' testing/1.0.0', $this->bpost->getUserAgent()); |
|
| 59 | + $this->assertSame('PHP Bpost/'.Bpost::VERSION.' testing/1.0.0', $this->bpost->getUserAgent()); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | { |
| 47 | 47 | $this->bpack247->setUserAgent('testing/1.0.0'); |
| 48 | 48 | $this->assertSame( |
| 49 | - 'PHP Bpost Bpack247/' . Bpack247::VERSION . ' testing/1.0.0', |
|
| 49 | + 'PHP Bpost Bpack247/'.Bpack247::VERSION.' testing/1.0.0', |
|
| 50 | 50 | $this->bpack247->getUserAgent() |
| 51 | 51 | ); |
| 52 | 52 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public function testGetUserAgent() |
| 48 | 48 | { |
| 49 | 49 | $this->geo6->setUserAgent('testing/1.0.0'); |
| 50 | - $this->assertSame('PHP Bpost Geo6/' . Geo6::VERSION . ' testing/1.0.0', $this->geo6->getUserAgent()); |
|
| 50 | + $this->assertSame('PHP Bpost Geo6/'.Geo6::VERSION.' testing/1.0.0', $this->geo6->getUserAgent()); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | $response = $this->geo6->getServicePointPageUrl($id, 'nl', $type); |
| 109 | 109 | |
| 110 | 110 | $this->assertSame( |
| 111 | - 'https://pudo.bpost.be/Locator?Id=' . $id . '&Language=nl&Type=' . $type . '&Country=BE&Function=page&Partner=' . GEO6_PARTNER . '&AppId=' . GEO6_APP_ID . '&Format=xml', |
|
| 111 | + 'https://pudo.bpost.be/Locator?Id='.$id.'&Language=nl&Type='.$type.'&Country=BE&Function=page&Partner='.GEO6_PARTNER.'&AppId='.GEO6_APP_ID.'&Format=xml', |
|
| 112 | 112 | $response |
| 113 | 113 | ); |
| 114 | 114 | } |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // require |
| 4 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
| 5 | -require_once __DIR__ . '/config.php'; |
|
| 4 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
| 5 | +require_once __DIR__.'/config.php'; |
|
| 6 | 6 | |
| 7 | 7 | use Bpost\BpostApiClient\Bpost; |
| 8 | 8 | use Bpost\BpostApiClient\Bpost\Order; |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -include_once __DIR__ . '/../vendor/autoload.php'; |
|
| 3 | +include_once __DIR__.'/../vendor/autoload.php'; |
|
| 4 | 4 | |
| 5 | 5 | // To define ACCOUNT_ID and PASSPHRASE constants for the API connection (connection-test folder): |
| 6 | -$credentialFile = __DIR__ . '/phpunit-credentials.php'; |
|
| 6 | +$credentialFile = __DIR__.'/phpunit-credentials.php'; |
|
| 7 | 7 | if (file_exists($credentialFile)) { |
| 8 | 8 | include_once $credentialFile; |
| 9 | 9 | } else { |
| 10 | - include_once $credentialFile . '.dist'; |
|
| 10 | + include_once $credentialFile.'.dist'; |
|
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | define('BPACK_EMAIL', '[email protected]'); |