Skip to content

Commit

Permalink
Merge pull request #2 from Fabrik/verifyPeer
Browse files Browse the repository at this point in the history
send, Verify peer parameter never invoked
Merge in - thanks
  • Loading branch information
nicksagona committed Feb 25, 2016
2 parents 5002a3d + 10bd1b4 commit a58f4e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ abstract class AbstractAdapter implements AdapterInterface
/**
* Send transaction
*
* @param boolean $verifyPeer
* @return void
*/
abstract public function send();
abstract public function send($verifyPeer = true);

/**
* Return whether the transaction is a success
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/Ups.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function shipFrom(array $shipFrom)
public function setDimensions(array $dimensions, $unit = null)
{
if ((null !== $unit) && (($unit == 'IN') || ($unit == 'CM'))) {
$this->dimensions['UnitOfMeasurement'] = $unit;
$this->weight['UnitOfMeasurement'] = $unit;
}

foreach ($dimensions as $key => $value) {
Expand Down
7 changes: 4 additions & 3 deletions src/Shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,14 @@ public function setWeight($weight, $unit = null)
}

/**
* Send transaction data
* Send transaction
*
* @param boolean $verifyPeer
* @return void
*/
public function send()
public function send($verifyPeer = true)
{
$this->adapter->send();
$this->adapter->send($verifyPeer);
}

/**
Expand Down

0 comments on commit a58f4e6

Please sign in to comment.