Completed
Push — develop ( b950f6...fdd1ea )
by Mikaël
32:37
created
samples/GenerateLabel.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use ColissimoPostage\StructType\GenerateLabelRequest;
13 13
 use ColissimoPostage\StructType\OutputFormat;
14 14
 use ColissimoPostage\StructType\Letter;
15
-use ColissimoPostage\StructType\Fields;
16 15
 use ColissimoPostage\StructType\GenerateLabel;
17 16
 use ColissimoPostage\StructType\Service;
18 17
 use ColissimoPostage\StructType\Parcel;
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 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
  */
@@ -81,18 +81,18 @@  discard block
 block discarded – undo
81 81
  * Debug informations provided by the utility methods
82 82
  */
83 83
 if (true) {
84
-    echo 'XML Request: ' . $generate->getLastRequest() . "\r\n";
85
-    echo 'Headers Request: ' . $generate->getLastRequestHeaders() . "\r\n";
86
-    echo 'XML Response: ' . $generate->getLastResponse() . "\r\n";
87
-    echo 'Headers Response: ' . $generate->getLastResponseHeaders() . "\r\n";
84
+    echo 'XML Request: '.$generate->getLastRequest()."\r\n";
85
+    echo 'Headers Request: '.$generate->getLastRequestHeaders()."\r\n";
86
+    echo 'XML Response: '.$generate->getLastResponse()."\r\n";
87
+    echo 'Headers Response: '.$generate->getLastResponseHeaders()."\r\n";
88 88
 }
89 89
 /**
90 90
  * Sample call for getProductInter operation/method
91 91
  */
92 92
 if ($generate->getLastResponse(true) instanceof \DOMDocument) {
93
-    echo PHP_EOL . 'PDF url: ' . $generate->getLastResponse(true)
93
+    echo PHP_EOL.'PDF url: '.$generate->getLastResponse(true)
94 94
         ->getElementsByTagName('pdfUrl')
95
-        ->item(0)->nodeValue . PHP_EOL;
95
+        ->item(0)->nodeValue.PHP_EOL;
96 96
 } else {
97
-    echo PHP_EOL . 'An error occurred: ' . $generate->getLastErrorForMethod('ColissimoPostage\ServiceType\Generate::generateLabel')->getMessage() . PHP_EOL;
97
+    echo PHP_EOL.'An error occurred: '.$generate->getLastErrorForMethod('ColissimoPostage\ServiceType\Generate::generateLabel')->getMessage().PHP_EOL;
98 98
 }
Please login to merge, or discard this patch.
SoapClient/SoapClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
          * So we only keep the XML envelope
35 35
          */
36 36
         $response = substr($response, strpos($response, '<soap:Envelope '), strrpos($response, '</soap:Envelope>') - strpos($response, '<soap:Envelope ') + strlen('</soap:Envelope>'));
37
-        return '<?xml version="1.0" encoding="UTF-8"?>' . trim($response);
37
+        return '<?xml version="1.0" encoding="UTF-8"?>'.trim($response);
38 38
     }
39 39
     /**
40 40
      * Override it in order to return the final XML Request
Please login to merge, or discard this patch.
samples/GetProductInter.php 1 patch
Spacing   +9 added lines, -9 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,19 +38,19 @@  discard block
 block discarded – undo
38 38
  * Debug informations provided by the utility methods
39 39
  */
40 40
 if (false) {
41
-    echo 'XML Request: ' . $get->getLastRequest() . "\r\n";
42
-    echo 'Headers Request: ' . $get->getLastRequestHeaders() . "\r\n";
43
-    echo 'XML Response: ' . $get->getLastResponse() . "\r\n";
44
-    echo 'Headers Response: ' . $get->getLastResponseHeaders() . "\r\n";
41
+    echo 'XML Request: '.$get->getLastRequest()."\r\n";
42
+    echo 'Headers Request: '.$get->getLastRequestHeaders()."\r\n";
43
+    echo 'XML Response: '.$get->getLastResponse()."\r\n";
44
+    echo 'Headers Response: '.$get->getLastResponseHeaders()."\r\n";
45 45
 }
46 46
 /**
47 47
  * Sample call for getProductInter operation/method
48 48
  */
