@@ -43,8 +43,8 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | if ( |
| 45 | 45 | null === $container |
| 46 | - || ! $container instanceof ContainerInterface |
|
| 47 | - || ! $container->has(ImportCommand::class) |
|
| 46 | + || !$container instanceof ContainerInterface |
|
| 47 | + || !$container->has(ImportCommand::class) |
|
| 48 | 48 | ) {
|
| 49 | 49 | return; |
| 50 | 50 | } |
@@ -59,6 +59,6 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | public function getConfig(): array |
| 61 | 61 | {
|
| 62 | - return require __DIR__ . '/../config/module.config.php'; |
|
| 62 | + return require __DIR__.'/../config/module.config.php'; |
|
| 63 | 63 | } |
| 64 | 64 | } |
@@ -29,13 +29,13 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | $loader = new Loader(); |
| 31 | 31 | |
| 32 | - if (! empty($options['directories'])) {
|
|
| 32 | + if (!empty($options['directories'])) {
|
|
| 33 | 33 | foreach ($options['directories'] as $directory) {
|
| 34 | 34 | $loader->loadFromDirectory($directory); |
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - if (! empty($options['fixtures'])) {
|
|
| 38 | + if (!empty($options['fixtures'])) {
|
|
| 39 | 39 | foreach ($this->getFixtures($container, $options['fixtures'], $requestedName) as $fixture) {
|
| 40 | 40 | $loader->addFixture($fixture); |
| 41 | 41 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | $fixture = $container->get($fixture); |
| 70 | 70 | } |
| 71 | - if (! $fixture instanceof FixtureInterface) {
|
|
| 71 | + if (!$fixture instanceof FixtureInterface) {
|
|
| 72 | 72 | throw new ServiceNotCreatedException( |
| 73 | 73 | sprintf( |
| 74 | 74 | 'The data fixture must be an object of type \'%s\'; \'%s\' provided in \'%s\'', |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public function getCollectionReference(string $name): iterable |
| 36 | 36 | {
|
| 37 | - if (! $this->hasCollectionReference($name)) {
|
|
| 37 | + if (!$this->hasCollectionReference($name)) {
|
|
| 38 | 38 | throw new \OutOfBoundsException(sprintf('Collection reference to "%s" does not exist', $name));
|
| 39 | 39 | } |
| 40 | 40 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | public function setCollectionReference(string $name, iterable $collection): void |
| 54 | 54 | {
|
| 55 | 55 | foreach ($collection as $index => $item) {
|
| 56 | - $itemName = $name . '.' . $index; |
|
| 56 | + $itemName = $name.'.'.$index; |
|
| 57 | 57 | $this->setReference($itemName, $item); |
| 58 | 58 | $this->collectionReferences[$name][$index] = $itemName; |
| 59 | 59 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | |
| 64 | 64 | $setReferenceArgs = $getReferenceArgs = []; |
| 65 | 65 | foreach ($data as $index => $item) {
|
| 66 | - $itemName = $collectionName . '.' . $index; |
|
| 66 | + $itemName = $collectionName.'.'.$index; |
|
| 67 | 67 | $setReferenceArgs[] = [$itemName, $item]; |
| 68 | 68 | $getReferenceArgs[] = [$itemName]; |
| 69 | 69 | } |