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

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