49 49
 if ($result !== false) {
50
-    echo sprintf('Product: %s', implode(',', $result->getReturn()->getProduct())) . PHP_EOL;
51
-    echo sprintf('PartnerType: %s', $result->getReturn()->getPartnerType()) . PHP_EOL;
52
-    echo sprintf('ReturnTypeChoice: %s', implode(', ', $result->getReturn()->getReturnTypeChoice())) . PHP_EOL;
53
-    echo sprintf('Message: %s', array_shift($result->getReturn()->getMessages())->getMessageContent()) . PHP_EOL;
50
+    echo sprintf('Product: %s', implode(',', $result->getReturn()->getProduct())).PHP_EOL;
51
+    echo sprintf('PartnerType: %s', $result->getReturn()->getPartnerType()).PHP_EOL;
52
+    echo sprintf('ReturnTypeChoice: %s', implode(', ', $result->getReturn()->getReturnTypeChoice())).PHP_EOL;
53
+    echo sprintf('Message: %s', array_shift($result->getReturn()->getMessages())->getMessageContent()).PHP_EOL;
54 54
 } else {
55 55
     print_r($get->getLastError());
56 56
 }
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.
src/StructType/Article.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     }
105 105
     /**
106 106
      * Get description value
107
-     * @return string|null
107
+     * @return string
108 108
      */
109 109
     public function getDescription()
110 110
     {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     }
127 127
     /**
128 128
      * Get quantity value
129
-     * @return int|null
129
+     * @return integer
130 130
      */
131 131
     public function getQuantity()
132 132
     {
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     }
149 149
     /**
150 150
      * Get weight value
151
-     * @return float|null
151
+     * @return double
152 152
      */
153 153
     public function getWeight()
154 154
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     }
167 167
     /**
168 168
      * Get value value
169
-     * @return float|null
169
+     * @return double
170 170
      */
171 171
     public function getValue()
172 172
     {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     }
185 185
     /**
186 186
      * Get hsCode value
187
-     * @return string|null
187
+     * @return string
188 188
      */
189 189
     public function getHsCode()
190 190
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     }
207 207
     /**
208 208
      * Get originCountry value
209
-     * @return string|null
209
+     * @return string
210 210
      */
211 211
     public function getOriginCountry()
212 212
     {
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     }
229 229
     /**
230 230
      * Get currency value
231
-     * @return string|null
231
+     * @return string
232 232
      */
233 233
     public function getCurrency()
234 234
     {
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     }
251 251
     /**
252 252
      * Get artref value
253
-     * @return string|null
253
+     * @return string
254 254
      */
255 255
     public function getArtref()
256 256
     {
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     }
273 273
     /**
274 274
      * Get originalIdent value
275
-     * @return string|null
275
+     * @return string
276 276
      */
277 277
     public function getOriginalIdent()
278 278
     {
Please login to merge, or discard this patch.
src/StructType/Category.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     }
29 29
     /**
30 30
      * Get value value
31
-     * @return int|null
31
+     * @return integer
32 32
      */
33 33
     public function getValue()
34 34
     {
Please login to merge, or discard this patch.
src/StructType/OutputFormat.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
     /**
82 82
      * Get x value
83
-     * @return int|null
83
+     * @return integer
84 84
      */
85 85
     public function getX()
86 86
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     }
103 103
     /**
104 104
      * Get y value
105
-     * @return int|null
105
+     * @return integer
106 106
      */
107 107
     public function getY()
108 108
     {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     }
125 125
     /**
126 126
      * Get outputPrintingType value
127
-     * @return string|null
127
+     * @return string
128 128
      */
129 129
     public function getOutputPrintingType()
130 130
     {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     }
147 147
     /**
148 148
      * Get dematerialized value
149
-     * @return bool|null
149
+     * @return boolean
150 150
      */
151 151
     public function getDematerialized()
152 152
     {
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     }
165 165
     /**
166 166
      * Get returnType value
167
-     * @return string|null
167
+     * @return string
168 168
      */
169 169
     public function getReturnType()
170 170
     {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     }
187 187
     /**
188 188
      * Get printCODDocument value
189
-     * @return bool|null
189
+     * @return boolean
190 190
      */
191 191
     public function getPrintCODDocument()
192 192
     {
Please login to merge, or discard this patch.
src/StructType/Parcel.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     }
141 141
     /**
142 142
      * Get parcelNumber value
143
-     * @return string|null
143
+     * @return string
144 144
      */
145 145
     public function getParcelNumber()
146 146
     {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     }
163 163
     /**
164 164
      * Get insuranceAmount value
165
-     * @return int|null
165
+     * @return integer
166 166
      */
167 167
     public function getInsuranceAmount()
