// As we do not have a real parser that returns a parsing tree we can't
// handle modules and classes in one file. Drop a note to the user.
$this->warn->addDocWarning( $filename, "module", $name, "PHPDoc is confused: module files must not contain classes. Doc will probably be broken, module gets ignored.", "collision" );
continue;
}
if (isset($this->modulegroups[$group][$name]))
$this->warn->addDocWarning($filename, "module", $name, "Warning: there's more than one module '$name' (file: '$filename) in the module group '$group'.", "warning");
$this->modulegroups[$group][$name][] = $filename;
$this->modulefiles[] = $filename;
}
}
} // end func findModulegroups
/**
* Builds a hash of all class trees.
*
* @param array Hash with the result of getClassesAndModules() of all files
$this->warn->addDocWarning($filename, "class", $classname , "PHPDoc is confused: there is more than one class in this file. Doc will probably be broken, first class '$classname' gets used, file '$filename' get ignored.", "collision");
if (isset($data["modules"]["name"]))
$this->warn->addDocWarning($filename, "class", "", "Warning: found a module comment in a class file. Module comment gets ignored, doc might be broken.", "collision");