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-10 lines in 2 locations

src/Constraint/CheckInDayConstraint.php 2 locations

@@ 96-101 (lines=6) @@
93
    // as necessary.
94
95
    // Specify a date range constraint.
96
    if ($start_date && $end_date) {
97
      $text = 'From @start_date to @end_date';
98
99
      $args['@start_date'] = $start_date;
100
      $args['@end_date'] = $end_date;
101
    }
102
103
    // Specify the day of the week constraint.
104
    if ($day_of_the_week) {
@@ 104-113 (lines=10) @@
101
    }
102
103
    // Specify the day of the week constraint.
104
    if ($day_of_the_week) {
105
      if ($start_date && $end_date) {
106
        $text = 'From @start_date to @end_date, bookings must start on @day_of_the_week';
107
      } else {
108
        $text = 'Bookings must start on @day_of_the_week';
109
      }
110
111
      $args['@day_of_the_week'] = $day_of_the_week;
112
    }
113
114
    return array('text' => $text, 'args' => $args);
115
  }
116