Skip to content

Commit fc1cac7

Browse files
### 0.0.7
- Fix for @method doc generation - skip description in @method doc
1 parent 811fac7 commit fc1cac7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@
2626
- Minor fix for default documentation file extensions
2727

2828
### 0.0.6
29-
- Minor fix to remove debug logs
29+
- Minor fix to remove debug logs
30+
31+
### 0.0.7
32+
- Fix for @method doc generation
33+
- skip description in @method doc

src/support/forge/api/Import.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,18 +234,18 @@ protected function generateDocs($operation, $api = [], $method = '') {
234234
*/
235235
protected function generateMethod($apiName, $operation = [], $api = []) {
236236

237-
$method = [' * @method static array'];
237+
$method = [' * @method', 'array'];
238238

239239
$data = "";
240240
$request = $api['request'];
241-
$description = preg_replace('/[\r\n]/', '', $request['description']);
241+
$description = preg_replace('/[\r\n]/', ' ', $request['description']);
242242
$params = $operation['parameters'];
243243
if (!empty($params)) {
244244
$data = 'array $parameters';
245245
}
246246

247247
$method[] = "$apiName($data)";
248-
$method[] = $description;
248+
// $method[] = $description;
249249

250250
return implode("\t", $method);
251251

0 commit comments

Comments
 (0)