Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit ec7b9b6

Browse files
committed
fix up manual section of cli lookup
1 parent e32d354 commit ec7b9b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/examples/codegen/lookup-path.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ private function getRouter(
2626

2727
private function prettifyControllerName(string $controller): string {
2828
/* BEGIN MANUAL SECTION MySiteRouterCLILookup::prettifyControllerName */
29-
$parts = explode('\\', $controller);
29+
$parts = \explode('\\', $controller);
3030
invariant(
31-
count($parts) > 3,
31+
\count($parts) > 3,
3232
'Too few NS parts found; expected everything to be in example NS',
3333
);
3434
$first = $parts[0];
35-
$last = array_pop(&$parts);
35+
$last = \array_pop(&$parts);
3636
return '\\'.$first.'\\...\\'.$last;
3737
/* END MANUAL SECTION */
3838
}

0 commit comments

Comments
 (0)