Skip to content

Commit 50ba397

Browse files
authored
fix(v1): if methods from wsdl are too long, the code generation generates broken comments because of line length set to 80 (#18)
1 parent d52728d commit 50ba397

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Code/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function createNewClient()
5757
$docBlock = DocBlockGenerator::fromArray([
5858
'shortDescription' => $this->clientClassName.' Client',
5959
'tags' => $methodTags,
60-
]);
60+
])->setWordWrap(false);
6161
$constructorDocBlock = DocBlockGenerator::fromArray([
6262
'shortDescription' => $className.' constructor',
6363
]);
@@ -68,7 +68,7 @@ public function createNewClient()
6868
new ParamTag('parameters', 'mixed'),
6969
new ReturnTag('\CodeDredd\Soap\Client\Response|mixed'),
7070
],
71-
]);
71+
])->setWordWrap(false);
7272
$callMethodParameters = [
7373
'method',
7474
'parameters',

src/Code/ClientContract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function createNewClientContract()
4343
$docBlock = DocBlockGenerator::fromArray([
4444
'shortDescription' => $this->clientClassName.' Contract',
4545
'tags' => $methodTags,
46-
]);
46+
])->setWordWrap(false);
4747

4848
return $this->codeClass->setName($className)
4949
->setDocBlock($docBlock);

src/Code/Validation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function createNewValidation(Operation $action)
7070
$docBlock = DocBlockGenerator::fromArray([
7171
'shortDescription' => $this->actionName.' Validation',
7272
'longDescription' => $action->getDescription(),
73-
]);
73+
])->setWordWrap(false);
7474
$this->codeClass->setName($className)
7575
->setNamespaceName($this->codeNamespace.'\\Validations\\'.$this->clientClassName)
7676
->setDocBlock($docBlock)

0 commit comments

Comments
 (0)