diff --git a/bin/generate-docs.php b/bin/generate-docs.php index 7dca580f..cd58fa7d 100644 --- a/bin/generate-docs.php +++ b/bin/generate-docs.php @@ -42,7 +42,7 @@ public function createInDirectory($path): void { ); foreach ($namespaces_funcs as $ns => $funcs) { - $file = $path.'/'.C\lastx(Str\split_args_switched($ns, "\\")).'.md'; + $file = $path.'/'.C\lastx(Str\split($ns, "\\")).'.md'; file_put_contents( $file, $this->getMarkdownForNamespace($ns, $funcs), @@ -57,7 +57,7 @@ public function createInDirectory($path): void { $ns ==> sprintf( " - [%s](%s)", $ns, - C\lastx(Str\split_args_switched($ns, "\\")).'.md', + C\lastx(Str\split($ns, "\\")).'.md', ), ) |>Str\join_args_switched($$, "\n") @@ -122,7 +122,7 @@ private function renderSignature(ScannedFunction $f): string { if ( C\every( - Str\split_args_switched($out, "\n"), + Str\split($out, "\n"), $s ==> Str\length($s) < self::TARGET_LINE_LENGTH, ) ) { @@ -251,7 +251,7 @@ private function renderDocComment(ScannedFunction $f): ?string { |>Str\strip_prefix($$, '/**') |>Str\strip_suffix($$, '*/') |>Str\trim($$) - |>Str\split_args_switched($$, "\n") + |>Str\split($$, "\n") |>Vec\map($$, $s ==> Str\trim(Str\strip_prefix(Str\trim($s), '*'))) |>Str\join_args_switched($$, "\n") |>$$."\n"; diff --git a/tests/str/StrDivideTest.php b/tests/str/StrDivideTest.php index 37a60084..b5a2b1b4 100644 --- a/tests/str/StrDivideTest.php +++ b/tests/str/StrDivideTest.php @@ -118,7 +118,7 @@ public function testSplit( ?int $limit, vec $expected, ): void { - expect(Str\split_args_switched($string, $delimiter, $limit)) + expect(Str\split($string, $delimiter, $limit)) ->toBeSame($expected); }