svn: /phpdoc/doc-base/trunk/scripts/ check-missing-docs.php
| From: | Philip Olson | Date: | Sat, 01 May 2010 06:57:53 +0000 |
| Subject: | svn: /phpdoc/doc-base/trunk/scripts/ check-missing-docs.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6555@lists.php.net to get a copy of this message | ||
philip Sat, 01 May 2010 06:57:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=298833
Log:
Added 'classes' to counts, and now skip inherited methods
Changed paths:
U phpdoc/doc-base/trunk/scripts/check-missing-docs.php
Modified: phpdoc/doc-base/trunk/scripts/check-missing-docs.php
===================================================================
--- phpdoc/doc-base/trunk/scripts/check-missing-docs.php 2010-05-01 06:22:01 UTC (rev 298832)
+++ phpdoc/doc-base/trunk/scripts/check-missing-docs.php 2010-05-01 06:57:53 UTC (rev 298833)
@@ -43,8 +43,8 @@
define ('VERBOSE', (isset($options['v']) ? TRUE : FALSE));
-$undefined = array('functions' => array(), 'methods' => array(),
'inis' => array());
-$counts_defined = array('functions' => 0, 'methods' => 0,
'inis' => 0);
+$undefined = array('functions' => array(), 'methods' => array(),
'inis' => array(), 'classes' => array());
+$counts_defined = array('functions' => 0, 'methods' => 0,
'inis' => 0, 'classes' => 0);
if (!$db = new SQLite3($doc_db)) {
echo "ERROR: Failed to utilize the powers of sqlite3.\n";
@@ -91,6 +91,16 @@
$sql = "SELECT count(*) FROM ids WHERE LOWER(sdesc) = '" . strtolower($tmp) .
"'";
if ($db->querySingle($sql) === 0) {
+
+ // Does this fully work? :)
+ $rm = new ReflectionMethod($class, $method);
+ $rp = $rm->getDeclaringClass();
+
+ // Skip if inherited
+ if ($rp->name !== $class) {
+ continue;
+ }
+
if (VERBOSE) {
echo $tmp . "\n";
}