original_string: protected function parseParam($param, string $name)
      {
          if (is_iterable($param)) {
              foreach ($param as $key => $value) {
                  $param[$key] = $this->parseParam($value, $name);
              }
  
              return $param;
          }
  
          if (is_string($param)) {
              $param = $this->config->getEnv($param);
  
              if (preg_match('#^\{\{([^{}]+)\}\}$#', $param, $matches)) {
                  return '{'.$matches[1].'}';
              }
              if (preg_match('#^\{([^{}]+)\}$#', $param, $matches)) {
                  return $this->traverseTree($name, $matches[1]);
              }
  
              return $param;
          }
  
          return $param;
      }
code: protected function parseParam($param, string $name)
      {
          if (is_iterable($param)) {
              foreach ($param as $key => $value) {
                  $param[$key] = $this->parseParam($value, $name);
              }
  
              return $param;
          }
  
          if (is_string($param)) {
              $param = $this->config->getEnv($param);
  
              if (preg_match('#^\{\{([^{}]+)\}\}$#', $param, $matches)) {
                  return '{'.$matches[1].'}';
              }
              if (preg_match('#^\{([^{}]+)\}$#', $param, $matches)) {
                  return $this->traverseTree($name, $matches[1]);
              }
  
              return $param;
          }
  
          return $param;
      }
code_tokens: protected function parseParam ( $ param , string $ name ) { if ( is_iterable ( $ param ) ) { foreach ( $ param as $ key => $ value ) { $ param [ $ key ] = $ this -> parseParam ( $ value , $ name ) ; } return $ param ; } if ( is_string ( $ param ) ) { $ param = $ this -> config -> getEnv ( $ param ) ; if ( preg_match ( '#^\{\{([^{}]+)\}\}$#' , $ param , $ matches ) ) { return '{' . $ matches [ 1 ] . '}' ; } if ( preg_match ( '#^\{([^{}]+)\}$#' , $ param , $ matches ) ) { return $ this -> traverseTree ( $ name , $ matches [ 1 ] ) ; } return $ param ; } return $ param ; }
docstring: Parse param value.
docstring_tokens: Parse param value .