cvs: phpdoc /scripts check-references.php
| From: | Jakub Vrana | Date: | Fri, 17 Aug 2007 01:54:04 +0000 |
| Subject: | cvs: phpdoc /scripts check-references.php | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969377489@lists.php.net to get a copy of this message | ||
vrana Fri Aug 17 01:54:04 2007 UTC
Modified files:
/phpdoc/scripts check-references.php
Log:
Conditional incrementation of $counts[refs]
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/check-references.php?r1=1.24&r2=1.25&diff_format=u
Index: phpdoc/scripts/check-references.php
diff -u phpdoc/scripts/check-references.php:1.24 phpdoc/scripts/check-references.php:1.25
--- phpdoc/scripts/check-references.php:1.24 Fri Jun 15 15:53:49 2007
+++ phpdoc/scripts/check-references.php Fri Aug 17 01:54:04 2007
@@ -391,7 +391,7 @@
) {
echo (isset($source_ref[0]) ? "Parameter(s) " . (is_int($source_ref[0]) ?
"$source_ref[0] and rest" : implode(", ", $source_ref[0])) :
"Nothing") . " should be passed by reference in $filename on line $lineno" .
(isset($source_ref[1]) ? "\n: source in $source_ref[1] on line $source_ref[2]" :
"") . ".\n";
}
- if (isset($source_ref)) {
+ if (isset($source_refs[$function_name])) {
$counts["refs"]++;
}