Code Duplication    Length = 7-7 lines in 2 locations

src/Drupal/DrupalExtension/Context/RawDrupalContext.php 2 locations

@@ 202-208 (lines=7) @@
199
   * @throws \Exception
200
   * @return
201
   */
202
  public function getDrupalText($name) {
203
    $text = $this->getDrupalParameter('text');
204
    if (!isset($text[$name])) {
205
      throw new \Exception(sprintf('No such Drupal string: %s', $name));
206
    }
207
    return $text[$name];
208
  }
209
210
  /**
211
   * Returns a specific css selector.
@@ 216-222 (lines=7) @@
213
   * @param $name
214
   *   string CSS selector name
215
   */
216
  public function getDrupalSelector($name) {
217
    $text = $this->getDrupalParameter('selectors');
218
    if (!isset($text[$name])) {
219
      throw new \Exception(sprintf('No such selector configured: %s', $name));
220
    }
221
    return $text[$name];
222
  }
223
224
  /**
225
   * Get active Drupal Driver.