Code Duplication    Length = 7-7 lines in 2 locations

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

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