Ignore:
Timestamp:
2012/02/06 11:05:15 (12 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
Location:
branches/version-2_12-dev/data/smarty_extends
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/smarty_extends/function.html_checkboxes_ex.php

    r21420 r21441  
    5454    $extra = ''; 
    5555 
    56     foreach($params as $_key => $_val) { 
    57         switch($_key) { 
     56    foreach ($params as $_key => $_val) { 
     57        switch ($_key) { 
    5858    case 'tags': 
    5959    $$_key = split("\|", $_val); 
     
    9292 
    9393            default: 
    94                 if(!is_array($_val)) { 
     94                if (!is_array($_val)) { 
    9595                    $extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"'; 
    9696                } else { 
     
    121121    } 
    122122 
    123     if(!empty($params['assign'])) { 
     123    if (!empty($params['assign'])) { 
    124124        $smarty->assign($params['assign'], $_html_result); 
    125125    } else { 
     
    148148 
    149149    if ($labels) { 
    150     if($label_ids) { 
     150    if ($label_ids) { 
    151151    $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 
    152152    $_output .= '<label for="' . $_id . '">'; 
  • branches/version-2_12-dev/data/smarty_extends/function.html_radios_ex.php

    r21420 r21441  
    5353    $extra = ''; 
    5454 
    55     foreach($params as $_key => $_val) { 
    56         switch($_key) { 
     55    foreach ($params as $_key => $_val) { 
     56        switch ($_key) { 
    5757    case 'tags': 
    5858    $$_key = split("\|", $_val); 
     
    6565            case 'checked': 
    6666            case 'selected': 
    67                 if(is_array($_val)) { 
     67                if (is_array($_val)) { 
    6868                    $smarty->trigger_error('html_radios: the "' . $_key . '" attribute cannot be an array', E_USER_WARNING); 
    6969                } else { 
     
    9494 
    9595            default: 
    96                 if(!is_array($_val)) { 
     96                if (!is_array($_val)) { 
    9797                    $extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"'; 
    9898                } else { 
     
    122122    } 
    123123 
    124     if(!empty($params['assign'])) { 
     124    if (!empty($params['assign'])) { 
    125125        $smarty->assign($params['assign'], $_html_result); 
    126126    } else { 
     
    150150 
    151151    if ($labels) { 
    152       if($label_ids) { 
     152      if ($label_ids) { 
    153153      $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 
    154154          $_output .= '<label for="' . $_id . '">'; 
  • branches/version-2_12-dev/data/smarty_extends/modifier.script_escape.php

    r21420 r21441  
    1313    $convert = "#script tag escaped#"; 
    1414 
    15     if ( preg_match_all($pattern, $value, $matches) ) { 
     15    if (preg_match_all($pattern, $value, $matches) ) { 
    1616        return preg_replace($pattern, $convert, $value); 
    1717    } else { 
Note: See TracChangeset for help on using the changeset viewer.