Code Duplication    Length = 9-10 lines in 2 locations

lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php 1 location

@@ 103-111 (lines=9) @@
100
   * @return array
101
   *   The escaped and prepared parameters of the container.
102
   */
103
  protected function getParameters() {
104
    if (!$this->container->getParameterBag()->all()) {
105
      return array();
106
    }
107
108
    $parameters = $this->container->getParameterBag()->all();
109
    $is_frozen = $this->container->isFrozen();
110
    return $this->prepareParameters($parameters, $is_frozen);
111
  }
112
113
  /**
114
   * Gets services of the container as a PHP array.

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

@@ 51-60 (lines=10) @@
48
   * @return array
49
   *   The escaped and prepared parameters of the container.
50
   */
51
  protected function getParameters()
52
  {
53
    if (!$this->container->getParameterBag()->all()) {
54
      return array();
55
    }
56
57
    $parameters = $this->container->getParameterBag()->all();
58
    $is_frozen = $this->container->isFrozen();
59
    return $this->prepareParameters($parameters, $is_frozen);
60
  }
61
62
  /**
63
   * Returns services of the container as a PHP Array.