original_string: public static function extendListFilterScopes($callback)
      {
          $calledClass = self::getCalledExtensionClass();
          Event::listen('backend.filter.extendScopes', function ($widget) use ($calledClass, $callback) {
              if (!is_a($widget->getController(), $calledClass)) {
                  return;
              }
              call_user_func_array($callback, [$widget]);
          });
      }
code: public static function extendListFilterScopes($callback)
      {
          $calledClass = self::getCalledExtensionClass();
          Event::listen('backend.filter.extendScopes', function ($widget) use ($calledClass, $callback) {
              if (!is_a($widget->getController(), $calledClass)) {
                  return;
              }
              call_user_func_array($callback, [$widget]);
          });
      }
code_tokens: public static function extendListFilterScopes ( $ callback ) { $ calledClass = self :: getCalledExtensionClass ( ) ; Event :: listen ( 'backend.filter.extendScopes' , function ( $ widget ) use ( $ calledClass , $ callback ) { if ( ! is_a ( $ widget -> getController ( ) , $ calledClass ) ) { return ; } call_user_func_array ( $ callback , [ $ widget ] ) ; } ) ; }
docstring: Static helper for extending filter scopes.
  @param  callable $callback
  @return void
docstring_tokens: Static helper for extending filter scopes .