original_string: static public function extend(array $to, array $from)
      {
          foreach ($from as $key => $value) {
              if (is_array($value)) {
                  $to[$key] = self::extend((array) (isset($to[$key]) ? $to[$key] : []),$value);
              }else{
                  $to[$key] = $value;
              }
          }
          return $to;
      }
code: static public function extend(array $to, array $from)
      {
          foreach ($from as $key => $value) {
              if (is_array($value)) {
                  $to[$key] = self::extend((array) (isset($to[$key]) ? $to[$key] : []),$value);
              }else{
                  $to[$key] = $value;
              }
          }
          return $to;
      }
code_tokens: static public function extend ( array $ to , array $ from ) { foreach ( $ from as $ key => $ value ) { if ( is_array ( $ value ) ) { $ to [ $ key ] = self :: extend ( ( array ) ( isset ( $ to [ $ key ] ) ? $ to [ $ key ] : [ ] ) , $ value ) ; } else { $ to [ $ key ] = $ value ; } } return $ to ; }
docstring: extend a array
  @param array $to
  @param array $from
  @return array
docstring_tokens: extend a array