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 = 13-16 lines in 4 locations

src/DFExtension/Context/ModerationSidebar.behat.inc 4 locations

@@ 22-37 (lines=16) @@
19
   *
20
   * @When I open the moderation sidebar
21
   */
22
  public function openModerationSidebar() {
23
    $assert = $this->assertSession();
24
25
    // Assert that the tab exists...
26
    $link = $assert->elementExists(
27
      'named',
28
      ['link', 'Tasks'],
29
      $assert->elementExists('css', '.moderation-sidebar-toolbar-tab')
30
    );
31
32
    // ...but only open it if not already active.
33
    if ($link->hasClass('sidebar-open') == FALSE) {
34
      $link->click();
35
      $this->awaitAjax();
36
    }
37
  }
38
39
  /**
40
   * Closes the moderation sidebar.
@@ 44-59 (lines=16) @@
41
   *
42
   * @When I close the moderation sidebar
43
   */
44
  public function closeModerationSidebar() {
45
    $assert = $this->assertSession();
46
47
    // Assert that the tab exists...
48
    $link = $assert->elementExists(
49
      'named',
50
      ['link', 'Tasks'],
51
      $assert->elementExists('css', '.moderation-sidebar-toolbar-tab')
52
    );
53
54
    // ...but only open it if already active.
55
    if ($link->hasClass('sidebar-open') == TRUE) {
56
      $link->click();
57
      $this->awaitAjax();
58
    }
59
  }
60
61
  /**
62
   * Selects a moderation sidebar item.
@@ 69-81 (lines=13) @@
66
   *
67
   * @Given I select the :item moderation sidebar button
68
   */
69
  public function selectModerationSidebarButton($item) {
70
    $assert = $this->assertSession();
71
72
    // Assert that the tab exists...
73
    $link = $assert->elementExists(
74
      'named',
75
      ['button', $item],
76
      $assert->elementExists('css', '.moderation-sidebar-actions')
77
    );
78
79
    $link->click();
80
    $this->awaitAjax();
81
  }
82
83
  /**
84
   * Selects a moderation sidebar item.
@@ 91-103 (lines=13) @@
88
   *
89
   * @Given I select the :item moderation sidebar link
90
   */
91
  public function selectModerationSidebarLink($item) {
92
    $assert = $this->assertSession();
93
94
    // Assert that the tab exists...
95
    $link = $assert->elementExists(
96
      'named',
97
      ['link', $item],
98
      $assert->elementExists('css', '.moderation-sidebar-actions')
99
    );
100
101
    $link->click();
102
    $this->awaitAjax();
103
  }
104
105
}
106