Code Duplication    Length = 9-9 lines in 2 locations

src/DayOf.php 2 locations

@@ 80-88 (lines=9) @@
77
78
		switch ( $this->calendar_type ) {
79
80
			case 'gregorian':
81
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' ) ) ];
87
88
				break;
89
90
			case 'jalali':
91
@@ 90-98 (lines=9) @@
87
88
				break;
89
90
			case 'jalali':
91
92
				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' ) ) ];
97
98
			  	break;
99
100
		  default:
101