Skip to content

Commit 9af1d95

Browse files
committed
Camel case
1 parent c34db9c commit 9af1d95

File tree

2,561 files changed

+260861
-270802
lines changed

Some content is hidden

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

2,561 files changed

+260861
-270802
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: 1523 additions & 9434 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/App.php

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
6161

6262
if ($value === null) {
6363
$missingFields[] = 'node_id';
64-
goto after_node_id;
64+
goto after_nodeId;
6565
}
6666

67-
$properties['node_id'] = $value;
67+
$properties['nodeId'] = $value;
6868

69-
after_node_id:
69+
after_nodeId:
7070

7171
$value = $payload['owner'] ?? null;
7272

@@ -105,45 +105,45 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
105105

106106
if ($value === null) {
107107
$missingFields[] = 'external_url';
108-
goto after_external_url;
108+
goto after_externalUrl;
109109
}
110110

111-
$properties['external_url'] = $value;
111+
$properties['externalUrl'] = $value;
112112

113-
after_external_url:
113+
after_externalUrl:
114114

115115
$value = $payload['html_url'] ?? null;
116116

117117
if ($value === null) {
118118
$missingFields[] = 'html_url';
119-
goto after_html_url;
119+
goto after_htmlUrl;
120120
}
121121

122-
$properties['html_url'] = $value;
122+
$properties['htmlUrl'] = $value;
123123

124-
after_html_url:
124+
after_htmlUrl:
125125

126126
$value = $payload['created_at'] ?? null;
127127

128128
if ($value === null) {
129129
$missingFields[] = 'created_at';
130-
goto after_created_at;
130+
goto after_createdAt;
131131
}
132132

133-
$properties['created_at'] = $value;
133+
$properties['createdAt'] = $value;
134134

135-
after_created_at:
135+
after_createdAt:
136136

137137
$value = $payload['updated_at'] ?? null;
138138

139139
if ($value === null) {
140140
$missingFields[] = 'updated_at';
141-
goto after_updated_at;
141+
goto after_updatedAt;
142142
}
143143

144-
$properties['updated_at'] = $value;
144+
$properties['updatedAt'] = $value;
145145

146-
after_updated_at:
146+
after_updatedAt:
147147

148148
$value = $payload['permissions'] ?? null;
149149

@@ -179,46 +179,46 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
179179
$value = $payload['installations_count'] ?? null;
180180

181181
if ($value === null) {
182-
$properties['installations_count'] = null;
183-
goto after_installations_count;
182+
$properties['installationsCount'] = null;
183+
goto after_installationsCount;
184184
}
185185

186-
$properties['installations_count'] = $value;
186+
$properties['installationsCount'] = $value;
187187

188-
after_installations_count:
188+
after_installationsCount:
189189

190190
$value = $payload['client_id'] ?? null;
191191

192192
if ($value === null) {
193-
$properties['client_id'] = null;
194-
goto after_client_id;
193+
$properties['clientId'] = null;
194+
goto after_clientId;
195195
}
196196

197-
$properties['client_id'] = $value;
197+
$properties['clientId'] = $value;
198198

199-
after_client_id:
199+
after_clientId:
200200

201201
$value = $payload['client_secret'] ?? null;
202202

203203
if ($value === null) {
204-
$properties['client_secret'] = null;
205-
goto after_client_secret;
204+
$properties['clientSecret'] = null;
205+
goto after_clientSecret;
206206
}
207207

208-
$properties['client_secret'] = $value;
208+
$properties['clientSecret'] = $value;
209209

210-
after_client_secret:
210+
after_clientSecret:
211211

212212
$value = $payload['webhook_secret'] ?? null;
213213

214214
if ($value === null) {
215-
$properties['webhook_secret'] = null;
216-
goto after_webhook_secret;
215+
$properties['webhookSecret'] = null;
216+
goto after_webhookSecret;
217217
}
218218

219-
$properties['webhook_secret'] = $value;
219+
$properties['webhookSecret'] = $value;
220220

221-
after_webhook_secret:
221+
after_webhookSecret:
222222

223223
$value = $payload['pem'] ?? null;
224224

@@ -445,8 +445,8 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
445445
after_slug: $result['slug'] = $slug;
446446

447447

448-
$node_id = $object->node_id;
449-
after_node_id: $result['node_id'] = $node_id;
448+
$nodeId = $object->nodeId;
449+
after_nodeId: $result['node_id'] = $nodeId;
450450

451451

452452
$owner = $object->owner;
@@ -469,20 +469,20 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
469469
after_description: $result['description'] = $description;
470470

471471

472-
$external_url = $object->external_url;
473-
after_external_url: $result['external_url'] = $external_url;
472+
$externalUrl = $object->externalUrl;
473+
after_externalUrl: $result['external_url'] = $externalUrl;
474474

475475

