Code Duplication    Length = 7-7 lines in 2 locations

src/DependencyInjection/Container.php 2 locations

@@ 328-334 (lines=7) @@
325
326
      if (strpos($argument, '%') === 0) {
327
        $name = substr($argument, 1, -1);
328
        if (!isset($this->parameters[$name])) {
329
          if ($invalidBehavior === ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
330
            throw new RuntimeException("Could not find parameter: $name");
331
          }
332
          $arguments[$key] = NULL;
333
          continue;
334
        }
335
        $arguments[$key] = $this->parameters[$name];
336
      }
337
      else if (strpos($argument, '@') === 0) {
@@ 343-349 (lines=7) @@
340
          $name = substr($name, 1);
341
          $invalidBehavior = ContainerInterface::NULL_ON_INVALID_REFERENCE;
342
        }
343
        if (!isset($this->serviceDefinitions[$name])) {
344
          if ($invalidBehavior === ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
345
            throw new RuntimeException("Could not find service: $name");
346
          }
347
          $arguments[$key] = NULL;
348
          continue;
349
        }
350
        $arguments[$key] = $this->get($name, $invalidBehavior);
351
      }
352
    }