Code Duplication    Length = 11-13 lines in 2 locations

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

@@ 319-331 (lines=13) @@
316
      }
317
    }
318
319
    if (isset($definition['calls'])) {
320
      foreach ($definition['calls'] as $call) {
321
        $method = $call[0];
322
        $arguments = array();
323
        if (!empty($call[1])) {
324
          $arguments = $call[1];
325
          if ($arguments instanceof \stdClass) {
326
            $arguments = $this->resolveServicesAndParameters($arguments);
327
          }
328
        }
329
        call_user_func_array(array($service, $method), $arguments);
330
      }
331
    }
332
333
    if (isset($definition['properties'])) {
334
      if ($definition['properties'] instanceof \stdClass) {

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

@@ 151-161 (lines=11) @@
148
      }
149
    }
150
151
    if (isset($definition['calls'])) {
152
      foreach ($definition['calls'] as $call) {
153
        $method = $call[0];
154
        $arguments = array();
155
        if (!empty($call[1])) {
156
          $arguments = $call[1];
157
          $arguments = $this->resolveServicesAndParameters($arguments);
158
        }
159
        call_user_func_array(array($service, $method), $arguments);
160
      }
161
    }
162
163
    if (isset($definition['properties'])) {
164
      $definition['properties'] = $this->resolveServicesAndParameters($definition['properties']);