Skip to content

Commit 77d902b

Browse files
committed
Camel case
1 parent e88fb1a commit 77d902b

File tree

1,908 files changed

+191917
-209208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,908 files changed

+191917
-209208
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"require": {
1212
"php": "^8.2",
13-
"api-clients/contracts": "dev-main",
13+
"api-clients/contracts": "^0.1",
1414
"cebe/php-openapi": "dev-openapi-31 as 1.6.0",
1515
"eventsauce/object-hydrator": "^1.1",
1616
"league/openapi-psr7-validator": "^0.18",

src/Client.php

Lines changed: 918 additions & 6802 deletions
Large diffs are not rendered by default.

src/ClientInterface.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

src/Hydrator/Operation/Admin/Hooks.php

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,24 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Gl
113113
$value = $payload['updated_at'] ?? null;
114114

115115
if ($value === null) {
116-
$properties['updated_at'] = null;
117-
goto after_updated_at;
116+
$properties['updatedAt'] = null;
117+
goto after_updatedAt;
118118
}
119119

120-
$properties['updated_at'] = $value;
120+
$properties['updatedAt'] = $value;
121121

122-
after_updated_at:
122+
after_updatedAt:
123123

124124
$value = $payload['created_at'] ?? null;
125125

126126
if ($value === null) {
127-
$properties['created_at'] = null;
128-
goto after_created_at;
127+
$properties['createdAt'] = null;
128+
goto after_createdAt;
129129
}
130130

131-
$properties['created_at'] = $value;
131+
$properties['createdAt'] = $value;
132132

133-
after_created_at:
133+
after_createdAt:
134134

135135
$value = $payload['url'] ?? null;
136136

@@ -146,13 +146,13 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Gl
146146
$value = $payload['ping_url'] ?? null;
147147

148148
if ($value === null) {
149-
$properties['ping_url'] = null;
150-
goto after_ping_url;
149+
$properties['pingUrl'] = null;
150+
goto after_pingUrl;
151151
}
152152

153-
$properties['ping_url'] = $value;
153+
$properties['pingUrl'] = $value;
154154

155-
after_ping_url:
155+
after_pingUrl:
156156

157157
} catch (\Throwable $exception) {
158158
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\GlobalHook', $exception, stack: $this->hydrationStack);
@@ -189,24 +189,24 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Gl
189189
$value = $payload['content_type'] ?? null;
190190

191191
if ($value === null) {
192-
$properties['content_type'] = null;
193-
goto after_content_type;
192+
$properties['contentType'] = null;
193+
goto after_contentType;
194194
}
195195

196-
$properties['content_type'] = $value;
196+
$properties['contentType'] = $value;
197197

198-
after_content_type:
198+
after_contentType:
199199

200200
$value = $payload['insecure_ssl'] ?? null;
201201

202202
if ($value === null) {
203-
$properties['insecure_ssl'] = null;
204-
goto after_insecure_ssl;
203+
$properties['insecureSsl'] = null;
204+
goto after_insecureSsl;
205205
}
206206

207-
$properties['insecure_ssl'] = $value;
207+
$properties['insecureSsl'] = $value;
208208

209-
after_insecure_ssl:
209+
after_insecureSsl:
210210

211211
$value = $payload['secret'] ?? null;
212212

@@ -402,20 +402,20 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
402402
after_config: $result['config'] = $config;
403403

404404

405-
$updated_at = $object->updated_at;
405+
$updatedAt = $object->updatedAt;
406406

407-
if ($updated_at === null) {
408-
goto after_updated_at;
407+
if ($updatedAt === null) {
408+
goto after_updatedAt;
409409
}
410-
after_updated_at: $result['updated_at'] = $updated_at;
410+
after_updatedAt: $result['updated_at'] = $updatedAt;
411411

412412

413-
$created_at = $object->created_at;
413+
$createdAt = $object->createdAt;
414414

415-
if ($created_at === null) {
416-
goto after_created_at;
415+
if ($createdAt === null) {
416+
goto after_createdAt;
417417
}
418-
after_created_at: $result['created_at'] = $created_at;
418+
after_createdAt: $result['created_at'] = $createdAt;
419419

420420

421421
$url = $object->url;
@@ -426,12 +426,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
426426
after_url: $result['url'] = $url;
427427

428428

429-
$ping_url = $object->ping_url;
429+
$pingUrl = $object->pingUrl;
430430

431-
if ($ping_url === null) {
432-
goto after_ping_url;
431+
if ($pingUrl === null) {
432+
goto after_pingUrl;
433433
}
434-
after_ping_url: $result['ping_url'] = $ping_url;
434+
after_pingUrl: $result['ping_url'] = $pingUrl;
435435

436436

437437
return $result;
@@ -451,20 +451,20 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
451451
after_url: $result['url'] = $url;
452452

453453

454-
$content_type = $object->content_type;
454+
$contentType = $object->contentType;
455455

456-
if ($content_type === null) {
457-
goto after_content_type;
456+
if ($contentType === null) {
457+
goto after_contentType;
458458
}
459-
after_content_type: $result['content_type'] = $content_type;
459+
after_contentType: $result['content_type'] = $contentType;
460460

461461

462-
$insecure_ssl = $object->insecure_ssl;
462+
$insecureSsl = $object->insecureSsl;
463463

464-
if ($insecure_ssl === null) {
465-
goto after_insecure_ssl;
464+
if ($insecureSsl === null) {
465+
goto after_insecureSsl;
466466
}
467-
after_insecure_ssl: $result['insecure_ssl'] = $insecure_ssl;
467+
after_insecureSsl: $result['insecure_ssl'] = $insecureSsl;
468468

469469

470470
$secret = $object->secret;

0 commit comments

Comments
 (0)