original_string: protected function parseRequest(array $request) : array
      {
          $request = Collection::make($request);
  
          $allowed = $request->filter(function ($item) { return trim($item) != ''; })->only(array_keys($this->allowed));
  
          if ($filterable = $this->allowedFeatures($request)) {
              $allowed['features'] = $filterable;
          }
  
          return $allowed->all();
      }
code: protected function parseRequest(array $request) : array
      {
          $request = Collection::make($request);
  
          $allowed = $request->filter(function ($item) { return trim($item) != ''; })->only(array_keys($this->allowed));
  
          if ($filterable = $this->allowedFeatures($request)) {
              $allowed['features'] = $filterable;
          }
  
          return $allowed->all();
      }
code_tokens: protected function parseRequest ( array $ request ) : array { $ request = Collection :: make ( $ request ) ; $ allowed = $ request -> filter ( function ( $ item ) { return trim ( $ item ) != '' ; } ) -> only ( array_keys ( $ this -> allowed ) ) ; if ( $ filterable = $ this -> allowedFeatures ( $ request ) ) { $ allowed [ 'features' ] = $ filterable ; } return $ allowed -> all ( ) ; }
docstring: Parses the incoming request.
  
  @param array $request
  
  @return array
docstring_tokens: Parses the incoming request .