Code Duplication    Length = 8-8 lines in 2 locations

src/Convert.php 2 locations

@@ 78-85 (lines=8) @@
75
76
    }
77
78
    public function from($calendar)
79
    {
80
81
        $this->calendar_file = include __DIR__.'/CalendarSettings/' . ucfirst($calendar) . '.php';
82
83
        return $this->calendar_file[ 'convert_from' ]( $this->date_time );
84
85
    }
86
87
    /************************************************************
88
    * Convert to specific calendar
@@ 95-102 (lines=8) @@
92
    *
93
    *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
94
    */
95
    public function to($calendar)
96
    {
97
98
        $this->calendar_file = include __DIR__.'/CalendarSettings/' . ucfirst($calendar) . '.php';
99
100
        return $this->calendar_file[ 'convert_to' ]( $this->date_time );
101
102
    }
103
104
    /**
105
   *convert jalali year to gregorian year