Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
qschmick authored and actions-user committed Dec 29, 2021
1 parent a34cfcc commit ae1e827
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/ShipEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ public function getShipmentById(
}

return $response;

}

/**
Expand Down Expand Up @@ -467,9 +466,10 @@ public function removeTagFromShipment(
private function shipmentsToObjects(array $shipments) : array
{
$shipment_objects = [];
foreach ($shipments AS $shipment) {
foreach ($shipments as $shipment) {
$shipment_objects[] = new Shipment($shipment);
}

return $shipment_objects;
}
}
16 changes: 8 additions & 8 deletions src/ShipEngineConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ public function merge(array|ShipEngineConfig|null $newConfig = null): ShipEngine
public function jsonSerialize() : array
{
return [
'apiKey' => $this->apiKey,
'baseUrl' => $this->baseUrl,
'apiKey' => $this->apiKey,
'baseUrl' => $this->baseUrl,
'pageSize' => $this->pageSize,
'retries' => $this->retries,
'timeout' => $this->timeout->s,
'retries' => $this->retries,
'timeout' => $this->timeout->s,
'asObject' => $this->asObject,
];
}
Expand All @@ -99,11 +99,11 @@ public static function getBaseUri() : string
public function toArray()
{
return [
'apiKey' => $this->apiKey,
'baseUrl' => $this->baseUrl,
'apiKey' => $this->apiKey,
'baseUrl' => $this->baseUrl,
'pageSize' => $this->pageSize,
'retries' => $this->retries,
'timeout' => $this->timeout,
'retries' => $this->retries,
'timeout' => $this->timeout,
'asObject' => $this->asObject,
];
}
Expand Down

0 comments on commit ae1e827

Please sign in to comment.