Skip to content

Commit

Permalink
[housekeeping] temporary code removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelpichler committed Oct 19, 2011
1 parent 2714e4b commit 6dba831
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/main/php/PHP/Depend/Metrics/Cohesion/Analyzer.php
Expand Up @@ -47,7 +47,8 @@
*/

/**
*
* This analyzer implements several metrics that describe cohesion of classes
* and packages.
*
* @category QualityAssurance
* @package PHP_Depend
Expand Down Expand Up @@ -118,22 +119,26 @@ public function analyze(PHP_Depend_Code_NodeIterator $packages)
}
}

/*
public function visitProperty(PHP_Depend_Code_Property $property)
{
$this->fireStartProperty($property);
echo ltrim($property->getName(), '$'), PHP_EOL;
echo ltrim($property->getName(), '$'), PHP_EOL;
$this->fireEndProperty($property);
}

public function visitMethod(PHP_Depend_Code_Method $method)
{
$this->fireStartMethod($method);
$prefixes = $method->findChildrenOfType(PHP_Depend_Code_ASTMemberPrimaryPrefix::CLAZZ);
$prefixes = $method->findChildrenOfType(
PHP_Depend_Code_ASTMemberPrimaryPrefix::CLAZZ
);
foreach ($prefixes as $prefix) {
$variable = $prefix->getChild(0);
if ($variable instanceof PHP_Depend_Code_ASTVariable && $variable->isThis()) {
if ($variable instanceof PHP_Depend_Code_ASTVariable
&& $variable->isThis()
) {
echo "\$this->";
} else if ($variable instanceof PHP_Depend_Code_ASTSelfReference) {
echo "self::";
Expand All @@ -155,6 +160,6 @@ public function visitMethod(PHP_Depend_Code_Method $method)
$this->fireEndMethod($method);
}

*/

}

0 comments on commit 6dba831

Please sign in to comment.