Code Duplication    Length = 5-5 lines in 2 locations

src/CalendarSettings/Ghamari.php 1 location

@@ 27-31 (lines=5) @@
24
25
     $temp_day = 0 ;
26
27
     for ( $i = 1 ; $i < $month ; $i++ ) {
28
29
         $temp_day += $config[ 'month_days_number' ][ $i ];
30
31
       }
32
33
      $temp_day += $day;
34

src/CalendarSettings/Shamsi.php 1 location

@@ 44-48 (lines=5) @@
41
42
        $temp_day = 0;
43
44
         for ( $i = 1 ; $i < $month ; $i++ ) {
45
46
           $temp_day += $config['month_days_number'][$i];
47
48
         }
49
50
         $temp_day += $day;
51