Completed
Pull Request — master (#118)
by
unknown
11:53
created
src/Entity/POA.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
 
9 9
 class POA implements NodeInterface
10 10
 {
11
-    const POA_ONE_TIME = '1';  // One Time POA
12
-    const POA_BLANKET  = '2';  // Blanket POA
11
+    const POA_ONE_TIME = '1'; // One Time POA
12
+    const POA_BLANKET  = '2'; // Blanket POA
13 13
 
14 14
     /**
15 15
      * @var string
Please login to merge, or discard this patch.
src/Entity/ShipperFiled.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
 
9 9
 class ShipperFiled implements NodeInterface
10 10
 {
11
-    const SF_ITN                   = 'A';  // Requires the ITN
12
-    const SF_EXEMPTION_LEGEND      = 'B';  // Requires the Exemption Legend
13
-    const SF_POST_DEPARTURE_FILING = 'C';  // Requires Post Departure Filing Citation
11
+    const SF_ITN                   = 'A'; // Requires the ITN
12
+    const SF_EXEMPTION_LEGEND      = 'B'; // Requires the Exemption Legend
13
+    const SF_POST_DEPARTURE_FILING = 'C'; // Requires Post Departure Filing Citation
14 14
 
15 15
     /**
16 16
      * @var string
Please login to merge, or discard this patch.
src/Entity/EEIFilingOption.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
 
9 9
 class EEIFilingOption implements NodeInterface
10 10
 {
11
-    const FO_SHIPPER = '1';  // Shipper Filed
12
-    const FO_UPS     = '3';  // UPS Filed
11
+    const FO_SHIPPER = '1'; // Shipper Filed
12
+    const FO_UPS     = '3'; // UPS Filed
13 13
 
14 14
     /**
15 15
      * @var string
Please login to merge, or discard this patch.
src/Entity/StatusType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 
5 5
 class StatusType
6 6
 {
7
-    const ST_IN_TRANSIT       = 'I';  // In Transit
8
-    const ST_DELIVERED        = 'D';  // Delivered
9
-    const ST_EXCEPTION        = 'X';  // Exception
10
-    const ST_PICKUP           = 'P';  // Pickup
11
-    const ST_MANIFEST_PICKUP  = 'M';  // Manifest Pickup
7
+    const ST_IN_TRANSIT       = 'I'; // In Transit
8
+    const ST_DELIVERED        = 'D'; // Delivered
9
+    const ST_EXCEPTION        = 'X'; // Exception
10
+    const ST_PICKUP           = 'P'; // Pickup
11
+    const ST_MANIFEST_PICKUP  = 'M'; // Manifest Pickup
12 12
 
13 13
     public $Code;
14 14
     public $Description;
Please login to merge, or discard this patch.
src/Tracking.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -197,46 +197,46 @@  discard block
 block discarded – undo
197 197
         $patterns = [
198 198
 
199 199
             // UPS Mail Innovations tracking numbers
200
-            '/^MI\d{6}\d{1,22}$/',// MI 000000 00000000+
200
+            '/^MI\d{6}\d{1,22}$/', // MI 000000 00000000+
201 201
 
202 202
             // USPS - Certified Mail
203
-            '/^94071\d{17}$/',    // 9407 1000 0000 0000 0000 00
204
-            '/^7\d{19}$/',        // 7000 0000 0000 0000 0000
203
+            '/^94071\d{17}$/', // 9407 1000 0000 0000 0000 00
204
+            '/^7\d{19}$/', // 7000 0000 0000 0000 0000
205 205
 
206 206
             // USPS - Collect on Delivery
207
-            '/^93033\d{17}$/',    // 9303 3000 0000 0000 0000 00
208
-            '/^M\d{9}$/',         // M000 0000 00
207
+            '/^93033\d{17}$/', // 9303 3000 0000 0000 0000 00
208
+            '/^M\d{9}$/', // M000 0000 00
209 209
 
210 210
             // USPS - Global Express Guaranteed
211
-            '/^82\d{10}$/',       // 82 000 000 00
211
+            '/^82\d{10}$/', // 82 000 000 00
212 212
 
213 213
             // USPS - Priority Mail Express International
214
-            '/^EC\d{9}US$/',      // EC 000 000 000 US
214
+            '/^EC\d{9}US$/', // EC 000 000 000 US
215 215
 
216 216
             // USPS Innovations Expedited
217
-            '/^927\d{23}$/',      // 9270 8900 8900 8900 8900 8900 00
217
+            '/^927\d{23}$/', // 9270 8900 8900 8900 8900 8900 00
218 218
             
219 219
             // USPS - Priority Mail Express
220
-            '/^927\d{19}$/',      // 9270 1000 0000 0000 0000 00
221
-            '/^EA\d{9}US$/',      // EA 000 000 000 US
220
+            '/^927\d{19}$/', // 9270 1000 0000 0000 0000 00
221
+            '/^EA\d{9}US$/', // EA 000 000 000 US
222 222
 
223 223
             // USPS - Priority Mail International
224
-            '/^CP\d{9}US$/',      // CP 000 000 000 US
224
+            '/^CP\d{9}US$/', // CP 000 000 000 US
225 225
 
226 226
             // USPS - Priority Mail
227
-            '/^92055\d{17}$/',    // 9205 5000 0000 0000 0000 00
228
-            '/^14\d{18}$/',       // 1400 0000 0000 0000 0000
227
+            '/^92055\d{17}$/', // 9205 5000 0000 0000 0000 00
228
+            '/^14\d{18}$/', // 1400 0000 0000 0000 0000
229 229
 
230 230
             // USPS - Registered Mail
231
-            '/^92088\d{17}$/',    // 9208 8000 0000 0000 0000 00
232
-            '/^RA\d{9}US$/',      // RA 000 000 000 US
231
+            '/^92088\d{17}$/', // 9208 8000 0000 0000 0000 00
232
+            '/^RA\d{9}US$/', // RA 000 000 000 US
233 233
 
234 234
             // USPS - Signature Confirmation
235
-            '/^9202\d{16}US$/',   // 9202 1000 0000 0000 0000 00
236
-            '/^23\d{16}US$/',     // 2300 0000 0000 0000 0000
235
+            '/^9202\d{16}US$/', // 9202 1000 0000 0000 0000 00
236
+            '/^23\d{16}US$/', // 2300 0000 0000 0000 0000
237 237
 
238 238
             // USPS - Tracking
239
-            '/^94\d{20}$/',       // 9400 1000 0000 0000 0000 00
239
+            '/^94\d{20}$/', // 9400 1000 0000 0000 0000 00
240 240
             '/^03\d{18}$/'        // 0300 0000 0000 0000 0000
241 241
         ];
242 242
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      */
312 312
     private function formatResponse(SimpleXMLElement $response)
313 313
     {
314
-        if($this->allowMultipleShipments)
314
+        if ($this->allowMultipleShipments)
315 315
             return $this->convertXmlObject($response);
316 316
 
317 317
         return $this->convertXmlObject($response->Shipment);
Please login to merge, or discard this patch.