Code Duplication    Length = 3-3 lines in 2 locations

src/CalendarSettings/Hijri.php 1 location

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

src/CalendarSettings/Jalali.php 1 location

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