Code Duplication    Length = 8-8 lines in 2 locations

lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php 1 location

@@ 327-334 (lines=8) @@
324
   *
325
   * @return string
326
   */
327
  protected function getServiceCall($id, Reference $reference = null)
328
  {
329
    if (null !== $reference && ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE !== $reference->getInvalidBehavior()) {
330
      return sprintf('@?%s', $id);
331
    }
332
333
    return sprintf('@%s', $id);
334
  }
335
336
  /**
337
   * Gets parameter call.

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php 1 location

@@ 273-280 (lines=8) @@
270
     *
271
     * @return string
272
     */
273
    private function getServiceCall($id, Reference $reference = null)
274
    {
275
        if (null !== $reference && ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE !== $reference->getInvalidBehavior()) {
276
            return sprintf('@?%s', $id);
277
        }
278
279
        return sprintf('@%s', $id);
280
    }
281
282
    /**
283
     * Gets parameter call.