Code Duplication    Length = 7-7 lines in 2 locations

src/DayOf.php 2 locations

@@ 39-45 (lines=7) @@
36
   * @since Aug, 03 2015
37
   * @return integer
38
   */
39
  public function year() {
40
41
    $this->config = include(  'CalendarSettings/' . ucfirst( $this->calendar_type ) . '.php' );
42
43
    return $this->config[ 'day_of_year' ]( $this->date_time );
44
45
  }
46
47
48
  /**
@@ 53-59 (lines=7) @@
50
   * @since Aug, 09 2015
51
   * @return integer
52
   */
53
  public function week() {
54
55
    $this->config = include(  'CalendarSettings/' . ucfirst( $this->calendar_type ) . '.php' );
56
57
    return $this->config[ 'day_of_week' ]( $this->date_time );
58
59
  }
60
61
}
62