original_string: protected static function splite($pattern)
      {
          if (is_array($pattern)) {
              $events = [];
  
              foreach ($pattern as $value) {
                  $events = array_collapse([$events, self::extract($value)]);
              }
  
              return $events;
          } elseif (is_string($pattern)) {
              return self::extract($pattern);
          }
      }
code: protected static function splite($pattern)
      {
          if (is_array($pattern)) {
              $events = [];
  
              foreach ($pattern as $value) {
                  $events = array_collapse([$events, self::extract($value)]);
              }
  
              return $events;
          } elseif (is_string($pattern)) {
              return self::extract($pattern);
          }
      }
code_tokens: protected static function splite ( $ pattern ) { if ( is_array ( $ pattern ) ) { $ events = [ ] ; foreach ( $ pattern as $ value ) { $ events = array_collapse ( [ $ events , self :: extract ( $ value ) ] ) ; } return $ events ; } elseif ( is_string ( $ pattern ) ) { return self :: extract ( $ pattern ) ; } }
docstring: Get events from event pattern.
  
  @param mixed $pattern
  
  @return array
docstring_tokens: Get events from event pattern .