original_string: public function filter($request): array
      {
          if (\is_array($request)) {
              return $request;
          } elseif ($request === '*') {
              return $this->get();
          } elseif ($request[0] === '!') {
              return \array_diff($this->get(), [\substr($request, 1)]);
          }
  
          return [$request];
      }
code: public function filter($request): array
      {
          if (\is_array($request)) {
              return $request;
          } elseif ($request === '*') {
              return $this->get();
          } elseif ($request[0] === '!') {
              return \array_diff($this->get(), [\substr($request, 1)]);
          }
  
          return [$request];
      }
code_tokens: public function filter ( $ request ) : array { if ( \ is_array ( $ request ) ) { return $ request ; } elseif ( $ request === '*' ) { return $ this -> get ( ) ; } elseif ( $ request [ 0 ] === '!' ) { return \ array_diff ( $ this -> get ( ) , [ \ substr ( $ request , 1 ) ] ) ; } return [ $ request ] ; }
docstring: Filter request.
  
  @param  string|array  $request
  
  @return array
docstring_tokens: Filter request .