Merge pull request #4617 from spekulatius/readibility

improve readability
This commit is contained in:
Damian Mooyman 2015-09-21 08:37:11 +12:00
commit d0fe105045

View File

@ -509,13 +509,17 @@ abstract class Object {
} }
$extensionClass = $matches[1]; $extensionClass = $matches[1];
if(!class_exists($extensionClass)) { if(!class_exists($extensionClass)) {
user_error(sprintf('Object::add_extension() - Can\'t find extension class for "%s"', $extensionClass), user_error(
E_USER_ERROR); sprintf('Object::add_extension() - Can\'t find extension class for "%s"', $extensionClass),
E_USER_ERROR
);
} }
if(!is_subclass_of($extensionClass, 'Extension')) { if(!is_subclass_of($extensionClass, 'Extension')) {
user_error(sprintf('Object::add_extension() - Extension "%s" is not a subclass of Extension', user_error(
$extensionClass), E_USER_ERROR); sprintf('Object::add_extension() - Extension "%s" is not a subclass of Extension', $extensionClass),
E_USER_ERROR
);
} }
// unset some caches // unset some caches