Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Fixing two issues: one documentation, one warning in NodeWrapper #82

Merged
merged 1 commit into from
Nov 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/NodeWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ public function getArrayDimFetchName ($node)

public function isSameClassAs ($classname)
{
if (empty($this->node->class->parts)) {
return false;
}

$name = end($this->node->class->parts);
return ($name === $classname || $name === 'self');
}
Expand Down
2 changes: 1 addition & 1 deletion src/testability
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $cmd->setHelp ("PHP_Testability by Edson Medina.\n\nUsage: testability [options]
$cmd->option()->require()->referToAs('path')->describeAs('A file or a directory to analyse')->default(getcwd());
$cmd->option('output')->alias('o')->describeAs('Path for writing the report (default: report)')->default('./report');
$cmd->option('exclude')->alias('x')->describeAs('Exclude (comma-separated) directories (default: tests,.git,.svn,vendor,tmp,temp)')->default('tests,.git,vendor,tmp,temp');
$cmd->option('csvtotals')->describeAs('Output CSV files for total issue counts. This can be used with Jenkin\'s Plot plugin. Takes filename as argument. These files are generated under each directory of the HTML report.')->boolean();
$cmd->option('csvtotals')->describeAs('Use to output CSV files for total issue counts. This can be used with Jenkin\'s Plot plugin. These files are generated under each directory of the HTML report, with a total in the root.')->boolean();
$cmd->option('verbose')->alias('v')->describeAs('More verbose output.')->boolean();

// run
Expand Down