@@ -80,20 +80,22 @@ |
||
80 | 80 | case 'gregorian': |
81 | 81 | |
82 | 82 | if ( intval( $this->date_time->format( 'm' ) ) == 2 && |
83 | - $this->config[ 'leap_year' ]( $this->date_time->format( 'Y' )) ) |
|
84 | - $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ] + 1; |
|
85 | - else |
|
86 | - $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
|
83 | + $this->config[ 'leap_year' ]( $this->date_time->format( 'Y' )) ) { |
|
84 | + $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ] + 1; |
|
85 | + } else { |
|
86 | + $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
|
87 | + } |
|
87 | 88 | |
88 | 89 | break; |
89 | 90 | |
90 | 91 | case 'jalali': |
91 | 92 | |
92 | 93 | if ( intval( $this->date_time->format( 'm' ) ) == 12 && |
93 | - $this->config[ 'leap_year' ]( $this->date_time->format( 'Y' )) ) |
|
94 | - $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ] + 1; |
|
95 | - else |
|
96 | - $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
|
94 | + $this->config[ 'leap_year' ]( $this->date_time->format( 'Y' )) ) { |
|
95 | + $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ] + 1; |
|
96 | + } else { |
|
97 | + $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
|
98 | + } |
|
97 | 99 | |
98 | 100 | break; |
99 | 101 |