Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 216-222 (lines=7) @@
213
   * @throws \Exception
214
   * @return
215
   */
216
  public function getDrupalText($name) {
217
    $text = $this->getDrupalParameter('text');
218
    if (!isset($text[$name])) {
219
      throw new \Exception(sprintf('No such Drupal string: %s', $name));
220
    }
221
    return $text[$name];
222
  }
223
224
  /**
225
   * Returns a specific css selector.
@@ 230-236 (lines=7) @@
227
   * @param $name
228
   *   string CSS selector name
229
   */
230
  public function getDrupalSelector($name) {
231
    $text = $this->getDrupalParameter('selectors');
232
    if (!isset($text[$name])) {
233
      throw new \Exception(sprintf('No such selector configured: %s', $name));
234
    }
235
    return $text[$name];
236
  }
237
238
  /**
239
   * Get active Drupal Driver.