Code Duplication    Length = 5-5 lines in 2 locations

src/IPub/Packages/DI/PackagesExtension.php 2 locations

@@ 69-73 (lines=5) @@
66
		// Get container builder
67
		$builder = $this->getContainerBuilder();
68
		/** @var array $configuration */
69
		if (method_exists($this, 'validateConfig')) {
70
			$configuration = $this->validateConfig($this->defaults);
71
		} else {
72
			$configuration = $this->getConfig($this->defaults);
73
		}
74
75
		/**
76
		 * Load packages configuration
@@ 156-160 (lines=5) @@
153
		// Get container builder
154
		$builder = $this->getContainerBuilder();
155
		/** @var array $configuration */
156
		if (method_exists($this, 'validateConfig')) {
157
			$configuration = $this->validateConfig($this->defaults);
158
		} else {
159
			$configuration = $this->getConfig($this->defaults);
160
		}
161
162
		// Get packages manager
163
		$manager = $builder->getDefinition($this->prefix('manager'));