original_string: public function allowedFeatures(Collection $request) : array
      {
          return $request->filter(function ($item, $key) {
              return trim($item) != '' && $this->isFilterable($key);
          })->all();
      }
code: public function allowedFeatures(Collection $request) : array
      {
          return $request->filter(function ($item, $key) {
              return trim($item) != '' && $this->isFilterable($key);
          })->all();
      }
code_tokens: public function allowedFeatures ( Collection $ request ) : array { return $ request -> filter ( function ( $ item , $ key ) { return trim ( $ item ) != '' && $ this -> isFilterable ( $ key ) ; } ) -> all ( ) ; }
docstring: Returns an array with the allowed features.
  
  @param  Collection $request
  
  @return array
docstring_tokens: Returns an array with the allowed features .