|
@@ 86-93 (lines=8) @@
|
| 83 |
|
|
| 84 |
|
switch ( $this->calendar_type ) { |
| 85 |
|
|
| 86 |
|
case 'gregorian': |
| 87 |
|
|
| 88 |
|
$days = ( intval( $this->date_time->format( 'm' ) ) == 2 && |
| 89 |
|
$this->config[ 'leap_year' ]( $this->date_time->format( 'Y' )) ) ? |
| 90 |
|
$this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ] + 1 : |
| 91 |
|
$this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
| 92 |
|
|
| 93 |
|
break; |
| 94 |
|
|
| 95 |
|
case 'jalali': |
| 96 |
|
|
|
@@ 95-102 (lines=8) @@
|
| 92 |
|
|
| 93 |
|
break; |
| 94 |
|
|
| 95 |
|
case 'jalali': |
| 96 |
|
|
| 97 |
|
$days = ( intval( $this->date_time->format( 'm' ) ) == 12 && |
| 98 |
|
$this->config[ 'leap_year' ]( $this->date_time->format( 'Y' )) ) ? |
| 99 |
|
$this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ] + 1 : |
| 100 |
|
$this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
| 101 |
|
|
| 102 |
|
break; |
| 103 |
|
|
| 104 |
|
default: |
| 105 |
|
|