From 60cf3365f1093e96b6023d42c31bb65a69f1a24c Mon Sep 17 00:00:00 2001 From: cedricziel Date: Mon, 29 Jul 2024 20:39:59 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- .regen-docs.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.regen-docs.php b/.regen-docs.php index b537b0b..c27a69a 100644 --- a/.regen-docs.php +++ b/.regen-docs.php @@ -6,7 +6,6 @@ function underscoreToCamelCase($string, $capitalizeFirstCharacter = false) { - $str = str_replace(' ', '', ucwords(str_replace('_', ' ', $string))); if (!$capitalizeFirstCharacter) { @@ -27,16 +26,16 @@ function underscoreToCamelCase($string, $capitalizeFirstCharacter = false) foreach ($path as $httpMethod => $method) { $methodName = underscoreToCamelCase($method['operationId']); - $doc .= '### ' . $method['operationId'] . ' - ' . "$httpMethod $pathName\n"; + $doc .= '### '.$method['operationId'].' - '."$httpMethod $pathName\n"; $doc .= "\n"; $doc .= $method['description'] ?? ''; $doc .= "\n\n"; - $doc .= '```php' . "\n"; - $doc .= '$client = \\CedricZiel\\Baserow\\Client::create();' . "\n"; - $doc .= '$client->' . "{$methodName}();\n"; - $doc .= '```' . "\n"; + $doc .= '```php'."\n"; + $doc .= '$client = \\CedricZiel\\Baserow\\Client::create();'."\n"; + $doc .= '$client->'."{$methodName}();\n"; + $doc .= '```'."\n"; $doc .= "\n"; - echo $method['operationId'] . "\n"; + echo $method['operationId']."\n"; } }