Skip to content

Commit 4880238

Browse files
committed
Fix code style in function map generator
1 parent de4465d commit 4880238

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

scripts/generate-functionmap.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111

1212
class FunctionMapGenerator
1313
{
14-
public function createFunctionMap(string $filename): void {
14+
public function createFunctionMap(string $filename): void
15+
{
1516
$this->writeFunctionMap($filename, $this->getFunctionMap());
1617
}
1718

18-
public function getFunctionMap(): array {
19+
private function getFunctionMap(): array
20+
{
1921
$classes = array_filter(get_declared_classes(), $this->filterItems(...));
2022
$interfaces = array_filter(get_declared_interfaces(), $this->filterItems(...));
2123
$functions = array_filter(get_defined_functions()['internal'], $this->filterItems(...));
@@ -107,7 +109,8 @@ private function filterItems(string $name): bool {
107109
return false;
108110
}
109111

110-
private function getFunctionMapEntry(ReflectionFunctionAbstract $function): array {
112+
private function getFunctionMapEntry(ReflectionFunctionAbstract $function): array
113+
{
111114
$returnType = match(true) {
112115
$function->hasReturnType() => (string) $function->getReturnType(),
113116
$function->hasTentativeReturnType() => (string) $function->getTentativeReturnType(),
@@ -128,7 +131,8 @@ private function getFunctionMapEntry(ReflectionFunctionAbstract $function): arra
128131
return $functionMapEntry;
129132
}
130133

131-
private function removeDoubleBackslash(string $string): string {
134+
private function removeDoubleBackslash(string $string): string
135+
{
132136
return str_replace('\\\\', '\\', $string);
133137
}
134138
}

0 commit comments

Comments
 (0)