static function classExists( $class ) {
try {
$r = new ReflectionClass( $class );
- } catch( ReflectionException $r ) {
+ } catch ( ReflectionException $r ) {
$r = false;
}
return $r !== false;
static function methodExists( $class, $method ) {
try {
$r = new ReflectionMethod( $class, $method );
- } catch( ReflectionException $r ) {
+ } catch ( ReflectionException $r ) {
$r = false;
}
return $r !== false;
static function functionExists( $function ) {
try {
$r = new ReflectionFunction( $function );
- } catch( ReflectionException $r ) {
+ } catch ( ReflectionException $r ) {
$r = false;
}
return $r !== false;