original_string: public static function cleanFields($fields)
      {
          $fields = parent::cleanFields($fields);
          if (('*' !== array_get($fields, 0)) && !in_array('private', $fields)) {
              $fields[] = 'private';
          }
  
          return $fields;
      }
code: public static function cleanFields($fields)
      {
          $fields = parent::cleanFields($fields);
          if (('*' !== array_get($fields, 0)) && !in_array('private', $fields)) {
              $fields[] = 'private';
          }
  
          return $fields;
      }
code_tokens: public static function cleanFields ( $ fields ) { $ fields = parent :: cleanFields ( $ fields ) ; if ( ( '*' !== array_get ( $ fields , 0 ) ) && ! in_array ( 'private' , $ fields ) ) { $ fields [ ] = 'private' ; } return $ fields ; }
docstring: Removes unwanted fields from field list if supplied.
  
  @param mixed $fields
  
  @return array
docstring_tokens: Removes unwanted fields from field list if supplied .