Code Duplication    Length = 8-8 lines in 4 locations

src/DI/UserBundleExtension.php 4 locations

@@ 103-110 (lines=8) @@
100
	/**
101
	 * {@inheritDoc}
102
	 */
103
	public function getDatabaseTypes(): array
104
	{
105
		return array_merge([], ...array_map(static function (DatabaseTypeProviderInterface $provider) {
106
			return $provider->getDatabaseTypes();
107
		}, array_filter(array_values($this->extensions), static function ($extension) {
108
			return $extension instanceof DatabaseTypeProviderInterface;
109
		})));
110
	}
111
112
	/**
113
	 * {@inheritDoc}
@@ 115-122 (lines=8) @@
112
	/**
113
	 * {@inheritDoc}
114
	 */
115
	public function getEntityMappings(): array
116
	{
117
		return array_merge([], ...array_map(static function (EntityMappingProviderInterface $provider) {
118
			return $provider->getEntityMappings();
119
		}, array_filter(array_values($this->extensions), static function ($extension) {
120
			return $extension instanceof EntityMappingProviderInterface;
121
		})));
122
	}
123
124
	/**
125
	 * {@inheritDoc}
@@ 127-134 (lines=8) @@
124
	/**
125
	 * {@inheritDoc}
126
	 */
127
	public function getTargetEntities(): array
128
	{
129
		return array_merge([], ...array_map(static function (TargetEntityProviderInterface $provider) {
130
			return $provider->getTargetEntities();
131
		}, array_filter(array_values($this->extensions), static function ($extension) {
132
			return $extension instanceof TargetEntityProviderInterface;
133
		})));
134
	}
135
136
	/**
137
	 * {@inheritDoc}
@@ 139-146 (lines=8) @@
136
	/**
137
	 * {@inheritDoc}
138
	 */
139
	public function getTranslationResources(): array
140
	{
141
		return array_merge([], ...array_map(static function (TranslationProviderInterface $provider) {
142
			return $provider->getTranslationResources();
143
		}, array_filter(array_values($this->extensions), static function ($extension) {
144
			return $extension instanceof TranslationProviderInterface;
145
		})));
146
	}
147
}
148