Skip to content

Commit

Permalink
Updates docblock.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentrickard committed Jul 5, 2022
1 parent 8a47b4a commit a525f5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/TesterCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
9 changes: 8 additions & 1 deletion src/Plugin/Tester/MenuTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a525f5b

Please sign in to comment.