Code Duplication    Length = 3-3 lines in 2 locations

lib/Drupal/Component/DependencyInjection/Container.php 1 location

@@ 224-226 (lines=3) @@
221
   *   and cannot be instantiated.
222
   */
223
  protected function createService(array $definition, $id) {
224
    if (isset($definition['synthetic']) && $definition['synthetic'] === TRUE) {
225
      throw new RuntimeException(sprintf('You have requested a synthetic service ("%s"). The service container does not know how to construct this service. The service will need to be set before it is first used.', $id));
226
    }
227
228
    $arguments = array();
229
    if (isset($definition['arguments'])) {

lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php 1 location

@@ 60-62 (lines=3) @@
57
    // - There are no instanceof checks on \stdClass, which are used in the
58
    //   parent class to avoid resolving services and parameters when it is
59
    //   known from dumping that there is nothing to resolve.
60
    if (isset($definition['synthetic']) && $definition['synthetic'] === TRUE) {
61
      throw new RuntimeException(sprintf('You have requested a synthetic service ("%s"). The service container does not know how to construct this service. The service will need to be set before it is first used.', $id));
62
    }
63
64
    $arguments = array();
65
    if (isset($definition['arguments'])) {