Skip to content

Commit 1ea8d9f

Browse files
jankonasf3l1x
authored andcommitted
Fix coding standard
1 parent 08aa13d commit 1ea8d9f

5 files changed

+9
-0
lines changed

src/DI/Helpers/MappingHelper.php

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function addXml(string $namespace, string $path, bool $simple = false): s
6969

7070
/** @var ServiceDefinition $xmlDriver */
7171
$xmlDriver = $this->getService(OrmXmlExtension::DRIVER_TAG, 'XmlDriver');
72+
7273
if ($simple) {
7374
$xmlDriver->addSetup(new Statement('$service->getLocator()->addNamespacePrefixes([? => ?])', [$path, $namespace]));
7475
} else {
@@ -87,6 +88,7 @@ private function getService(string $tag, string $name): Definition
8788
$builder = $this->extension->getContainerBuilder();
8889

8990
$service = $builder->findByTag($tag);
91+
9092
if ($service === []) {
9193
throw new InvalidStateException(sprintf('Service "%s" not found by tag "%s"', $name, $tag));
9294
}

src/DI/OrmAnnotationsExtension.php

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function loadConfiguration(): void
3838
$config = $this->config;
3939

4040
$reader = $builder->getByType(Reader::class);
41+
4142
if ($reader === null) {
4243
throw new ServiceCreationException(sprintf('Missing "%s" service', Reader::class));
4344
}
@@ -50,6 +51,7 @@ public function loadConfiguration(): void
5051
->setAutowired(false);
5152

5253
$mappingDriverDef = $this->getMappingDriverDef();
54+
5355
foreach ($config->mapping as $namespace => $path) {
5456
if (!is_dir($path)) {
5557
throw new InvalidStateException(sprintf('Given mapping path "%s" does not exist', $path));

src/DI/OrmAttributesExtension.php

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function loadConfiguration(): void
4343
->setAutowired(false);
4444

4545
$mappingDriverDef = $this->getMappingDriverDef();
46+
4647
foreach ($config->mapping as $namespace => $path) {
4748
if (!is_dir($path)) {
4849
throw new InvalidStateException(sprintf('Given mapping path "%s" does not exist', $path));

src/DI/OrmExtension.php

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public function loadDoctrineConfiguration(): void
9090
// @validate configuration class is subclass of origin one
9191
$configurationClass = $globalConfig->configurationClass;
9292
assert(is_string($configurationClass));
93+
9394
if (!is_a($configurationClass, Configuration::class, true)) {
9495
throw new InvalidArgumentException('Configuration class must be subclass of ' . Configuration::class . ', ' . $configurationClass . ' given.');
9596
}
@@ -179,6 +180,7 @@ public function loadEntityManagerConfiguration(): void
179180

180181
// @validate entity manager decorator has a real class
181182
$entityManagerDecoratorClass = $config->entityManagerDecoratorClass;
183+
182184
if (!class_exists($entityManagerDecoratorClass)) {
183185
throw new InvalidStateException(sprintf('EntityManagerDecorator class "%s" not found', $entityManagerDecoratorClass));
184186
}

src/DI/OrmXmlExtension.php

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ protected function loadStandardConfiguration(): void
5757
->setAutowired(false);
5858

5959
$mappingDriverDef = $this->getMappingDriverDef();
60+
6061
foreach ($config->mapping as $namespace => $path) {
6162
if (!is_dir($path)) {
6263
throw new InvalidStateException(sprintf('Given mapping path "%s" does not exist', $path));
@@ -82,6 +83,7 @@ protected function loadSimpleConfiguration(): void
8283
->setAutowired(false);
8384

8485
$mappingDriverDef = $this->getMappingDriverDef();
86+
8587
foreach ($config->mapping as $namespace => $path) {
8688
if (!is_dir($path)) {
8789
throw new InvalidStateException(sprintf('Given mapping path "%s" does not exist', $path));

0 commit comments

Comments
 (0)