Skip to content

Commit

Permalink
spaces issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexp committed Oct 15, 2019
1 parent 2288f27 commit 66e21c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Carrier.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ class Carrier
*/
const CODE_USPS = 'usps';

/**
* LaserShip carrier code.
*/
const CODE_LASER_SHIP = 'laser_ship';
/**
* LaserShip carrier code.
*/
const CODE_LASER_SHIP = 'laser_ship';

/**
* Carrier code.
Expand Down
2 changes: 1 addition & 1 deletion src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private function deduceTrackingCode(): Package
} elseif (preg_match('/^[0-9]{4}[0-9]{4}[0-9]{4}[0-9]{4}[0-9]{4}[0-9]{2}$/', $tracking_code)) {
$carrier_code = Carrier::CODE_USPS;
} elseif (preg_match('/^LX[0-9]{8}$/', $tracking_code)) {
$carrier_code = Carrier::CODE_LASER_SHIP;
$carrier_code = Carrier::CODE_LASER_SHIP;
} elseif (preg_match(
'/^420[0-9]{5}([0-9]{4}[0-9]{4}[0-9]{4}[0-9]{4}[0-9]{4}[0-9]{2})$/',
$tracking_code,
Expand Down

0 comments on commit 66e21c8

Please sign in to comment.