Skip to content

Commit e719634

Browse files
author
HorstOeko
committed
Fixed issues on Codestyle/Codeformatting
1 parent 23dcbda commit e719634

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

src/OrderDocumentPdfBuilderAbstract.php

+13-13
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ abstract class OrderDocumentPdfBuilderAbstract
4646
/**
4747
* Constructor
4848
*
49-
* @param string $pdfData
49+
* @param string $pdfData
5050
* The full filename or a string containing the binary pdf data. This
5151
* is the original PDF (e.g. created by a ERP system)
5252
*/
@@ -252,18 +252,18 @@ private function extractOrderInformations(): array
252252
$docTypeCode = $docTypeXpath->item(0)->nodeValue;
253253

254254
switch ($docTypeCode) {
255-
case OrderDocumentTypes::ORDER:
256-
$docTypeName = 'Order';
257-
break;
258-
case OrderDocumentTypes::ORDER_CHANGE:
259-
$docTypeName = 'Order Change';
260-
break;
261-
case OrderDocumentTypes::ORDER_RESPONSE:
262-
$docTypeName = 'Order Response';
263-
break;
264-
default:
265-
$docTypeName = 'Order';
266-
break;
255+
case OrderDocumentTypes::ORDER:
256+
$docTypeName = 'Order';
257+
break;
258+
case OrderDocumentTypes::ORDER_CHANGE:
259+
$docTypeName = 'Order Change';
260+
break;
261+
case OrderDocumentTypes::ORDER_RESPONSE:
262+
$docTypeName = 'Order Response';
263+
break;
264+
default:
265+
$docTypeName = 'Order';
266+
break;
267267
}
268268

269269
$orderInformation = array(

src/OrderObjectHelper.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ public function getRateType(?float $rateValue = null): ?object
14151415
/**
14161416
* Get Allowance Charge ReasonCode type instance
14171417
*
1418-
* @param string|null $reason
1418+
* @param string|null $reason
14191419
* @return object|null
14201420
*/
14211421
public function getAllowanceChargeReasonCodeType(?string $reason): ?object
@@ -1430,7 +1430,7 @@ public function getAllowanceChargeReasonCodeType(?string $reason): ?object
14301430
/**
14311431
* Get contact type code type instance
14321432
*
1433-
* @param string|null $reason
1433+
* @param string|null $reason
14341434
* @return object|null
14351435
*/
14361436
public function getContactTypeCodeType(?string $value): ?object
@@ -1445,7 +1445,7 @@ public function getContactTypeCodeType(?string $value): ?object
14451445
/**
14461446
* Get delivery terms code type instance
14471447
*
1448-
* @param string|null $reason
1448+
* @param string|null $reason
14491449
* @return object|null
14501450
*/
14511451
public function getDeliveryTermsCodeType(?string $value): ?object
@@ -1460,7 +1460,7 @@ public function getDeliveryTermsCodeType(?string $value): ?object
14601460
/**
14611461
* Get delivery terms function code type instance
14621462
*
1463-
* @param string|null $reason
1463+
* @param string|null $reason
14641464
* @return object|null
14651465
*/
14661466
public function getDeliveryTermsFunctionCodeType(?string $value): ?object
@@ -1475,7 +1475,7 @@ public function getDeliveryTermsFunctionCodeType(?string $value): ?object
14751475
/**
14761476
* Get line status code type instance
14771477
*
1478-
* @param string|null $reason
1478+
* @param string|null $reason
14791479
* @return object|null
14801480
*/
14811481
public function getLineStatusCodeType(?string $value): ?object
@@ -1490,7 +1490,7 @@ public function getLineStatusCodeType(?string $value): ?object
14901490
/**
14911491
* Get package type code type instance
14921492
*
1493-
* @param string|null $reason
1493+
* @param string|null $reason
14941494
* @return object|null
14951495
*/
14961496
public function getPackageTypeCodeType(?string $value): ?object
@@ -1505,7 +1505,7 @@ public function getPackageTypeCodeType(?string $value): ?object
15051505
/**
15061506
* Get payment means code type instance
15071507
*
1508-
* @param string|null $reason
1508+
* @param string|null $reason
15091509
* @return object|null
15101510
*/
15111511
public function getPaymentMeansCodeType(?string $value): ?object
@@ -1520,7 +1520,7 @@ public function getPaymentMeansCodeType(?string $value): ?object
15201520
/**
15211521
* Get reference code type instance
15221522
*
1523-
* @param string|null $reason
1523+
* @param string|null $reason
15241524
* @return object|null
15251525
*/
15261526
public function getReferenceCodeType(?string $value): ?object

src/OrderProfileResolver.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class OrderProfileResolver
2929
/**
3030
* Resolve profile id and profile definition by the content of $xmlContent
3131
*
32-
* @param string $xmlContent
32+
* @param string $xmlContent
3333
* @return array
3434
* @throws Exception
3535
*/
@@ -58,7 +58,7 @@ public static function resolve(string $xmlContent): array
5858
/**
5959
* Resolve profile id by the content of $xmlContent
6060
*
61-
* @param string $xmlContent
61+
* @param string $xmlContent
6262
* @return int
6363
* @throws Exception
6464
*/
@@ -70,7 +70,7 @@ public static function resolveProfileId(string $xmlContent): int
7070
/**
7171
* Resolve profile definition by the content of $xmlContent
7272
*
73-
* @param string $xmlContent
73+
* @param string $xmlContent
7474
* @return array
7575
* @throws Exception
7676
*/
@@ -82,10 +82,10 @@ public static function resolveProfileDef(string $xmlContent): array
8282
/**
8383
* Resolve profile id and profile definition by it's id
8484
*
85-
* @param integer $profileId
85+
* @param integer $profileId
8686
* @return array
8787
* @throws Exception
88-
*/
88+
*/
8989
public static function resolveById(int $profileId): array
9090
{
9191
if (!isset(OrderProfiles::PROFILEDEF[$profileId])) {
@@ -98,7 +98,7 @@ public static function resolveById(int $profileId): array
9898
/**
9999
* Resolve profile profile definition by it's id
100100
*
101-
* @param int $profileId
101+
* @param int $profileId
102102
* @return array
103103
* @throws Exception
104104
*/

0 commit comments

Comments
 (0)