GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 6-7 lines in 2 locations

src/Event/Event.php 1 location

@@ 31-37 (lines=7) @@
28
   * @param $unit
29
   * @param $value
30
   */
31
  public function __construct(\DateTime $start_date, \DateTime $end_date, UnitInterface $unit, $value = 0) {
32
    $this->unit_id = $unit->getUnitId();
33
    $this->unit = $unit;
34
    $this->start_date = clone($start_date);
35
    $this->end_date = clone($end_date);
36
    $this->value = $value;
37
  }
38
39
}
40

src/Valuator/AbstractValuator.php 1 location

@@ 50-55 (lines=6) @@
47
   * @param \DateTime $end_date
48
   * @param \Roomify\Bat\Unit\UnitInterface $unit
49
   */
50
  public function __construct(\DateTime $start_date, \DateTime $end_date, UnitInterface $unit, Store $store) {
51
    $this->start_date = clone($start_date);
52
    $this->end_date = clone($end_date);
53
    $this->unit = $unit;
54
    $this->store = $store;
55
  }
56
57
  /**
58
   * @param \DateTime $start_date