Fix lint errors + comment content.

This commit is contained in:
mark_story 2012-08-20 16:21:59 -04:00
parent d5333a2ff1
commit 62dd39133b

View file

@ -331,13 +331,14 @@ class TestTask extends BakeTask {
/**
* Get the base class and package name for a given type.
*
* @param string $package The package the class having a test
* generated for is in.
* @param string $type The type of class having a test
* generated is in.
* @return array Array of class, type)
* @throws CakeException on invalid types.
*/
public function getBaseType($type) {
if (empty($this->baseTypes[$type])) {
throw new CakeException(__d('cake_dev', 'Invalid package name'));
throw new CakeException(__d('cake_dev', 'Invalid type name'));
}
return $this->baseTypes[$type];
}