476-
$html_url = $object->html_url;
477-
after_html_url: $result['html_url'] = $html_url;
476+
$htmlUrl = $object->htmlUrl;
477+
after_htmlUrl: $result['html_url'] = $htmlUrl;
478478

479479

480-
$created_at = $object->created_at;
481-
after_created_at: $result['created_at'] = $created_at;
480+
$createdAt = $object->createdAt;
481+
after_createdAt: $result['created_at'] = $createdAt;
482482

483483

484-
$updated_at = $object->updated_at;
485-
after_updated_at: $result['updated_at'] = $updated_at;
484+
$updatedAt = $object->updatedAt;
485+
after_updatedAt: $result['updated_at'] = $updatedAt;
486486

487487

488488
$permissions = $object->permissions;
@@ -502,36 +502,36 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
502502
after_events: $result['events'] = $events;
503503

504504

505-
$installations_count = $object->installations_count;
505+
$installationsCount = $object->installationsCount;
506506

507-
if ($installations_count === null) {
508-
goto after_installations_count;
507+
if ($installationsCount === null) {
508+
goto after_installationsCount;
509509
}
510-
after_installations_count: $result['installations_count'] = $installations_count;
510+
after_installationsCount: $result['installations_count'] = $installationsCount;
511511

512512

513-
$client_id = $object->client_id;
513+
$clientId = $object->clientId;
514514

515-
if ($client_id === null) {
516-
goto after_client_id;
515+
if ($clientId === null) {
516+
goto after_clientId;
517517
}
518-
after_client_id: $result['client_id'] = $client_id;
518+
after_clientId: $result['client_id'] = $clientId;
519519

520520

521-
$client_secret = $object->client_secret;
521+
$clientSecret = $object->clientSecret;
522522

523-
if ($client_secret === null) {
524-
goto after_client_secret;
523+
if ($clientSecret === null) {
524+
goto after_clientSecret;
525525
}
526-
after_client_secret: $result['client_secret'] = $client_secret;
526+
after_clientSecret: $result['client_secret'] = $clientSecret;
527527

528528

529-
$webhook_secret = $object->webhook_secret;
529+
$webhookSecret = $object->webhookSecret;
530530

531-
if ($webhook_secret === null) {
532-
goto after_webhook_secret;
531+
if ($webhookSecret === null) {
532+
goto after_webhookSecret;
533533
}
534-
after_webhook_secret: $result['webhook_secret'] = $webhook_secret;
534+
after_webhookSecret: $result['webhook_secret'] = $webhookSecret;
535535

536536

537537
$pem = $object->pem;

src/Hydrator/Operation/App/Hook/Config.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
4848
$value = $payload['content_type'] ?? null;
4949

5050
if ($value === null) {
51-
$properties['content_type'] = null;
52-
goto after_content_type;
51+
$properties['contentType'] = null;
52+
goto after_contentType;
5353
}
5454

55-
$properties['content_type'] = $value;
55+
$properties['contentType'] = $value;
5656

57-
after_content_type:
57+
after_contentType:
5858

5959
$value = $payload['secret'] ?? null;
6060

@@ -70,13 +70,13 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
7070
$value = $payload['insecure_ssl'] ?? null;
7171

7272
if ($value === null) {
73-
$properties['insecure_ssl'] = null;
74-
goto after_insecure_ssl;
73+
$properties['insecureSsl'] = null;
74+
goto after_insecureSsl;
7575
}
7676

77-
$properties['insecure_ssl'] = $value;
77+
$properties['insecureSsl'] = $value;
7878

79-
after_insecure_ssl:
79+
after_insecureSsl:
8080

8181
} catch (\Throwable $exception) {
8282
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookConfig', $exception, stack: $this->hydrationStack);
@@ -211,12 +211,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
211211
after_url: $result['url'] = $url;
212212

213213

214-
$content_type = $object->content_type;
214+
$contentType = $object->contentType;
215215

216-
if ($content_type === null) {
217-
goto after_content_type;
216+
if ($contentType === null) {
217+
goto after_contentType;
218218
}
219-
after_content_type: $result['content_type'] = $content_type;
219+
after_contentType: $result['content_type'] = $contentType;
220220

221221

222222
$secret = $object->secret;
@@ -227,12 +227,12 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
227227
after_secret: $result['secret'] = $secret;
228228

229229

230-
$insecure_ssl = $object->insecure_ssl;
230+
$insecureSsl = $object->insecureSsl;
231231

232-
if ($insecure_ssl === null) {
233-
goto after_insecure_ssl;
232+
if ($insecureSsl === null) {
233+
goto after_insecureSsl;
234234
}
235-
after_insecure_ssl: $result['insecure_ssl'] = $insecure_ssl;
235+
after_insecureSsl: $result['insecure_ssl'] = $insecureSsl;
236236

237237

238238
return $result;

0 commit comments

Comments
 (0)