Ignore:
Timestamp:
2012/02/06 21:27:04 (10 years ago)
Author:
Seasoft
Message:

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

  • 無意味なスペースを削除
File:
1 edited

Legend:

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

    r21441 r21444  
    3131    // コンストラクタ 
    3232    function SC_Date($start_year='', $end_year='') { 
    33         if ( $start_year )  $this->setStartYear($start_year); 
    34         if ( $end_year )    $this->setEndYear($end_year); 
     33        if ( $start_year)  $this->setStartYear($start_year); 
     34        if ( $end_year)    $this->setEndYear($end_year); 
    3535    } 
    3636 
     
    7070     */ 
    7171    function getYear($year = '', $default_year = false, $default_key = '----') { 
    72         if ( $year ) $this->setStartYear($year); 
     72        if ( $year) $this->setStartYear($year); 
    7373 
    7474        $year = $this->start_year; 
    75         if ( ! $year ) $year = DATE('Y'); 
     75        if ( ! $year) $year = DATE('Y'); 
    7676 
    7777        $end_year = $this->end_year; 
    78         if ( ! $end_year ) $end_year = (DATE('Y') + 3); 
     78        if ( ! $end_year) $end_year = (DATE('Y') + 3); 
    7979 
    8080        $year_array = array(); 
     
    9494 
    9595    function getZeroYear($year = ''){ 
    96         if ( $year ) $this->setStartYear($year); 
     96        if ( $year) $this->setStartYear($year); 
    9797 
    9898        $year = $this->start_year; 
    99         if ( ! $year ) $year = DATE('Y'); 
     99        if ( ! $year) $year = DATE('Y'); 
    100100 
    101101        $end_year = $this->end_year; 
    102         if ( ! $end_year ) $end_year = (DATE('Y') + 3); 
     102        if ( ! $end_year) $end_year = (DATE('Y') + 3); 
    103103 
    104104        $year_array = array(); 
Note: See TracChangeset for help on using the changeset viewer.