protected function normalizeMappingSources(array $mappingSources): array
    {
        return \array_map(
            function ($mappingSource): array {
                if (!\is_array($mappingSource)) {
                    $mappingSource = [
                        'type' => DriverFactoryInterface::DRIVER_ANNOTATION,
                        'path' => $mappingSource,
                    ];
                }

                return $mappingSource;
            },
            $mappingSources
        );
    }
protected function normalizeMappingSources(array $mappingSources): array
    {
        return \array_map(
            function ($mappingSource): array {
                if (!\is_array($mappingSource)) {
                    $mappingSource = [
                        'type' => DriverFactoryInterface::DRIVER_ANNOTATION,
                        'path' => $mappingSource,
                    ];
                }

                return $mappingSource;
            },
            $mappingSources
        );
    }
protected function normalizeMappingSources ( array $ mappingSources ) : array { return \ array_map ( function ( $ mappingSource ) : array { if ( ! \ is_array ( $ mappingSource ) ) { $ mappingSource = [ 'type' => DriverFactoryInterface :: DRIVER_ANNOTATION , 'path' => $ mappingSource , ] ; } return $ mappingSource ; } , $ mappingSources ) ; }
Normalize mapping sources format.

@param mixed[] $mappingSources

@return string[][]
Normalize mapping sources format .