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 = [
275
      'entity_type' => $entity_type,
276
      'entity' => $entity,
277
    ];
278
    $result = $this->drush('behat',
279
      ['create-entity', escapeshellarg(json_encode($options))], []);
280
    return $this->decodeJsonObject($result);
281
  }
282
283
  /**
@@ 286-292 (lines=7) @@
283
  /**
284
   * {@inheritdoc}
285
   */
286
  public function entityDelete($entity_type, \StdClass $entity) {
287
    $options = [
288
      'entity_type' => $entity_type,
289
      'entity' => $entity,
290
    ];
291
    $this->drush('behat',
292
      ['delete-entity', escapeshellarg(json_encode($options))], []);
293
  }
294
295
  /**