Skip to content

Commit 5431393

Browse files
committed
tweak(generator): trim documentation from XSD to remove excessive spacing
1 parent e29f491 commit 5431393

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

src/Generation/XsdToAbstractEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private function writeElement(string &$buffer, \SimpleXMLElement $element): bool
209209
$phpDocText .= PHP_EOL;
210210
}
211211
$docValueParts = explode(':', $docValue, 2);
212-
$phpDocText .= $docValueParts[1];
212+
$phpDocText .= trim($docValueParts[1]);
213213
}
214214
}
215215
}

src/Models/Entities/Logisticinfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/**
88
* Logisticinfo PS-API type
9-
* @generated 2021-07-14
9+
* @generated 2021-08-18
1010
**/
1111
class Logisticinfo extends AbstractEntity
1212
{
@@ -25,7 +25,7 @@ class Logisticinfo extends AbstractEntity
2525
*/
2626
public ?string $gdsntradeitemdescription = null;
2727
/**
28-
* A short description of the product. Minimize abbreviations so that the description remains readable.
28+
* A short description of the product. Minimize abbreviations so that the description remains readable.
2929
* Logistic/Short productname
3030
*/
3131
public ?string $descriptionshort = null;

src/Models/Entities/Nutrientset.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/**
88
* Nutrientset PS-API type
9-
* @generated 2021-07-14
9+
* @generated 2021-08-18
1010
**/
1111
class Nutrientset extends AbstractEntity
1212
{
@@ -26,7 +26,7 @@ class Nutrientset extends AbstractEntity
2626
*/
2727
public ?string $informationprovidername = null;
2828
/**
29-
* Alternative text reference intake. Only fill in if reference text is different from "reference intake of an average adult (8400kJ/2000kcal)."
29+
* Alternative text reference intake. Only fill in if reference text is different from "reference intake of an average adult (8400kJ/2000kcal)."
3030
* Alternative text reference intake (when different from default)
3131
*/
3232
public ?string $dailyvalueintakereferencecomment = null;

src/Models/Entities/Productinfo.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,11 @@ class Productinfo extends AbstractEntity
9393
*/
9494
public ?Characteristicinfolist $characteristicinfolist = null;
9595
/**
96-
*
97-
* The IDDSI framework consists of a continuum of 8 levels (0 - 7), where drinks are measured from Levels 0 – 4, while foods are measured from Levels 3 – 7. The IDDSI Framework provides a common terminology to describe food textures and drink thickness.
96+
* The IDDSI framework consists of a continuum of 8 levels (0 - 7), where drinks are measured from Levels 0 – 4, while foods are measured from Levels 3 – 7. The IDDSI Framework provides a common terminology to describe food textures and drink thickness.
9897
*/
9998
public ?int $iddsiid = null;
10099
/**
101-
*
102-
* The IDDSI framework consists of a continuum of 8 levels (0 - 7), where drinks are measured from Levels 0 – 4, while foods are measured from Levels 3 – 7. The IDDSI Framework provides a common terminology to describe food textures and drink thickness.
100+
* The IDDSI framework consists of a continuum of 8 levels (0 - 7), where drinks are measured from Levels 0 – 4, while foods are measured from Levels 3 – 7. The IDDSI Framework provides a common terminology to describe food textures and drink thickness.
103101
*/
104102
public ?string $iddsiname = null;
105103
}

src/Models/Entities/Updateresult.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66

77
/**
88
* Updateresult PS-API type
9-
* @generated 2021-07-14
9+
* @generated 2021-08-18
1010
**/
1111
class Updateresult extends AbstractEntity
1212
{
1313
/**
14-
* 1
14+
* 1
1515
*/
1616
public bool $issucceeded;
1717
/**
18-
* 2
18+
* 2
1919
*/
2020
public int $productid;
2121
public ?string $productean = null;

0 commit comments

Comments
 (0)