original_string: public static function register()
      {
          $namespace = "Vinala\App\Events";
  
          foreach (get_declared_classes() as $value) {
              if (Strings::contains($value, $namespace)) {
                  $name = self::getName($value);
  
                  $events = $value::getEvents();
  
                  if (!is_null($events)) {
                      foreach ($events as $key => $value) {
                          $data[$name.'.'.$key] = $value;
                      }
                  }
  
                  self::$listners = array_collapse([$data, self::$listners]);
              }
          }
      }
code: public static function register()
      {
          $namespace = "Vinala\App\Events";
  
          foreach (get_declared_classes() as $value) {
              if (Strings::contains($value, $namespace)) {
                  $name = self::getName($value);
  
                  $events = $value::getEvents();
  
                  if (!is_null($events)) {
                      foreach ($events as $key => $value) {
                          $data[$name.'.'.$key] = $value;
                      }
                  }
  
                  self::$listners = array_collapse([$data, self::$listners]);
              }
          }
      }
code_tokens: public static function register ( ) { $ namespace = "Vinala\App\Events" ; foreach ( get_declared_classes ( ) as $ value ) { if ( Strings :: contains ( $ value , $ namespace ) ) { $ name = self :: getName ( $ value ) ; $ events = $ value :: getEvents ( ) ; if ( ! is_null ( $ events ) ) { foreach ( $ events as $ key => $ value ) { $ data [ $ name . '.' . $ key ] = $ value ; } } self :: $ listners = array_collapse ( [ $ data , self :: $ listners ] ) ; } } }
docstring: Register all listners.
  
  @return null
docstring_tokens: Register all listners .