From ae1e827af47e8b5fb66682d2284bce04158f0e59 Mon Sep 17 00:00:00 2001 From: qschmick Date: Wed, 29 Dec 2021 18:15:17 +0000 Subject: [PATCH] Fix styling --- src/ShipEngine.php | 4 ++-- src/ShipEngineConfig.php | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/ShipEngine.php b/src/ShipEngine.php index 12cf66b..4db6e7c 100755 --- a/src/ShipEngine.php +++ b/src/ShipEngine.php @@ -342,7 +342,6 @@ public function getShipmentById( } return $response; - } /** @@ -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; } } diff --git a/src/ShipEngineConfig.php b/src/ShipEngineConfig.php index 027014b..21451d4 100644 --- a/src/ShipEngineConfig.php +++ b/src/ShipEngineConfig.php @@ -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, ]; } @@ -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, ]; }