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

src/DFExtension/Context/UtilityContext.behat.inc 2 locations

@@ 43-54 (lines=12) @@
40
   *
41
   * @Then :count element(s) should match :selector
42
   */
43
  public function assertSelectorMatch($selector, $count) {
44
    $session = $this->getSession();
45
46
    $result = count($session->getPage()->findAll('css', $selector));
47
48
    if ($result != $count) {
49
      throw new ExpectationException(
50
        '"' . $selector . '" matched ' . $result . ' element(s), expected ' . $count . '.',
51
        $session->getDriver()
52
      );
53
    }
54
  }
55
56
  /**
57
   * Asserts that a minimum number of elements match a CSS selector.
@@ 69-80 (lines=12) @@
66
   *
67
   * @Then at least :count element(s) should match :selector
68
   */
69
  public function assertSelectorMatchAtLeast($selector, $count) {
70
    $session = $this->getSession();
71
72
    $result = count($session->getPage()->findAll('css', $selector));
73
74
    if ($result < $count) {
75
      throw new ExpectationException(
76
        '"' . $selector . '" matched ' . $result . ' element(s), expected at least ' . $count . '.',
77
        $session->getDriver()
78
      );
79
    }
80
  }
81
82
  /**
83
   * Asserts that no elements match a CSS selector.