Skip to content

Commit

Permalink
Merge pull request #1262 from mvriel/feature/1017
Browse files Browse the repository at this point in the history
Fixes #1017: Erroneous behaviour of --hidden
  • Loading branch information
ashnazg committed May 17, 2014
2 parents f78fc5e + 9bae8ac commit d715821
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/phpDocumentor/Command/Project/RunCommand.php
Expand Up @@ -136,7 +136,8 @@ protected function configure()
'hidden',
null,
InputOption::VALUE_NONE,
'set to on to descend into hidden directories (directories starting with \'.\'), default is on'
'Use this option to tell phpDocumentor to parse files and directories that begin with a period (.), '
. 'by default these are ignored'
)
->addOption(
'ignore-symlinks',
Expand Down
5 changes: 2 additions & 3 deletions src/phpDocumentor/Parser/Command/Project/ParseCommand.php
Expand Up @@ -248,9 +248,8 @@ protected function getFileCollection($input)
$configurationHelper->getOption($input, 'extensions', 'parser/extensions', array('php', 'php3', 'phtml'), true)
);
$files->setIgnorePatterns($configurationHelper->getOption($input, 'ignore', 'files/ignore', array(), true));
$files->setIgnoreHidden(
$configurationHelper->getOption($input, 'hidden', 'files/ignore-hidden', 'off') == 'on'
);
$ignoreHidden = $configurationHelper->getOption($input, 'hidden', 'files/ignore-hidden', 'off');
$files->setIgnoreHidden($ignoreHidden !== 'off' && $ignoreHidden === false);
$files->setFollowSymlinks(
$configurationHelper->getOption($input, 'ignore-symlinks', 'files/ignore-symlinks', 'off') == 'on'
);
Expand Down
4 changes: 2 additions & 2 deletions src/phpDocumentor/Parser/Messages/en.php
Expand Up @@ -27,8 +27,8 @@
. 'Wildcards * and ? are supported',
'PPCPP:OPT-IGNORETAGS' => 'Comma-separated list of tags that will be ignored, defaults to none. package, '
. 'subpackage and ignore may not be ignored.',
'PPCPP:OPT-HIDDEN' => 'Set to on to descend into hidden directories (directories starting with \'.\'), '
. 'default is on',
'PPCPP:OPT-HIDDEN' => 'Use this option to tell phpDocumentor to parse files and directories that begin '
. 'with a period (.), by default these are ignored',
'PPCPP:OPT-IGNORESYMLINKS' => 'Ignore symlinks to other files or directories, default is on',
'PPCPP:OPT-MARKERS' => 'Comma-separated list of markers/tags to filter',
'PPCPP:OPT-TITLE' => 'Sets the title for this project; default is the phpDocumentor logo',
Expand Down

0 comments on commit d715821

Please sign in to comment.