mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 18:42:40 +00:00
Fix lint errors + comment content.
This commit is contained in:
parent
d5333a2ff1
commit
62dd39133b
1 changed files with 4 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue