Skip to content

Commit 702f6fc

Browse files
committed
Remove default value in Model definition
1 parent aa390be commit 702f6fc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Definitions/DefinitionGenerator.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,4 @@ private function convertPhpTypeToSwaggerType(string $phpType): array
449449
'nullable' => true,
450450
];
451451
}
452-
453-
private function removeQuotesIfBothEnds(string $string)
454-
{
455-
if (strlen($string) >= 2 && $string[0] === "'" && $string[strlen($string) - 1] === "'") {
456-
return substr($string, 1, -1);
457-
}
458-
return $string;
459-
}
460452
}

0 commit comments

Comments
 (0)