@@ -1145,7 +1145,7 @@ private function getNavItemType(string $dirName): string
11451145 private function findDisplayTitleForFile (string $ filePath , array $ allNodes ): ?string
11461146 {
11471147 // Normalize function to handle case and space/underscore differences
1148- $ normalize = (fn ($ path ) => strtolower (str_replace (' ' , '_ ' , $ path )));
1148+ $ normalize = (fn ($ path ) => strtolower (str_replace (' ' , '_ ' , $ path )));
11491149
11501150 // Simple approach: find the node that generated this file path
11511151 foreach ($ allNodes as $ node ) {
@@ -1180,7 +1180,7 @@ private function findDisplayTitleForFile(string $filePath, array $allNodes): ?st
11801180 private function findNodeMetadataForFile (string $ filePath , array $ allNodes , array $ reverseRegistry = []): ?array
11811181 {
11821182 // Normalize function to handle case and space/underscore differences
1183- $ normalize = (fn ($ path ) => strtolower (str_replace (' ' , '_ ' , $ path )));
1183+ $ normalize = (fn ($ path ) => strtolower (str_replace (' ' , '_ ' , $ path )));
11841184
11851185 // Find the node that generated this file path
11861186 foreach ($ allNodes as $ node ) {
@@ -1207,7 +1207,7 @@ private function findNodeMetadataForFile(string $filePath, array $allNodes, arra
12071207 }
12081208
12091209 // For PHPDoc content, use the reverse registry to find the owner
1210- if (!empty ($ reverseRegistry ) && isset ($ reverseRegistry [$ filePath ])) {
1210+ if (! empty ($ reverseRegistry ) && isset ($ reverseRegistry [$ filePath ])) {
12111211 $ owner = $ reverseRegistry [$ filePath ];
12121212
12131213 // Find the node with this owner
@@ -1260,8 +1260,8 @@ private function makeRelativePath(string $path, string $base): string
12601260 $ path = preg_replace ('/\.md$/ ' , '' , $ path );
12611261 $ base = preg_replace ('/\.md$/ ' , '' , $ base );
12621262
1263- $ pathParts = explode ('/ ' , $ path );
1264- $ baseParts = explode ('/ ' , $ base );
1263+ $ pathParts = explode ('/ ' , ( string ) $ path );
1264+ $ baseParts = explode ('/ ' , ( string ) $ base );
12651265
12661266 // Remove common path prefix
12671267 while (count ($ pathParts ) > 0 && count ($ baseParts ) > 0 && $ pathParts [0 ] === $ baseParts [0 ]) {
0 commit comments