Code Duplication    Length = 8-8 lines in 2 locations

src/DayOf.php 2 locations

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