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

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

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_CheckError.php

    r21420 r21441  
    3333    // チェック対象の値が含まれる配列をセットする。 
    3434    function SC_CheckError($array = "") { 
    35         if($array != "") { 
     35        if ($array != "") { 
    3636            $this->arrParam = $array; 
    3737        } else { 
     
    4242 
    4343    function doFunc($value, $arrFunc) { 
    44         foreach ( $arrFunc as $key ) { 
     44        foreach ($arrFunc as $key ) { 
    4545            $this->$key($value); 
    4646        } 
     
    5454     */ 
    5555    function HTML_TAG_CHECK($value) { 
    56         if(isset($this->arrErr[$value[1]])) { 
     56        if (isset($this->arrErr[$value[1]])) { 
    5757            return; 
    5858        } 
     
    6161        preg_match_all("/<([\/]?[a-z]+)/", $this->arrParam[$value[1]], $arrTag); 
    6262 
    63         foreach($arrTag[1] as $val) { 
     63        foreach ($arrTag[1] as $val) { 
    6464            $find = false; 
    6565 
    66             foreach($value[2] as $tag) { 
     66            foreach ($value[2] as $tag) { 
    6767                $tag = preg_replace('/^\\//', '\/', $tag); 
    68                 if(preg_match("/^" . $tag . "$/i", $val)) { 
     68                if (preg_match("/^" . $tag . "$/i", $val)) { 
    6969                    $find = true; 
    7070                    break; 
     
    7272            } 
    7373 
    74             if(!$find) { 
     74            if (!$find) { 
    7575                $this->arrErr[$value[1]] = "※ " . $value[0] . "に許可されていないタグ[" . strtoupper($val) . "]が含まれています。<br />"; 
    7676                return; 
     
    9191        } 
    9292        $this->createParam($value); 
    93         if (!is_array($this->arrParam[$value[1]]) && strlen($this->arrParam[$value[1]]) == 0 ){ 
     93        if (!is_array($this->arrParam[$value[1]]) && strlen($this->arrParam[$value[1]]) == 0 ) { 
    9494            $this->arrErr[$value[1]] = "※ " . $value[0] . "が入力されていません。<br />"; 
    9595        } else if (is_array($this->arrParam[$value[1]]) && count($this->arrParam[$value[1]]) == 0) { 
     
    106106     */ 
    107107    function EXIST_CHECK_REVERSE( $value ) { 
    108         if(isset($this->arrErr[$value[0]])) { 
    109             return; 
    110         } 
    111         $this->createParam($value); 
    112         if( strlen($this->arrParam[$value[0]]) == 0 ){ 
     108        if (isset($this->arrErr[$value[0]])) { 
     109            return; 
     110        } 
     111        $this->createParam($value); 
     112        if (strlen($this->arrParam[$value[0]]) == 0 ) { 
    113113            $this->arrErr[$value[0]] = "※ " . $value[0] . "が入力されていません。<br />"; 
    114114        } 
     
    123123     */ 
    124124    function SPTAB_CHECK( $value ) { 
    125         if(isset($this->arrErr[$value[1]])) { 
    126             return; 
    127         } 
    128         $this->createParam($value); 
    129         if(strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[  \t\r\n]+$/", $this->arrParam[$value[1]])){ 
     125        if (isset($this->arrErr[$value[1]])) { 
     126            return; 
     127        } 
     128        $this->createParam($value); 
     129        if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[  \t\r\n]+$/", $this->arrParam[$value[1]])) { 
    130130            $this->arrErr[$value[1]] = "※ " . $value[0] . "にスペース、タブ、改行のみの入力はできません。<br />"; 
    131131        } 
     
    140140     */ 
    141141    function NO_SPTAB( $value ) { 
    142         if(isset($this->arrErr[$value[1]])) { 
    143             return; 
    144         } 
    145         $this->createParam($value); 
    146         if(strlen($this->arrParam[$value[1]]) != 0 && preg_match("/[  \t\r\n]+/u", $this->arrParam[$value[1]])){ 
     142        if (isset($this->arrErr[$value[1]])) { 
     143            return; 
     144        } 
     145        $this->createParam($value); 
     146        if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/[  \t\r\n]+/u", $this->arrParam[$value[1]])) { 
    147147            $this->arrErr[$value[1]] = "※ " . $value[0] . "にスペース、タブ、改行は含めないで下さい。<br />"; 
    148148        } 
     
    151151    /* ゼロで開始されている数値の判定 */ 
    152152    function ZERO_START($value) { 
    153         if(isset($this->arrErr[$value[1]])) { 
    154             return; 
    155         } 
    156         $this->createParam($value); 
    157         if(strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[0]+[0-9]+$/", $this->arrParam[$value[1]])){ 
     153        if (isset($this->arrErr[$value[1]])) { 
     154            return; 
     155        } 
     156        $this->createParam($value); 
     157        if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[0]+[0-9]+$/", $this->arrParam[$value[1]])) { 
    158158            $this->arrErr[$value[1]] = "※ " . $value[0] . "に0で始まる数値が入力されています。<br />"; 
    159159        } 
     
    168168     */ 
    169169    function SELECT_CHECK( $value ) { 
    170         if(isset($this->arrErr[$value[1]])) { 
    171             return; 
    172         } 
    173         $this->createParam($value); 
    174         if( strlen($this->arrParam[$value[1]]) == 0 ){ 
     170        if (isset($this->arrErr[$value[1]])) { 
     171            return; 
     172        } 
     173        $this->createParam($value); 
     174        if (strlen($this->arrParam[$value[1]]) == 0 ) { 
    175175            $this->arrErr[$value[1]] = "※ " . $value[0] . "が選択されていません。<br />"; 
    176176        } 
     
    185185     */ 
    186186    function EQUAL_CHECK( $value ) { 
    187         if(isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[3]])) { 
     187        if (isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[3]])) { 
    188188            return; 
    189189        } 
    190190        $this->createParam($value); 
    191191        // 文字数の取得 
    192         if( $this->arrParam[$value[2]] !== $this->arrParam[$value[3]]) { 
     192        if ($this->arrParam[$value[2]] !== $this->arrParam[$value[3]]) { 
    193193            $this->arrErr[$value[2]] = "※ " . $value[0] . "と" . $value[1] . "が一致しません。<br />"; 
    194194        } 
     
    203203     */ 
    204204    function DIFFERENT_CHECK( $value ) { 
    205         if(isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[3]])) { 
     205        if (isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[3]])) { 
    206206            return; 
    207207        } 
    208208        $this->createParam($value); 
    209209        // 文字数の取得 
    210         if( $this->arrParam[$value[2]] == $this->arrParam[$value[3]]) { 
     210        if ($this->arrParam[$value[2]] == $this->arrParam[$value[3]]) { 
    211211            $this->arrErr[$value[2]] = "※ " . $value[0] . "と" . $value[1] . "は、同じ値を使用できません。<br />"; 
    212212        } 
     
    221221     */ 
    222222    function GREATER_CHECK($value) { 
    223         if(isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[3]])) { 
     223        if (isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[3]])) { 
    224224            return; 
    225225        } 
    226226        $this->createParam($value); 
    227227        // 文字数の取得 
    228         if($this->arrParam[$value[2]] != "" && $this->arrParam[$value[3]] != "" && ($this->arrParam[$value[2]] > $this->arrParam[$value[3]])) { 
     228        if ($this->arrParam[$value[2]] != "" && $this->arrParam[$value[3]] != "" && ($this->arrParam[$value[2]] > $this->arrParam[$value[3]])) { 
    229229            $this->arrErr[$value[2]] = "※ " . $value[0] . "は" . $value[1] . "より大きい値を入力できません。<br />"; 
    230230        } 
     
    239239     */ 
    240240    function MAX_LENGTH_CHECK( $value ) { 
    241         if(isset($this->arrErr[$value[1]])) { 
     241        if (isset($this->arrErr[$value[1]])) { 
    242242            return; 
    243243        } 
    244244        $this->createParam($value); 
    245245        // 文字数の取得 
    246         if( mb_strlen($this->arrParam[$value[1]]) > $value[2] ) { 
     246        if (mb_strlen($this->arrParam[$value[1]]) > $value[2] ) { 
    247247            $this->arrErr[$value[1]] = "※ " . $value[0] . "は" . $value[2] . "字以下で入力してください。<br />"; 
    248248        } 
     
    257257     */ 
    258258    function MIN_LENGTH_CHECK( $value ) { 
    259         if(isset($this->arrErr[$value[1]])) { 
     259        if (isset($this->arrErr[$value[1]])) { 
    260260            return; 
    261261        } 
    262262        $this->createParam($value); 
    263263        // 文字数の取得 
    264         if( mb_strlen($this->arrParam[$value[1]]) < $value[2] ) { 
     264        if (mb_strlen($this->arrParam[$value[1]]) < $value[2] ) { 
    265265            $this->arrErr[$value[1]] = "※ " . $value[0] . "は" . $value[2] . "字以上で入力してください。<br />"; 
    266266        } 
     
    275275     */ 
    276276    function MAX_CHECK( $value ) { 
    277         if(isset($this->arrErr[$value[1]])) { 
     277        if (isset($this->arrErr[$value[1]])) { 
    278278            return; 
    279279        } 
    280280        $this->createParam($value); 
    281281        // 文字数の取得 
    282         if($this->arrParam[$value[1]] > $value[2] ) { 
     282        if ($this->arrParam[$value[1]] > $value[2] ) { 
    283283            $this->arrErr[$value[1]] = "※ " . $value[0] . "は" . $value[2] . "以下で入力してください。<br />"; 
    284284        } 
     
    293293     */ 
    294294    function MIN_CHECK( $value ) { 
    295         if(isset($this->arrErr[$value[1]])) { 
    296             return; 
    297         } 
    298         $this->createParam($value); 
    299         if($this->arrParam[$value[1]] < $value[2] ) { 
     295        if (isset($this->arrErr[$value[1]])) { 
     296            return; 
     297        } 
     298        $this->createParam($value); 
     299        if ($this->arrParam[$value[1]] < $value[2] ) { 
    300300            $this->arrErr[$value[1]] = "※ " . $value[0] . "は" . $value[2] . "以上で入力してください。<br />"; 
    301301        } 
     
    310310     */ 
    311311    function NUM_CHECK( $value ) { 
    312         if(isset($this->arrErr[$value[1]])) { 
    313             return; 
    314         } 
    315         $this->createParam($value); 
    316         if ( $this->numelicCheck($this->arrParam[$value[1]]) ) { 
     312        if (isset($this->arrErr[$value[1]])) { 
     313            return; 
     314        } 
     315        $this->createParam($value); 
     316        if ($this->numelicCheck($this->arrParam[$value[1]]) ) { 
    317317            $this->arrErr[$value[1]] = "※ " . $value[0] . "は数字で入力してください。<br />"; 
    318318        } 
     
    327327     */ 
    328328    function NUM_POINT_CHECK( $value ) { 
    329         if(isset($this->arrErr[$value[1]])) { 
    330             return; 
    331         } 
    332         $this->createParam($value); 
    333         if ( strlen($this->arrParam[$value[1]]) > 0 && !is_numeric($this->arrParam[$value[1]])) { 
     329        if (isset($this->arrErr[$value[1]])) { 
     330            return; 
     331        } 
     332        $this->createParam($value); 
     333        if (strlen($this->arrParam[$value[1]]) > 0 && !is_numeric($this->arrParam[$value[1]])) { 
    334334            $this->arrErr[$value[1]] = "※ " . $value[0] . "は数字で入力してください。<br />"; 
    335335        } 
     
    337337 
    338338    function ALPHA_CHECK($value) { 
    339         if(isset($this->arrErr[$value[1]])) { 
    340             return; 
    341         } 
    342         $this->createParam($value); 
    343         if( strlen($this->arrParam[$value[1]]) > 0 && !ctype_alpha($this->arrParam[$value[1]])) { 
     339        if (isset($this->arrErr[$value[1]])) { 
     340            return; 
     341        } 
     342        $this->createParam($value); 
     343        if (strlen($this->arrParam[$value[1]]) > 0 && !ctype_alpha($this->arrParam[$value[1]])) { 
    344344            $this->arrErr[$value[1]] = "※ " . $value[0] . "は半角英字で入力してください。<br />"; 
    345345        } 
     
    369369        $cnt = 0; 
    370370 
    371         for($i = 1; $i <= 3; $i++) { 
    372             if(strlen($this->arrParam[$value[$i]]) > 0) { 
     371        for ($i = 1; $i <= 3; $i++) { 
     372            if (strlen($this->arrParam[$value[$i]]) > 0) { 
    373373                $cnt++; 
    374374            } 
     
    376376 
    377377        // すべての項目が満たされていない場合を判定(一部だけ入力されている状態) 
    378         if($cnt > 0 && $cnt < 3) { 
     378        if ($cnt > 0 && $cnt < 3) { 
    379379            $this->arrErr[$value[1]] .= "※ " . $value[0] . "はすべての項目を入力してください。<br />"; 
    380380        } 
    381381 
    382382        $total_count = 0; 
    383         for($i = 1; $i <= 3; $i++) { 
    384             if(strlen($this->arrParam[$value[$i]]) > 0 && strlen($this->arrParam[$value[$i]]) > $telItemLen) { 
     383        for ($i = 1; $i <= 3; $i++) { 
     384            if (strlen($this->arrParam[$value[$i]]) > 0 && strlen($this->arrParam[$value[$i]]) > $telItemLen) { 
    385385                $this->arrErr[$value[$i]] .= "※ " . $value[0] . $i . "は" . $telItemLen . "字以内で入力してください。<br />"; 
    386386            } else if ($this->numelicCheck($this->arrParam[$value[1]])) { 
     
    404404        $this->createParam($value); 
    405405        // 既に該当項目にエラーがある場合は、判定しない。 
    406         for($i = 1; $i < $max; $i++) { 
    407             if(isset($this->arrErr[$value[$i]])) { 
     406        for ($i = 1; $i < $max; $i++) { 
     407            if (isset($this->arrErr[$value[$i]])) { 
    408408                return; 
    409409            } 
     
    413413 
    414414        // すべての項目がブランクでないか、すべての項目が入力されていない場合はエラーとする。 
    415         for($i = 1; $i < $max; $i++) { 
    416             if(strlen($this->arrParam[$value[$i]]) <= 0) { 
     415        for ($i = 1; $i < $max; $i++) { 
     416            if (strlen($this->arrParam[$value[$i]]) <= 0) { 
    417417                $blank = true; 
    418418            } 
    419419        } 
    420420 
    421         if($blank) { 
     421        if ($blank) { 
    422422            $this->arrErr[$value[1]] = "※ " . $value[0] . "が入力されていません。<br />"; 
    423423        } 
     
    432432 
    433433        // 既に該当項目にエラーがある場合は、判定しない。 
    434         for($i = 1; $i < $max; $i++) { 
    435             if(isset($this->arrErr[$value[$i]])) { 
     434        for ($i = 1; $i < $max; $i++) { 
     435            if (isset($this->arrErr[$value[$i]])) { 
    436436                return; 
    437437            } 
     
    442442 
    443443        // すべての項目がブランクでないか、すべての項目が入力されていない場合はエラーとする。 
    444         for($i = 1; $i < $max; $i++) { 
    445             if(strlen($this->arrParam[$value[$i]]) <= 0) { 
     444        for ($i = 1; $i < $max; $i++) { 
     445            if (strlen($this->arrParam[$value[$i]]) <= 0) { 
    446446                $blank = true; 
    447447            } else { 
     
    450450        } 
    451451 
    452         if($blank && $input) { 
     452        if ($blank && $input) { 
    453453            $this->arrErr[$value[1]] = "※ " . $value[0] . "はすべての項目を入力して下さい。<br />"; 
    454454        } 
     
    463463        $this->createParam($value); 
    464464        // 既に該当項目にエラーがある場合は、判定しない。 
    465         for($i = 1; $i < $max; $i++) { 
    466             if(isset($this->arrErr[$value[$i]])) { 
     465        for ($i = 1; $i < $max; $i++) { 
     466            if (isset($this->arrErr[$value[$i]])) { 
    467467                return; 
    468468            } 
     
    472472 
    473473        // すべての項目がブランクでないか、すべての項目が入力されていない場合はエラーとする。 
    474         for($i = 1; $i < $max; $i++) { 
    475             if(strlen($this->arrParam[$value[$i]]) > 0) { 
     474        for ($i = 1; $i < $max; $i++) { 
     475            if (strlen($this->arrParam[$value[$i]]) > 0) { 
    476476                $input = true; 
    477477            } 
    478478        } 
    479479 
    480         if(!$input) { 
     480        if (!$input) { 
    481481            $this->arrErr[$value[1]] = "※ " . $value[0] . "が入力されていません。<br />"; 
    482482        } 
     
    492492 
    493493        // 既に該当項目にエラーがある場合は、判定しない。 
    494         for($i = 1; $i < $max; $i++) { 
    495             if(isset($this->arrErr[$value[$i]])) { 
     494        for ($i = 1; $i < $max; $i++) { 
     495            if (isset($this->arrErr[$value[$i]])) { 
    496496                return; 
    497497            } 
     
    502502 
    503503        // すべての項目がブランクでないか、すべての項目が入力されていない場合はエラーとする。 
    504         for($i = 1; $i < $max; $i++) { 
    505             if(strlen($this->arrParam[$value[$i]]) <= 0) { 
     504        for ($i = 1; $i < $max; $i++) { 
     505            if (strlen($this->arrParam[$value[$i]]) <= 0) { 
    506506                $blank = true; 
    507507            } else { 
    508                 if($blank) { 
     508                if ($blank) { 
    509509                    $error = true; 
    510510                } 
     
    512512        } 
    513513 
    514         if($error) { 
     514        if ($error) { 
    515515            $this->arrErr[$value[1]] = "※ " . $value[0] . "は先頭の項目から順番に入力して下さい。<br />"; 
    516516        } 
     
    521521    // value[0] = 項目名 value[1] = 判定対象文字列 
    522522    function KANA_CHECK( $value ) { 
    523         if(isset($this->arrErr[$value[1]])) { 
    524             return; 
    525         } 
    526         $this->createParam($value); 
    527         if(strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[ァ-ヶヲ-゚ー]+$/u", $this->arrParam[$value[1]])) { 
     523        if (isset($this->arrErr[$value[1]])) { 
     524            return; 
     525        } 
     526        $this->createParam($value); 
     527        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[ァ-ヶヲ-゚ー]+$/u", $this->arrParam[$value[1]])) { 
    528528            $this->arrErr[$value[1]] = "※ " . $value[0] . "はカタカナで入力してください。<br />"; 
    529529        } 
     
    534534    // value[0] = 項目名 value[1] = 判定対象文字列 
    535535    function KANABLANK_CHECK( $value ) { 
    536         if(isset($this->arrErr[$value[1]])) { 
    537             return; 
    538         } 
    539         $this->createParam($value); 
    540         if(strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^([  \t\r\n]|[ァ-ヶ]|[ー])+$/u", $this->arrParam[$value[1]])) { 
     536        if (isset($this->arrErr[$value[1]])) { 
     537            return; 
     538        } 
     539        $this->createParam($value); 
     540        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^([  \t\r\n]|[ァ-ヶ]|[ー])+$/u", $this->arrParam[$value[1]])) { 
    541541            $this->arrErr[$value[1]] = "※ " . $value[0] . "はカタカナで入力してください。<br />"; 
    542542        } 
     
    547547    // value[0] = 項目名 value[1] = 判定対象文字列 
    548548    function ALNUM_CHECK( $value ) { 
    549         if(isset($this->arrErr[$value[1]])) { 
    550             return; 
    551         } 
    552         $this->createParam($value); 
    553         if( strlen($this->arrParam[$value[1]]) > 0 && !ctype_alnum($this->arrParam[$value[1]]) ) { 
     549        if (isset($this->arrErr[$value[1]])) { 
     550            return; 
     551        } 
     552        $this->createParam($value); 
     553        if (strlen($this->arrParam[$value[1]]) > 0 && !ctype_alnum($this->arrParam[$value[1]]) ) { 
    554554            $this->arrErr[$value[1]] = "※ " . $value[0] . "は英数字で入力してください。<br />"; 
    555555        } 
     
    560560    // value[0] = 項目名 value[1] = 判定対象文字列 
    561561    function GRAPH_CHECK( $value ) { 
    562         if(isset($this->arrErr[$value[1]])) { 
    563             return; 
    564         } 
    565         $this->createParam($value); 
    566         if( strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:graph:]|[:space:]]+$/i", $this->arrParam[$value[1]] ) ) { 
     562        if (isset($this->arrErr[$value[1]])) { 
     563            return; 
     564        } 
     565        $this->createParam($value); 
     566        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:graph:]|[:space:]]+$/i", $this->arrParam[$value[1]] ) ) { 
    567567            $this->arrErr[$value[1]] = "※ " . $value[0] . "は英数記号で入力してください。<br />"; 
    568568        } 
     
    574574    function ZERO_CHECK( $value ) { 
    575575        $this->createParam($value); 
    576         if($this->arrParam[$value[1]] == "0" ){ 
     576        if ($this->arrParam[$value[1]] == "0" ) { 
    577577            $this->arrErr[$value[1]] = "※ " . $value[0] . "は1以上を入力してください。<br />"; 
    578578        } 
     
    583583    // value[0] = 項目名 value[1] = 判定対象文字列 value[2] = 最小桁数 value[3] = 最大桁数 
    584584    function NUM_RANGE_CHECK( $value ) { 
    585         if(isset($this->arrErr[$value[1]])) { 
     585        if (isset($this->arrErr[$value[1]])) { 
    586586            return; 
    587587        } 
     
    589589        // $this->arrParam[$value[0]] = mb_convert_kana($this->arrParam[$value[0]], 'n'); 
    590590        $count = strlen($this->arrParam[$value[1]]); 
    591         if( ( $count > 0 ) && $value[2] > $count || $value[3] < $count ) { 
     591        if (( $count > 0 ) && $value[2] > $count || $value[3] < $count ) { 
    592592            $this->arrErr[$value[1]] =  "※ $value[0]は$value[2]桁~$value[3]桁で入力して下さい。<br />"; 
    593593        } 
     
    598598    // value[0] = 項目名 value[1] = 判定対象文字列 value[2] = 桁数 
    599599    function NUM_COUNT_CHECK( $value ) { 
    600         if(isset($this->arrErr[$value[1]])) { 
     600        if (isset($this->arrErr[$value[1]])) { 
    601601            return; 
    602602        } 
    603603        $this->createParam($value); 
    604604        $count = strlen($this->arrParam[$value[1]]); 
    605         if(($count > 0) && $count != $value[2] ) { 
     605        if (($count > 0) && $count != $value[2] ) { 
    606606            $this->arrErr[$value[1]] =  "※ $value[0]は$value[2]桁で入力して下さい。<br />"; 
    607607        } 
     
    617617     */ 
    618618    function EMAIL_CHECK( $value ){ 
    619         if(isset($this->arrErr[$value[1]])) { 
     619        if (isset($this->arrErr[$value[1]])) { 
    620620            return; 
    621621        } 
     
    667667    //  value[0] = 項目名 value[1] = 判定対象メールアドレス 
    668668    function EMAIL_CHAR_CHECK( $value ){ 
    669         if(isset($this->arrErr[$value[1]])) { 
    670             return; 
    671         } 
    672         $this->createParam($value); 
    673         if(strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[a-zA-Z0-9_\.@\+\?-]+$/i",$this->arrParam[$value[1]]) ) { 
     669        if (isset($this->arrErr[$value[1]])) { 
     670            return; 
     671        } 
     672        $this->createParam($value); 
     673        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[a-zA-Z0-9_\.@\+\?-]+$/i",$this->arrParam[$value[1]]) ) { 
    674674            $this->arrErr[$value[1]] = "※ " . $value[0] . "に使用する文字を正しく入力してください。<br />"; 
    675675        } 
     
    680680    //  value[0] = 項目名 value[1] = 判定対象URL 
    681681    function URL_CHECK( $value ){ 
    682          if(isset($this->arrErr[$value[1]])) { 
    683             return; 
    684         } 
    685          if( strlen($this->arrParam[$value[1]]) > 0 && !preg_match("@^https?://+($|[a-zA-Z0-9_~=:&\?\.\/-])+$@i", $this->arrParam[$value[1]] ) ) { 
     682         if (isset($this->arrErr[$value[1]])) { 
     683            return; 
     684        } 
     685         if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("@^https?://+($|[a-zA-Z0-9_~=:&\?\.\/-])+$@i", $this->arrParam[$value[1]] ) ) { 
    686686            $this->arrErr[$value[1]] = "※ " . $value[0] . "を正しく入力してください。<br />"; 
    687687        } 
     
    691691    //  value[0] = 項目名 value[1] = 判定対象IPアドレス文字列 
    692692    function IP_CHECK( $value ){ 
    693         if(isset($this->arrErr[$value[1]])) { 
     693        if (isset($this->arrErr[$value[1]])) { 
    694694            return; 
    695695        } 
    696696        //改行コードが含まれている場合には配列に変換 
    697697        $params = str_replace("\r","",$this->arrParam[$value[1]]); 
    698         if(!empty($params)){ 
    699             if(strpos($params,"\n") === false){ 
     698        if (!empty($params)) { 
     699            if (strpos($params,"\n") === false) { 
    700700                $params .= "\n"; 
    701701            } 
    702702            $params = explode("\n",$params); 
    703             foreach($params as $param){ 
     703            foreach ($params as $param) { 
    704704                $param = trim($param); 
    705                 if(long2ip(ip2long($param)) != trim($param) && !empty($param)) { 
     705                if (long2ip(ip2long($param)) != trim($param) && !empty($param)) { 
    706706                    $this->arrErr[$value[1]] = "※ " . $value[0] . "に正しい形式のIPアドレスを入力してください。<br />"; 
    707707                } 
     
    714714    // value[0] = 項目名 value[1] = 判定対象 value[2]=array(拡張子) 
    715715    function FILE_EXT_CHECK( $value ) { 
    716         if(isset($this->arrErr[$value[1]]) || count($value[2]) == 0) { 
    717             return; 
    718         } 
    719         $this->createParam($value); 
    720  
    721         if($_FILES[$value[1]]['name'] != "" ) { 
     716        if (isset($this->arrErr[$value[1]]) || count($value[2]) == 0) { 
     717            return; 
     718        } 
     719        $this->createParam($value); 
     720 
     721        if ($_FILES[$value[1]]['name'] != "" ) { 
    722722            $errFlag = 1; 
    723723            $array_ext = explode(".", $_FILES[$value[1]]['name']); 
     
    725725            $strExt = ""; 
    726726 
    727             foreach ( $value[2] as $checkExt ){ 
     727            foreach ($value[2] as $checkExt ) { 
    728728                $ext = ""; 
    729729 
     
    731731                $count_period = substr_count($checkExt, "."); 
    732732 
    733                 if($count_period > 0) { 
    734                     for($i = max(array_keys($array_ext)) - $count_period; $i < count($array_ext); $i++) { 
     733                if ($count_period > 0) { 
     734                    for ($i = max(array_keys($array_ext)) - $count_period; $i < count($array_ext); $i++) { 
    735735                        $ext .= $array_ext[$i] . "."; 
    736736                    } 
     
    742742                $ext = strtolower($ext); 
    743743 
    744                 if ( $ext == $checkExt) { 
     744                if ($ext == $checkExt) { 
    745745                    $errFlag = 0; 
    746746                } 
    747747 
    748                 if($strExt == "") { 
     748                if ($strExt == "") { 
    749749                    $strExt.= $checkExt; 
    750750                } else { 
     
    762762    // value[0] = 項目名 value[1] = 判定対象  value[2] = 指定ディレクトリ 
    763763    function FIND_FILE( $value ) { 
    764         if(isset($this->arrErr[$value[1]])) { 
    765             return; 
    766         } 
    767  
    768         $this->createParam($value); 
    769         if($value[2] != "") { 
     764        if (isset($this->arrErr[$value[1]])) { 
     765            return; 
     766        } 
     767 
     768        $this->createParam($value); 
     769        if ($value[2] != "") { 
    770770            $dir = $value[2]; 
    771771        } else { 
     
    776776        $path = str_replace("//", "/", $path); 
    777777 
    778         if($this->arrParam[$value[1]] != "" && !file_exists($path)){ 
     778        if ($this->arrParam[$value[1]] != "" && !file_exists($path)) { 
    779779            $this->arrErr[$value[1]] = "※ " . $path . "が見つかりません。<br />"; 
    780780        } 
     
    785785    // value[0] = 項目名 value[1] = 判定対象  value[2] = 指定サイズ(KB) 
    786786    function FILE_EXIST_CHECK( $value ) { 
    787         if(isset($this->arrErr[$value[1]])) { 
    788             return; 
    789         } 
    790         $this->createParam($value); 
    791         if(!($_FILES[$value[1]]['size'] != "" && $_FILES[$value[1]]['size'] > 0)){ 
     787        if (isset($this->arrErr[$value[1]])) { 
     788            return; 
     789        } 
     790        $this->createParam($value); 
     791        if (!($_FILES[$value[1]]['size'] != "" && $_FILES[$value[1]]['size'] > 0)) { 
    792792            $this->arrErr[$value[1]] = "※ " . $value[0] . "をアップロードして下さい。<br />"; 
    793793        } 
     
    798798    // value[0] = 項目名 value[1] = 判定対象  value[2] = 指定サイズ(KB) 
    799799    function FILE_SIZE_CHECK( $value ) { 
    800         if(isset($this->arrErr[$value[1]])) { 
    801             return; 
    802         } 
    803         $this->createParam($value); 
    804         if( $_FILES[$value[1]]['size'] > $value[2] *  1024 ){ 
     800        if (isset($this->arrErr[$value[1]])) { 
     801            return; 
     802        } 
     803        $this->createParam($value); 
     804        if ($_FILES[$value[1]]['size'] > $value[2] *  1024 ) { 
    805805            $byte = 'KB'; 
    806             if( $value[2] >= 1000 ) { 
     806            if ($value[2] >= 1000 ) { 
    807807                $value[2] = $value[2] / 1000; 
    808808                $byte = 'MB'; 
     
    816816    // value[0] = 項目名 value[1] = 判定対象文字列 
    817817    function FILE_NAME_CHECK( $value ) { 
    818         if(isset($this->arrErr[$value[1]])) { 
    819             return; 
    820         } 
    821         $this->createParam($value); 
    822         if( strlen($_FILES[$value[1]]['name']) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $_FILES[$value[1]]['name']) ) { 
     818        if (isset($this->arrErr[$value[1]])) { 
     819            return; 
     820        } 
     821        $this->createParam($value); 
     822        if (strlen($_FILES[$value[1]]['name']) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $_FILES[$value[1]]['name']) ) { 
    823823            $this->arrErr[$value[1]] = "※ " . $value[0] . "のファイル名に日本語やスペースは使用しないで下さい。<br />"; 
    824824        } 
     
    829829    // value[0] = 項目名 value[1] = 判定対象文字列 
    830830    function FILE_NAME_CHECK_BY_NOUPLOAD( $value ) { 
    831         if(isset($this->arrErr[$value[1]])) { 
    832             return; 
    833         } 
    834         $this->createParam($value); 
    835         if( strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $this->arrParam[$value[1]]) || preg_match("/[\\]/" ,$this->arrParam[$value[1]])) { 
     831        if (isset($this->arrErr[$value[1]])) { 
     832            return; 
     833        } 
     834        $this->createParam($value); 
     835        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $this->arrParam[$value[1]]) || preg_match("/[\\]/" ,$this->arrParam[$value[1]])) { 
    836836            $this->arrErr[$value[1]] = "※ " . $value[0] . "のファイル名に日本語やスペースは使用しないで下さい。<br />"; 
    837837        } 
     
    844844    // value[3] = DD 
    845845    function CHECK_DATE($value) { 
    846         if(isset($this->arrErr[$value[1]])) { 
     846        if (isset($this->arrErr[$value[1]])) { 
    847847            return; 
    848848        } 
    849849        $this->createParam($value); 
    850850        // 少なくともどれか一つが入力されている。 
    851         if($this->arrParam[$value[1]] > 0 || $this->arrParam[$value[2]] > 0 || $this->arrParam[$value[3]] > 0) { 
     851        if ($this->arrParam[$value[1]] > 0 || $this->arrParam[$value[2]] > 0 || $this->arrParam[$value[3]] > 0) { 
    852852            // 年月日のどれかが入力されていない。 
    853             if(!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0)) { 
     853            if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0)) { 
    854854                $this->arrErr[$value[1]] = "※ " . $value[0] . "はすべての項目を入力して下さい。<br />"; 
    855             } else if ( ! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) { 
     855            } else if (! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) { 
    856856                $this->arrErr[$value[1]] = "※ " . $value[0] . "が正しくありません。<br />"; 
    857857            } 
     
    867867    // value[5] = mm 
    868868    function CHECK_DATE2($value) { 
    869         if(isset($this->arrErr[$value[1]])) { 
     869        if (isset($this->arrErr[$value[1]])) { 
    870870            return; 
    871871        } 
    872872        $this->createParam($value); 
    873873        // 少なくともどれか一つが入力されている。 
    874         if($this->arrParam[$value[1]] > 0 || $this->arrParam[$value[2]] > 0 || $this->arrParam[$value[3]] > 0 || $this->arrParam[$value[4]] >= 0 || $this->arrParam[$value[5]] >= 0) { 
     874        if ($this->arrParam[$value[1]] > 0 || $this->arrParam[$value[2]] > 0 || $this->arrParam[$value[3]] > 0 || $this->arrParam[$value[4]] >= 0 || $this->arrParam[$value[5]] >= 0) { 
    875875            // 年月日時のどれかが入力されていない。 
    876             if(!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]]) > 0 && strlen($this->arrParam[$value[5]]) > 0 )) { 
     876            if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]]) > 0 && strlen($this->arrParam[$value[5]]) > 0 )) { 
    877877                $this->arrErr[$value[1]] = "※ " . $value[0] . "はすべての項目を入力して下さい。<br />"; 
    878             } else if ( ! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) { 
     878            } else if (! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) { 
    879879                $this->arrErr[$value[1]] = "※ " . $value[0] . "が正しくありません。<br />"; 
    880880            } 
     
    887887    // value[2] = MM 
    888888    function CHECK_DATE3($value) { 
    889         if(isset($this->arrErr[$value[1]])) { 
     889        if (isset($this->arrErr[$value[1]])) { 
    890890            return; 
    891891        } 
    892892        $this->createParam($value); 
    893893        // 少なくともどれか一つが入力されている。 
    894         if($this->arrParam[$value[1]] > 0 || $this->arrParam[$value[2]] > 0) { 
     894        if ($this->arrParam[$value[1]] > 0 || $this->arrParam[$value[2]] > 0) { 
    895895            // 年月日時のどれかが入力されていない。 
    896             if(!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0)) { 
     896            if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0)) { 
    897897                $this->arrErr[$value[1]] = "※ " . $value[0] . "はすべての項目を入力して下さい。<br />"; 
    898             } else if ( ! checkdate($this->arrParam[$value[2]], 1, $this->arrParam[$value[1]])) { 
     898            } else if (! checkdate($this->arrParam[$value[2]], 1, $this->arrParam[$value[1]])) { 
    899899                $this->arrErr[$value[1]] = "※ " . $value[0] . "が正しくありません。<br />"; 
    900900            } 
     
    955955 
    956956        // 期間指定 
    957         if(isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[5]])) { 
     957        if (isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[5]])) { 
    958958            return; 
    959959        } 
    960960        $this->createParam($value); 
    961961        $error = 0; 
    962         if ( (strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0 || strlen($this->arrParam[$value[4]] ) > 0) && ! checkdate($this->arrParam[$value[3]], $this->arrParam[$value[4]], $this->arrParam[$value[2]]) ) { 
     962        if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0 || strlen($this->arrParam[$value[4]] ) > 0) && ! checkdate($this->arrParam[$value[3]], $this->arrParam[$value[4]], $this->arrParam[$value[2]]) ) { 
    963963            $this->arrErr[$value[2]] = "※ " . $value[0] . "を正しく指定してください。<br />"; 
    964964        } 
    965         if ( (strlen($this->arrParam[$value[5]]) > 0 || strlen($this->arrParam[$value[6]]) > 0 || strlen($this->arrParam[$value[7]] ) > 0) && ! checkdate($this->arrParam[$value[6]], $this->arrParam[$value[7]], $this->arrParam[$value[5]]) ) { 
     965        if ((strlen($this->arrParam[$value[5]]) > 0 || strlen($this->arrParam[$value[6]]) > 0 || strlen($this->arrParam[$value[7]] ) > 0) && ! checkdate($this->arrParam[$value[6]], $this->arrParam[$value[7]], $this->arrParam[$value[5]]) ) { 
    966966            $this->arrErr[$value[5]] = "※ " . $value[1] . "を正しく指定してください。<br />"; 
    967967        } 
    968         if ( (strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]] ) > 0) &&  (strlen($this->arrParam[$value[5]]) > 0 || strlen($this->arrParam[$value[6]]) > 0 || strlen($this->arrParam[$value[7]] ) > 0) ){ 
     968        if ((strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]] ) > 0) &&  (strlen($this->arrParam[$value[5]]) > 0 || strlen($this->arrParam[$value[6]]) > 0 || strlen($this->arrParam[$value[7]] ) > 0) ) { 
    969969 
    970970            $date1 = $this->arrParam[$value[2]] .sprintf("%02d", $this->arrParam[$value[3]]) .sprintf("%02d",$this->arrParam[$value[4]]) ."000000"; 
     
    10061006 
    10071007        // 期間指定 
    1008         if(isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[8]])) { 
     1008        if (isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[8]])) { 
    10091009            return; 
    10101010        } 
    10111011        $this->createParam($value); 
    10121012        $error = 0; 
    1013         if ( (strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0 || strlen($this->arrParam[$value[4]] ) > 0 || strlen($this->arrParam[$value[5]]) > 0) && ! checkdate($this->arrParam[$value[3]], $this->arrParam[$value[4]], $this->arrParam[$value[2]]) ) { 
     1013        if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0 || strlen($this->arrParam[$value[4]] ) > 0 || strlen($this->arrParam[$value[5]]) > 0) && ! checkdate($this->arrParam[$value[3]], $this->arrParam[$value[4]], $this->arrParam[$value[2]]) ) { 
    10141014            $this->arrErr[$value[2]] = "※ " . $value[0] . "を正しく指定してください。<br />"; 
    10151015        } 
    1016         if ( (strlen($this->arrParam[$value[8]]) > 0 || strlen($this->arrParam[$value[9]]) > 0 || strlen($this->arrParam[$value[10]] ) > 0 || strlen($this->arrParam[$value[11]] ) > 0) && ! checkdate($this->arrParam[$value[9]], $this->arrParam[$value[10]], $this->arrParam[$value[8]]) ) { 
     1016        if ((strlen($this->arrParam[$value[8]]) > 0 || strlen($this->arrParam[$value[9]]) > 0 || strlen($this->arrParam[$value[10]] ) > 0 || strlen($this->arrParam[$value[11]] ) > 0) && ! checkdate($this->arrParam[$value[9]], $this->arrParam[$value[10]], $this->arrParam[$value[8]]) ) { 
    10171017            $this->arrErr[$value[8]] = "※ " . $value[1] . "を正しく指定してください。<br />"; 
    10181018        } 
    1019         if ( (strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]] ) > 0 && strlen($this->arrParam[$value[5]] ) > 0) &&  (strlen($this->arrParam[$value[8]]) > 0 || strlen($this->arrParam[$value[9]]) > 0 || strlen($this->arrParam[$value[10]] ) > 0 || strlen($this->arrParam[$value[11]] ) > 0) ){ 
     1019        if ((strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]] ) > 0 && strlen($this->arrParam[$value[5]] ) > 0) &&  (strlen($this->arrParam[$value[8]]) > 0 || strlen($this->arrParam[$value[9]]) > 0 || strlen($this->arrParam[$value[10]] ) > 0 || strlen($this->arrParam[$value[11]] ) > 0) ) { 
    10201020 
    10211021            $date1 = $this->arrParam[$value[2]] .sprintf("%02d", $this->arrParam[$value[3]]) .sprintf("%02d",$this->arrParam[$value[4]]) .sprintf("%02d",$this->arrParam[$value[5]]).sprintf("%02d",$this->arrParam[$value[6]]).sprintf("%02d",$this->arrParam[$value[7]]); 
     
    10251025                $this->arrErr[$value[2]] = "※ " .$value[0]. "と" .$value[1]. "の期間指定が不正です。<br />"; 
    10261026            } 
    1027             if($date1 == $date2) { 
     1027            if ($date1 == $date2) { 
    10281028                $this->arrErr[$value[2]] = "※ " .$value[0]. "と" .$value[1]. "の期間指定が不正です。<br />"; 
    10291029            } 
     
    10501050 
    10511051        // 期間指定 
    1052         if(isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[4]])) { 
     1052        if (isset($this->arrErr[$value[2]]) || isset($this->arrErr[$value[4]])) { 
    10531053            return; 
    10541054        } 
    10551055        $this->createParam($value); 
    10561056        $error = 0; 
    1057         if ( (strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0) && ! checkdate($this->arrParam[$value[3]], 1, $this->arrParam[$value[2]]) ) { 
     1057        if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0) && ! checkdate($this->arrParam[$value[3]], 1, $this->arrParam[$value[2]]) ) { 
    10581058            $this->arrErr[$value[2]] = "※ " . $value[0] . "を正しく指定してください。<br />"; 
    10591059        } 
    1060         if ( (strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0) && ! checkdate($this->arrParam[$value[5]], 1, $this->arrParam[$value[4]]) ) { 
     1060        if ((strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0) && ! checkdate($this->arrParam[$value[5]], 1, $this->arrParam[$value[4]]) ) { 
    10611061            $this->arrErr[$value[4]] = "※ " . $value[1] . "を正しく指定してください。<br />"; 
    10621062        } 
    1063         if ( (strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && (strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0 ))) { 
     1063        if ((strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && (strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0 ))) { 
    10641064 
    10651065            $date1 = $this->arrParam[$value[2]] .sprintf("%02d", $this->arrParam[$value[3]]); 
     
    10741074    //ディレクトリ存在チェック 
    10751075    function DIR_CHECK ($value) { 
    1076         if(isset($this->arrErr[$value[1]])) { 
    1077             return; 
    1078         } 
    1079         $this->createParam($value); 
    1080         if(!is_dir($this->arrParam[$value[1]])) { 
     1076        if (isset($this->arrErr[$value[1]])) { 
     1077            return; 
     1078        } 
     1079        $this->createParam($value); 
     1080        if (!is_dir($this->arrParam[$value[1]])) { 
    10811081            $this->arrErr[$value[1]] = "※ 指定した" . $value[0] . "は存在しません。<br />"; 
    10821082        } 
     
    10851085    // ドメインチェック 
    10861086    function DOMAIN_CHECK ($value) { 
    1087         if(isset($this->arrErr[$value[1]])) { 
    1088             return; 
    1089         } 
    1090         if(strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^\.[^.]+\..+/i", $this->arrParam[$value[1]])) { 
     1087        if (isset($this->arrErr[$value[1]])) { 
     1088            return; 
     1089        } 
     1090        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^\.[^.]+\..+/i", $this->arrParam[$value[1]])) { 
    10911091            $this->arrErr[$value[1]] = "※ " . $value[0] . "の形式が不正です。<br />"; 
    10921092        } 
     
    10971097    // value[0] = 項目名 value[1] = 判定対象メールアドレス 
    10981098    function MOBILE_EMAIL_CHECK( $value ){ 
    1099         if(isset($this->arrErr[$value[1]])) { 
     1099        if (isset($this->arrErr[$value[1]])) { 
    11001100            return; 
    11011101        } 
    11021102        $this->createParam($value); 
    11031103        $objMobile = new SC_Helper_Mobile_Ex(); 
    1104         if(strlen($this->arrParam[$value[1]]) > 0 && !$objMobile->gfIsMobileMailAddress($this->arrParam[$value[1]])) { 
     1104        if (strlen($this->arrParam[$value[1]]) > 0 && !$objMobile->gfIsMobileMailAddress($this->arrParam[$value[1]])) { 
    11051105            $this->arrErr[$value[1]] = "※ " . $value[0] . "は携帯電話のものではありません。<br />"; 
    11061106        } 
     
    11161116     */ 
    11171117    function CHECK_REGIST_CUSTOMER_EMAIL ($value) { 
    1118         if(isset($this->arrErr[$value[1]])) { 
     1118        if (isset($this->arrErr[$value[1]])) { 
    11191119            return; 
    11201120        } 
     
    11221122 
    11231123        $register_user_flg =  SC_Helper_Customer_Ex::sfCheckRegisterUserFromEmail($this->arrParam[$value[1]]); 
    1124         switch($register_user_flg) { 
     1124        switch ($register_user_flg) { 
    11251125            case 1: 
    11261126                $this->arrErr[$value[1]] .= "※ すでに会員登録で使用されている" . $value[0] . "です。<br />"; 
     
    11421142     */ 
    11431143    function PROHIBITED_STR_CHECK( $value ) { 
    1144         if( isset($this->arrErr[$value[1]]) || empty($this->arrParam[$value[1]]) ) { 
     1144        if (isset($this->arrErr[$value[1]]) || empty($this->arrParam[$value[1]]) ) { 
    11451145            return; 
    11461146        } 
     
    11501150 
    11511151        $pattern = '/' . join('|', $prohibitedStr) . '/i'; 
    1152         if(preg_match_all($pattern, $this->arrParam[$value[1]], $matches)) { 
     1152        if (preg_match_all($pattern, $this->arrParam[$value[1]], $matches)) { 
    11531153            $this->arrErr[$value[1]] = "※ " . $value[0] . "は入力できません。<br />"; 
    11541154        } 
     
    11821182    function evalCheck($value) { 
    11831183        // falseは、正当な式と評価する。 
    1184         if($value === 'false') { 
     1184        if ($value === 'false') { 
    11851185            return true; 
    11861186        } 
Note: See TracChangeset for help on using the changeset viewer.