From a525f5b6de4d6643e0657042adae19175007b7b7 Mon Sep 17 00:00:00 2001 From: Ken Rickard Date: Tue, 5 Jul 2022 14:48:34 -0400 Subject: [PATCH] Updates docblock. --- src/Commands/TesterCommands.php | 2 +- src/Plugin/Tester/MenuTester.php | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Commands/TesterCommands.php b/src/Commands/TesterCommands.php index 7a30b15..4599082 100644 --- a/src/Commands/TesterCommands.php +++ b/src/Commands/TesterCommands.php @@ -161,7 +161,7 @@ public function crawl($base_url = NULL, array $options = ['test' => NULL, 'limit if (is_null($options['test'])) { $select = $this->chooseOptions(); - $options['test'] = $this->io()->choice($this->t('Select the tests to run:'), $select); + $options['test'] = $this->io()->choice($this->t('Select the tests to run'), $select); } if ($options['test'] === 'cancel') { diff --git a/src/Plugin/Tester/MenuTester.php b/src/Plugin/Tester/MenuTester.php index ff87dc6..dcee29f 100644 --- a/src/Plugin/Tester/MenuTester.php +++ b/src/Plugin/Tester/MenuTester.php @@ -51,8 +51,15 @@ public function urls(array $options) { } /** - * Recursive URL generator + * Creates a recursive URL generator. + * + * Each item in a menu tree may itself be a menu tree, so we loop through + * each one and then check for the presence of a `subtree`. + * + * @param array $tree + * The menu tree. * @param array $urls + * The array of urls to test. */ public function buildUrls($tree, array &$urls) { foreach ($tree as $element) {