@@ -120,7 +120,9 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | foreach ( $this->config['month_days_number'] as $month => $value ) { |
| 122 | 122 | |
| 123 | - if( $this->month > $month ) $days_of_year += $value; |
|
| 123 | + if( $this->month > $month ) { |
|
| 124 | + $days_of_year += $value; |
|
| 125 | + } |
|
| 124 | 126 | |
| 125 | 127 | } |
| 126 | 128 | |
@@ -136,9 +138,7 @@ discard block |
||
| 136 | 138 | |
| 137 | 139 | $days_of_gregorain_years = $days_of_gregorain_years - intval( ( ( $this->year + 621 ) / 4 ) ); |
| 138 | 140 | |
| 139 | - } |
|
| 140 | - |
|
| 141 | - elseif ( ( ( 10 == $this->month ) && ( $this->day > 10 ) ) || ( $this->month > 10 ) ) { |
|
| 141 | + } elseif ( ( ( 10 == $this->month ) && ( $this->day > 10 ) ) || ( $this->month > 10 ) ) { |
|
| 142 | 142 | |
| 143 | 143 | $days_of_gregorain_years = $days_of_gregorain_years - intval( ( ( $this->year + 622 ) / 4 ) ); |
| 144 | 144 | |
@@ -152,7 +152,9 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | foreach ($this->config['month_days_number'] as $month => $value) { |
| 154 | 154 | |
| 155 | - if ( $gregorian_month < $value ) break; |
|
| 155 | + if ( $gregorian_month < $value ) { |
|
| 156 | + break; |
|
| 157 | + } |
|
| 156 | 158 | |
| 157 | 159 | $gregorian_month -= $value; |
| 158 | 160 | } |
@@ -197,7 +199,9 @@ discard block |
||
| 197 | 199 | |
| 198 | 200 | $this->leap = new Leap( $this->year ); |
| 199 | 201 | |
| 200 | - if( $this->leap->get() && $this->month > 11 ) $this->temp_day++; |
|
| 202 | + if( $this->leap->get() && $this->month > 11 ) { |
|
| 203 | + $this->temp_day++; |
|
| 204 | + } |
|
| 201 | 205 | |
| 202 | 206 | $_year = ( ( ( ( ( $this->year - 1 ) * 365.2422 ) + $this->temp_day ) - 119) / 354.3670 ) + 1; |
| 203 | 207 | |
@@ -272,7 +276,9 @@ discard block |
||
| 272 | 276 | |
| 273 | 277 | foreach ( $this->config['month_days_number'] as $month => $value ) { |
| 274 | 278 | |
| 275 | - if( $this->month > $month ) $days_of_year += $value; |
|
| 279 | + if( $this->month > $month ) { |
|
| 280 | + $days_of_year += $value; |
|
| 281 | + } |
|
| 276 | 282 | |
| 277 | 283 | } |
| 278 | 284 | |
@@ -294,7 +300,9 @@ discard block |
||
| 294 | 300 | |
| 295 | 301 | foreach ($this->config['month_days_number'] as $month => $value) { |
| 296 | 302 | |
| 297 | - if ( $jalali_month < $value ) break; |
|
| 303 | + if ( $jalali_month < $value ) { |
|
| 304 | + break; |
|
| 305 | + } |
|
| 298 | 306 | |
| 299 | 307 | $jalali_month -= $value; |
| 300 | 308 | } |
@@ -330,7 +338,9 @@ discard block |
||
| 330 | 338 | |
| 331 | 339 | foreach ( $this->config['month_days_number'] as $month => $value ) { |
| 332 | 340 | |
| 333 | - if( $this->month > $month ) $days_of_year += $value; |
|
| 341 | + if( $this->month > $month ) { |
|
| 342 | + $days_of_year += $value; |
|
| 343 | + } |
|
| 334 | 344 | |
| 335 | 345 | } |
| 336 | 346 | |
@@ -352,7 +362,9 @@ discard block |
||
| 352 | 362 | |
| 353 | 363 | foreach ($this->config['month_days_number'] as $month => $value) { |
| 354 | 364 | |
| 355 | - if ( $gregorian_month < $value ) break; |
|
| 365 | + if ( $gregorian_month < $value ) { |
|
| 366 | + break; |
|
| 367 | + } |
|
| 356 | 368 | |
| 357 | 369 | $gregorian_month -= $value; |
| 358 | 370 | } |