Code Duplication    Length = 7-8 lines in 2 locations

src/Drupal/Driver/DrushDriver.php 2 locations

@@ 273-280 (lines=8) @@
270
  /**
271
   * {@inheritdoc}
272
   */
273
  public function createEntity($entity_type, \StdClass $entity) {
274
    $options = array(
275
      'entity_type' => $entity_type,
276
      'entity' => $entity,
277
    );
278
    $result = $this->drush('behat', array('create-entity', escapeshellarg(json_encode($options))), array());
279
    return $this->decodeJsonObject($result);
280
  }
281
282
  /**
283
   * {@inheritdoc}
@@ 285-291 (lines=7) @@
282
  /**
283
   * {@inheritdoc}
284
   */
285
  public function entityDelete($entity_type, \StdClass $entity) {
286
    $options = array(
287
      'entity_type' => $entity_type,
288
      'entity' => $entity,
289
    );
290
    $this->drush('behat', array('delete-entity', escapeshellarg(json_encode($options))), array());
291
  }
292
293
  /**
294
   * {@inheritdoc}