Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricziel authored and github-actions[bot] committed Jul 29, 2024
1 parent f62b416 commit 60cf336
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .regen-docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

function underscoreToCamelCase($string, $capitalizeFirstCharacter = false)
{

$str = str_replace(' ', '', ucwords(str_replace('_', ' ', $string)));

if (!$capitalizeFirstCharacter) {
Expand All @@ -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";
}
}

Expand Down

0 comments on commit 60cf336

Please sign in to comment.