Code Duplication    Length = 3-3 lines in 2 locations

src/Drupal/Driver/Wrapper/Entity/DriverEntityBase.php 1 location

@@ 455-457 (lines=3) @@
452
   *   The directory to search for additional project-specific driver plugins.
453
   */
454
  protected function setEntityPluginManager($manager, $projectPluginRoot) {
455
    if (!($manager instanceof DriverPluginManagerInterface)) {
456
      $manager = new DriverEntityPluginManager($this->namespaces, $this->cache_backend, $this->module_handler, $this->version, $projectPluginRoot);
457
    }
458
    $this->entityPluginManager = $manager;
459
  }
460

src/Drupal/Driver/Wrapper/Field/DriverFieldBase.php 1 location

@@ 219-221 (lines=3) @@
216
   *   The directory to search for additional project-specific driver plugins.
217
   */
218
  protected function setFieldPluginManager($manager, $projectPluginRoot) {
219
    if (!($manager instanceof DriverPluginManagerInterface)) {
220
      $manager = new DriverFieldPluginManager($this->namespaces, $this->cache_backend, $this->module_handler, $this->version, $projectPluginRoot);
221
    }
222
    $this->fieldPluginManager = $manager;
223
  }
224