X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FInit.php;h=835ffdb92c5be287b2bb4e7691e512b233a41ad2;hb=acd231fa2423d8d64f864c697b2d9d91700ff1b3;hp=ae21011cef5353449b5e2ab734414caf49a77a1b;hpb=4dcc7961dfe37cd3fe4671a21fed30990cc6f959;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Init.php b/includes/Init.php index ae21011cef..835ffdb92c 100644 --- a/includes/Init.php +++ b/includes/Init.php @@ -166,14 +166,14 @@ class MWInit { static function classExists( $class ) { try { $r = new ReflectionClass( $class ); - } catch( ReflectionException $r ) { + } catch ( ReflectionException $r ) { $r = false; } return $r !== false; } /** - * Determine wether a method exists within a class, using a method which works + * Determine whether a method exists within a class, using a method which works * under HipHop. * * Note that under HipHop when method_exists is given a string for it's class @@ -187,7 +187,7 @@ class MWInit { static function methodExists( $class, $method ) { try { $r = new ReflectionMethod( $class, $method ); - } catch( ReflectionException $r ) { + } catch ( ReflectionException $r ) { $r = false; } return $r !== false; @@ -204,7 +204,7 @@ class MWInit { static function functionExists( $function ) { try { $r = new ReflectionFunction( $function ); - } catch( ReflectionException $r ) { + } catch ( ReflectionException $r ) { $r = false; } return $r !== false;