public static function check($class, $eventType) 
  {
    $class = preg_replace("/Catapult\\\/", "", get_class($class));

    /** does the event exist ? **/
    if (array_key_exists($class, self::$events)) {

      if (in_array($eventType, self::$events[$class])) {
        return true;
      }
    }

    return false;
  }
public static function check($class, $eventType) 
  {
    $class = preg_replace("/Catapult\\\/", "", get_class($class));

    /** does the event exist ? **/
    if (array_key_exists($class, self::$events)) {

      if (in_array($eventType, self::$events[$class])) {
        return true;
      }
    }

    return false;
  }
public static function check ( $ class , $ eventType ) { $ class = preg_replace ( "/Catapult\\\/" , "" , get_class ( $ class ) ) ; /** does the event exist ? **/ if ( array_key_exists ( $ class , self :: $ events ) ) { if ( in_array ( $ eventType , self :: $ events [ $ class ] ) ) { return true ; } } return false ; }
check if the right event
has been called this
is done by looking at
what the keywords  have
for this eventType
check if the right event has been called this is done by looking at what the keywords have for this eventType