168 168
     {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     }
185 185
     /**
186 186
      * Get insuranceValue value
187
-     * @return int|null
187
+     * @return integer
188 188
      */
189 189
     public function getInsuranceValue()
190 190
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     }
207 207
     /**
208 208
      * Get recommendationLevel value
209
-     * @return string|null
209
+     * @return string
210 210
      */
211 211
     public function getRecommendationLevel()
212 212
     {
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     }
229 229
     /**
230 230
      * Get weight value
231
-     * @return float|null
231
+     * @return double
232 232
      */
233 233
     public function getWeight()
234 234
     {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     }
247 247
     /**
248 248
      * Get nonMachinable value
249
-     * @return bool|null
249
+     * @return boolean
250 250
      */
251 251
     public function getNonMachinable()
252 252
     {
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     }
265 265
     /**
266 266
      * Get COD value
267
-     * @return bool|null
267
+     * @return boolean
268 268
      */
269 269
     public function getCOD()
270 270
     {
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
     }
283 283
     /**
284 284
      * Get CODAmount value
285
-     * @return int|null
285
+     * @return integer
286 286
      */
287 287
     public function getCODAmount()
288 288
     {
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     }
305 305
     /**
306 306
      * Get returnReceipt value
307
-     * @return bool|null
307
+     * @return boolean
308 308
      */
309 309
     public function getReturnReceipt()
310 310
     {
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
     }
323 323
     /**
324 324
      * Get instructions value
325
-     * @return string|null
325
+     * @return string
326 326
      */
327 327
     public function getInstructions()
328 328
     {
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
     }
345 345
     /**
346 346
      * Get pickupLocationId value
347
-     * @return string|null
347
+     * @return string
348 348
      */
349 349
     public function getPickupLocationId()
350 350
     {
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
     }
367 367
     /**
368 368
      * Get ftd value
369
-     * @return bool|null
369
+     * @return boolean
370 370
      */
371 371
     public function getFtd()
372 372
     {
Please login to merge, or discard this patch.
src/StructType/Service.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     }
137 137
     /**
138 138
      * Get productCode value
139
-     * @return string|null
139
+     * @return string
140 140
      */
141 141
     public function getProductCode()
142 142
     {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     }
159 159
     /**
160 160
      * Get depositDate value
161
-     * @return string|null
161
+     * @return string
162 162
      */
163 163
     public function getDepositDate()
164 164
     {
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     }
181 181
     /**
182 182
      * Get mailBoxPicking value
183
-     * @return bool|null
183
+     * @return boolean
184 184
      */
185 185
     public function getMailBoxPicking()
186 186
     {
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     }
199 199
     /**
200 200
      * Get mailBoxPickingDate value
201
-     * @return string|null
201
+     * @return string
202 202
      */
203 203
     public function getMailBoxPickingDate()
204 204
     {
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     }
221 221
     /**
222 222
      * Get vatCode value
223
-     * @return int|null
223
+     * @return integer
224 224
      */
225 225
     public function getVatCode()
226 226
     {
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     }
243 243
     /**
244 244
      * Get vatPercentage value
245
-     * @return int|null
245
+     * @return integer
246 246
      */
247 247
     public function getVatPercentage()
248 248
     {
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     }
265 265
     /**
266 266
      * Get vatAmount value
267
-     * @return int|null
267
+     * @return integer
268 268
      */
269 269
     public function getVatAmount()
270 270
     {
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
     }
287 287
     /**
288 288
      * Get transportationAmount value
289
-     * @return int|null
289
+     * @return integer
290 290
      */
291 291
     public function getTransportationAmount()
292 292
     {
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
     }
309 309
     /**
310 310
      * Get totalAmount value
311
-     * @return int|null
311
+     * @return integer
312 312
      */
313 313
     public function getTotalAmount()
314 314
     {
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
     }
331 331
     /**
332 332
      * Get orderNumber value
333
-     * @return string|null
333
+     * @return string
334 334
      */
335 335
     public function getOrderNumber()
336 336
     {
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     }
353 353
     /**
354 354
      * Get commercialName value
355
-     * @return string|null
355
+     * @return string
356 356
      */
357 357
     public function getCommercialName()
358 358
     {
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
     }
375 375
     /**
376 376
      * Get returnTypeChoice value
377
-     * @return int|null
377
+     * @return integer
378 378
      */
379 379
     public function getReturnTypeChoice()
380 380
     {
Please login to merge, or discard this patch.