original_string: protected static function get_filter_config(array $whitelists, array $excludelists) : string {
          $filters = '';
          if (!empty($whitelists)) {
              $filters .= self::pad("<whitelist>", 2);
              foreach ($whitelists as $line) {
                  $filters .= self::pad($line, 3);
              }
              if (!empty($excludelists)) {
                  $filters .= self::pad("<exclude>", 3);
                  foreach ($excludelists as $line) {
                      $filters .= self::pad($line, 4);
                  }
                  $filters .= self::pad("</exclude>", 3);
              }
              $filters .= self::pad("</whitelist>", 2);
          }
  
          return $filters;
      }
code: protected static function get_filter_config(array $whitelists, array $excludelists) : string {
          $filters = '';
          if (!empty($whitelists)) {
              $filters .= self::pad("<whitelist>", 2);
              foreach ($whitelists as $line) {
                  $filters .= self::pad($line, 3);
              }
              if (!empty($excludelists)) {
                  $filters .= self::pad("<exclude>", 3);
                  foreach ($excludelists as $line) {
                      $filters .= self::pad($line, 4);
                  }
                  $filters .= self::pad("</exclude>", 3);
              }
              $filters .= self::pad("</whitelist>", 2);
          }
  
          return $filters;
      }
code_tokens: protected static function get_filter_config ( array $ whitelists , array $ excludelists ) : string { $ filters = '' ; if ( ! empty ( $ whitelists ) ) { $ filters .= self :: pad ( "<whitelist>" , 2 ) ; foreach ( $ whitelists as $ line ) { $ filters .= self :: pad ( $ line , 3 ) ; } if ( ! empty ( $ excludelists ) ) { $ filters .= self :: pad ( "<exclude>" , 3 ) ; foreach ( $ excludelists as $ line ) { $ filters .= self :: pad ( $ line , 4 ) ; } $ filters .= self :: pad ( "</exclude>" , 3 ) ; } $ filters .= self :: pad ( "</whitelist>" , 2 ) ; } return $ filters ; }
docstring: Get the filter config for the supplied whitelist and excludelist configuration.
  
  @param   array[] $whitelists The list of files/folders in the whitelist.
  @param   array[] $excludelists The list of files/folders in the excludelist.
  @return  string
docstring_tokens: Get the filter config for the supplied whitelist and excludelist configuration .