Skip to content

Commit

Permalink
Fixed issues on Codestyle/Codeformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Jan 7, 2024
1 parent 23dcbda commit e719634
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
26 changes: 13 additions & 13 deletions src/OrderDocumentPdfBuilderAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ abstract class OrderDocumentPdfBuilderAbstract
/**
* Constructor
*
* @param string $pdfData
* @param string $pdfData
* The full filename or a string containing the binary pdf data. This
* is the original PDF (e.g. created by a ERP system)
*/
Expand Down Expand Up @@ -252,18 +252,18 @@ private function extractOrderInformations(): array
$docTypeCode = $docTypeXpath->item(0)->nodeValue;

switch ($docTypeCode) {
case OrderDocumentTypes::ORDER:
$docTypeName = 'Order';
break;
case OrderDocumentTypes::ORDER_CHANGE:
$docTypeName = 'Order Change';
break;
case OrderDocumentTypes::ORDER_RESPONSE:
$docTypeName = 'Order Response';
break;
default:
$docTypeName = 'Order';
break;
case OrderDocumentTypes::ORDER:
$docTypeName = 'Order';
break;
case OrderDocumentTypes::ORDER_CHANGE:
$docTypeName = 'Order Change';
break;
case OrderDocumentTypes::ORDER_RESPONSE:
$docTypeName = 'Order Response';
break;
default:
$docTypeName = 'Order';
break;
}

$orderInformation = array(
Expand Down
16 changes: 8 additions & 8 deletions src/OrderObjectHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,7 @@ public function getRateType(?float $rateValue = null): ?object
/**
* Get Allowance Charge ReasonCode type instance
*
* @param string|null $reason
* @param string|null $reason
* @return object|null
*/
public function getAllowanceChargeReasonCodeType(?string $reason): ?object
Expand All @@ -1430,7 +1430,7 @@ public function getAllowanceChargeReasonCodeType(?string $reason): ?object
/**
* Get contact type code type instance
*
* @param string|null $reason
* @param string|null $reason
* @return object|null
*/
public function getContactTypeCodeType(?string $value): ?object
Expand All @@ -1445,7 +1445,7 @@ public function getContactTypeCodeType(?string $value): ?object
/**
* Get delivery terms code type instance
*
* @param string|null $reason
* @param string|null $reason
* @return object|null
*/
public function getDeliveryTermsCodeType(?string $value): ?object
Expand All @@ -1460,7 +1460,7 @@ public function getDeliveryTermsCodeType(?string $value): ?object
/**
* Get delivery terms function code type instance
*
* @param string|null $reason
* @param string|null $reason
* @return object|null
*/
public function getDeliveryTermsFunctionCodeType(?string $value): ?object
Expand All @@ -1475,7 +1475,7 @@ public function getDeliveryTermsFunctionCodeType(?string $value): ?object
/**
* Get line status code type instance
*
* @param string|null $reason
* @param string|null $reason
* @return object|null
*/
public function getLineStatusCodeType(?string $value): ?object
Expand All @@ -1490,7 +1490,7 @@ public function getLineStatusCodeType(?string $value): ?object
/**
* Get package type code type instance
*
* @param string|null $reason
* @param string|null $reason
* @return object|null
*/
public function getPackageTypeCodeType(?string $value): ?object
Expand All @@ -1505,7 +1505,7 @@ public function getPackageTypeCodeType(?string $value): ?object
/**
* Get payment means code type instance
*
* @param string|null $reason
* @param string|null $reason
* @return object|null
*/
public function getPaymentMeansCodeType(?string $value): ?object
Expand All @@ -1520,7 +1520,7 @@ public function getPaymentMeansCodeType(?string $value): ?object
/**
* Get reference code type instance
*
* @param string|null $reason
* @param string|null $reason
* @return object|null
*/
public function getReferenceCodeType(?string $value): ?object
Expand Down
12 changes: 6 additions & 6 deletions src/OrderProfileResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class OrderProfileResolver
/**
* Resolve profile id and profile definition by the content of $xmlContent
*
* @param string $xmlContent
* @param string $xmlContent
* @return array
* @throws Exception
*/
Expand Down Expand Up @@ -58,7 +58,7 @@ public static function resolve(string $xmlContent): array
/**
* Resolve profile id by the content of $xmlContent
*
* @param string $xmlContent
* @param string $xmlContent
* @return int
* @throws Exception
*/
Expand All @@ -70,7 +70,7 @@ public static function resolveProfileId(string $xmlContent): int
/**
* Resolve profile definition by the content of $xmlContent
*
* @param string $xmlContent
* @param string $xmlContent
* @return array
* @throws Exception
*/
Expand All @@ -82,10 +82,10 @@ public static function resolveProfileDef(string $xmlContent): array
/**
* Resolve profile id and profile definition by it's id
*
* @param integer $profileId
* @param integer $profileId
* @return array
* @throws Exception
*/
*/
public static function resolveById(int $profileId): array
{
if (!isset(OrderProfiles::PROFILEDEF[$profileId])) {
Expand All @@ -98,7 +98,7 @@ public static function resolveById(int $profileId): array
/**
* Resolve profile profile definition by it's id
*
* @param int $profileId
* @param int $profileId
* @return array
* @throws Exception
*/
Expand Down

0 comments on commit e719634

Please sign in to comment.