Skip to content

Commit 331d6c1

Browse files
committed
Fix all paths
1 parent a245b42 commit 331d6c1

File tree

16 files changed

+21
-21
lines changed

16 files changed

+21
-21
lines changed

src/SDK/Language/Android.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public function getFiles(): array
2626
],
2727
[
2828
'scope' => 'method',
29-
'destination' => 'docs/examples/kotlin/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
29+
'destination' => 'docs/examples/kotlin/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
3030
'template' => '/android/docs/kotlin/example.md.twig',
3131
],
3232
[
3333
'scope' => 'method',
34-
'destination' => 'docs/examples/java/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
34+
'destination' => 'docs/examples/java/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
3535
'template' => '/android/docs/java/example.md.twig',
3636
],
3737
[

src/SDK/Language/Apple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getFiles(): array
3737
],
3838
[
3939
'scope' => 'method',
40-
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
40+
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
4141
'template' => 'swift/docs/example.md.twig',
4242
],
4343
[

src/SDK/Language/CLI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function getFiles(): array
163163
],
164164
[
165165
'scope' => 'method',
166-
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
166+
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
167167
'template' => 'cli/docs/example.md.twig',
168168
],
169169
[
@@ -313,7 +313,7 @@ public function getFiles(): array
313313
],
314314
[
315315
'scope' => 'service',
316-
'destination' => '/lib/commands/{{service.name | caseDash}}.js',
316+
'destination' => '/lib/commands/{{service.name | caseKebab}}.js',
317317
'template' => 'cli/lib/commands/command.js.twig',
318318
],
319319
[

src/SDK/Language/Dart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public function getFiles(): array
424424
],
425425
[
426426
'scope' => 'method',
427-
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
427+
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
428428
'template' => 'dart/docs/example.md.twig',
429429
],
430430
[

src/SDK/Language/DotNet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public function getFiles(): array
332332
],
333333
[
334334
'scope' => 'method',
335-
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
335+
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
336336
'template' => 'dotnet/docs/example.md.twig',
337337
],
338338
[

src/SDK/Language/Flutter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public function getFiles(): array
332332
],
333333
[
334334
'scope' => 'method',
335-
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
335+
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
336336
'template' => 'flutter/docs/example.md.twig',
337337
],
338338
[

src/SDK/Language/Go.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ public function getFiles(): array
115115
],
116116
[
117117
'scope' => 'service',
118-
'destination' => '{{ service.name | caseLower}}/{{service.name | caseDash}}.go',
118+
'destination' => '{{ service.name | caseLower}}/{{service.name | caseKebab}}.go',
119119
'template' => 'go/services/service.go.twig',
120120
],
121121
[
122122
'scope' => 'method',
123-
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
123+
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
124124
'template' => 'go/docs/example.md.twig',
125125
],
126126
[

src/SDK/Language/GraphQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function getFiles(): array
173173
return [
174174
[
175175
'scope' => 'method',
176-
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
176+
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
177177
'template' => '/graphql/docs/example.md.twig',
178178
'exclude' => [
179179
'services' => [['name' => 'graphql']],

src/SDK/Language/JS.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,6 @@ public function getFilters(): array
210210
new TwigFilter('caseEnumKey', function (string $value) {
211211
return $this->toPascalCase($value);
212212
}),
213-
new TwigFilter('caseKebab', function ($value) {
214-
return strtolower(preg_replace('/(?<!^)([A-Z][a-z]|(?<=[a-z])[^a-z\s]|(?<=[A-Z])[0-9_])/', '-$1', $value));
215-
})
216213
];
217214
}
218215
}

src/SDK/Language/Kotlin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ public function getFiles(): array
266266
],
267267
[
268268
'scope' => 'method',
269-
'destination' => 'docs/examples/kotlin/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
269+
'destination' => 'docs/examples/kotlin/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
270270
'template' => '/kotlin/docs/kotlin/example.md.twig',
271271
],
272272
[
273273
'scope' => 'method',
274-
'destination' => 'docs/examples/java/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
274+
'destination' => 'docs/examples/java/{{service.name | caseLower}}/{{method.name | caseKebab}}.md',
275275
'template' => '/kotlin/docs/java/example.md.twig',
276276
],
277277
[

0 commit comments

Comments
 (0)