Skip to content

Commit 2140c80

Browse files
bambamboolegithub-actions[bot]
authored andcommitted
Apply pint changes
1 parent ac22f1d commit 2140c80

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/FunctionalDocBlockExtractor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Extracts functional documentation from PHP docblocks.
1313
*
1414
* @nav Main Section / Sub Section / Another Page
15+
*
1516
* @uses \Xentral\LaravelDocs\MkDocsGenerator
1617
*/
1718
class FunctionalDocBlockExtractor extends NodeVisitorAbstract

src/MkDocsGenerator.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* Generates MkDocs documentation from extracted functional documentation.
1111
*
1212
* @nav Main Section / Generator / MkDocs Generator
13+
*
1314
* @uses \Illuminate\Filesystem\Filesystem
1415
*/
1516
class MkDocsGenerator
@@ -1022,7 +1023,7 @@ private function collectRecursiveDependencies(string $owner, array $allNodes, ar
10221023
}
10231024
}
10241025

1025-
if (!$currentNode || empty($currentNode['uses'])) {
1026+
if (! $currentNode || empty($currentNode['uses'])) {
10261027
return [];
10271028
}
10281029

@@ -1038,7 +1039,7 @@ private function collectRecursiveDependencies(string $owner, array $allNodes, ar
10381039

10391040
// Recursively collect dependencies of this dependency
10401041
$nestedDeps = $this->collectRecursiveDependencies($usedKey, $allNodes, $visited, $depth + 1, $maxDepth);
1041-
if (!empty($nestedDeps)) {
1042+
if (! empty($nestedDeps)) {
10421043
$dependencies[count($dependencies) - 1]['uses'] = $nestedDeps;
10431044
}
10441045
}
@@ -1121,7 +1122,7 @@ private function generateDependencyList(string &$content, array $dependencies, a
11211122
}
11221123

11231124
// Recursively add nested dependencies
1124-
if (!empty($dep['uses'])) {
1125+
if (! empty($dep['uses'])) {
11251126
$this->generateDependencyList($content, $dep['uses'], $registry, $navPathMap, $sourcePath, $depth + 1);
11261127
}
11271128
}
@@ -1148,7 +1149,7 @@ private function addMermaidDependencies(string &$mermaidContent, array &$mermaid
11481149
}
11491150

11501151
// Recursively add nested dependencies
1151-
if (!empty($dep['uses'])) {
1152+
if (! empty($dep['uses'])) {
11521153
$this->addMermaidDependencies($mermaidContent, $mermaidLinks, $usedId, $dep['uses'], $registry, $navPathMap, $sourcePath);
11531154
}
11541155
}

0 commit comments

Comments
 (0)