Completed
Push — master ( 89fc5a...bdf634 )
by Mikaël
112:58 queued 78:46
created
Category
samples/Track.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 /**
3 3
  * Composer autoload
4 4
  */
5
-require_once __DIR__ . '/../vendor/autoload.php';
5
+require_once __DIR__.'/../vendor/autoload.php';
6 6
 /**
7 7
  * Used classes
8 8
  */
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
  * Debug informations provided by the utility methods
39 39
  */
40 40
 if (true) {
41
-    echo 'XML Request: ' . $track->getLastRequest() . "\r\n";
42
-    echo 'Headers Request: ' . $track->getLastRequestHeaders() . "\r\n";
43
-    echo 'XML Response: ' . $track->getLastResponse() . "\r\n";
44
-    echo 'Headers Response: ' . $track->getLastResponseHeaders() . "\r\n";
41
+    echo 'XML Request: '.$track->getLastRequest()."\r\n";
42
+    echo 'Headers Request: '.$track->getLastRequestHeaders()."\r\n";
43
+    echo 'XML Response: '.$track->getLastResponse()."\r\n";
44
+    echo 'Headers Response: '.$track->getLastResponseHeaders()."\r\n";
45 45
 }
46 46
 /**
47 47
  * Sample call for getProductInter operation/method
@@ -51,16 +51,16 @@  discard block
 block discarded – undo
51 51
      * @var ColissimoTracking\StructType\SkybillInformationResult
52 52
      */
53 53
     $return = $result->getReturn();
54
-    echo PHP_EOL . sprintf('ErrorCode: %s', $return->getErrorCode());
55
-    echo PHP_EOL . sprintf('ErrorMessage: %s', $return->getErrorMessage());
56
-    echo PHP_EOL . sprintf('EventCode: %s', $return->getEventCode());
57
-    echo PHP_EOL . sprintf('EventDate: %s', $return->getEventDate());
58
-    echo PHP_EOL . sprintf('EventLibelle: %s', $return->getEventLibelle());
59
-    echo PHP_EOL . sprintf('EventSite: %s', $return->getEventSite());
60
-    echo PHP_EOL . sprintf('RecipientCity: %s', $return->getRecipientCity());
61
-    echo PHP_EOL . sprintf('RecipientCountryCode: %s', $return->getRecipientCountryCode());
62
-    echo PHP_EOL . sprintf('RecipientZipCode: %s', $return->getRecipientZipCode());
63
-    echo PHP_EOL . sprintf('SkybillNumber: %s', $return->getSkybillNumber()) . PHP_EOL;
54
+    echo PHP_EOL.sprintf('ErrorCode: %s', $return->getErrorCode());
55
+    echo PHP_EOL.sprintf('ErrorMessage: %s', $return->getErrorMessage());
56
+    echo PHP_EOL.sprintf('EventCode: %s', $return->getEventCode());
57
+    echo PHP_EOL.sprintf('EventDate: %s', $return->getEventDate());
58
+    echo PHP_EOL.sprintf('EventLibelle: %s', $return->getEventLibelle());
59
+    echo PHP_EOL.sprintf('EventSite: %s', $return->getEventSite());
60
+    echo PHP_EOL.sprintf('RecipientCity: %s', $return->getRecipientCity());
61
+    echo PHP_EOL.sprintf('RecipientCountryCode: %s', $return->getRecipientCountryCode());
62
+    echo PHP_EOL.sprintf('RecipientZipCode: %s', $return->getRecipientZipCode());
63
+    echo PHP_EOL.sprintf('SkybillNumber: %s', $return->getSkybillNumber()).PHP_EOL;
64 64
 } else {
65
-    echo PHP_EOL . 'An error occurred: ' . $track->getLastErrorForMethod('ColissimoTracking\ServiceType\Track::Track')->getMessage() . PHP_EOL;
65
+    echo PHP_EOL.'An error occurred: '.$track->getLastErrorForMethod('ColissimoTracking\ServiceType\Track::Track')->getMessage().PHP_EOL;
66 66
 }
Please login to merge, or discard this patch.
tutorial.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * );
14 14
  * etc....
15 15
  */
16
-require_once __DIR__ . '/vendor/autoload.php';
16
+require_once __DIR__.'/vendor/autoload.php';
17 17
 /**
18 18
  * Minimal options
19 19
  */
Please login to merge, or discard this patch.