@@ -32,11 +32,11 @@ |
||
32 | 32 | parent::instantiateFixtures($fixtures); |
33 | 33 | |
34 | 34 | foreach ($fixtures as $fixture) { |
35 | - $spec = array_map(function ($property) { |
|
35 | + $spec = array_map(function($property) { |
|
36 | 36 | return $property->getValue(); |
37 | 37 | }, $fixture->getProperties()); |
38 | 38 | |
39 | - $this->cache[] = [ $spec, $this->objects->get($fixture->getName()) ]; |
|
39 | + $this->cache[] = [$spec, $this->objects->get($fixture->getName())]; |
|
40 | 40 | } |
41 | 41 | } |
42 | 42 | } |
@@ -47,8 +47,7 @@ |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | $this->getEntityManager()->flush(); |
50 | - } |
|
51 | - else { |
|
50 | + } else { |
|
52 | 51 | foreach ($fixtures as $id => $fixture) { |
53 | 52 | if (in_array($id, $files)) { |
54 | 53 | foreach ($loader->load($fixture) as $object) { |
@@ -19,11 +19,11 @@ |
||
19 | 19 | |
20 | 20 | public function registerContainerConfiguration(LoaderInterface $loader) |
21 | 21 | { |
22 | - $loader->load($this->getProjectDir() . '/app/config/config_' . $this->getEnvironment() . '.yml'); |
|
22 | + $loader->load($this->getProjectDir().'/app/config/config_'.$this->getEnvironment().'.yml'); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | public function getProjectDir() |
26 | 26 | { |
27 | - return realpath(__DIR__ . '/../'); |
|
27 | + return realpath(__DIR__.'/../'); |
|
28 | 28 | } |
29 | 29 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $properties = $fixture->getSpecs()->getProperties(); |
53 | 53 | /** @var Property $property */ |
54 | 54 | foreach ($properties as $property) { |
55 | - $spec[ $property->getName() ] = $property->getValue(); |
|
55 | + $spec[$property->getName()] = $property->getValue(); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | $cache[] = array($spec, $this->objects[$fixture->getId()]); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | public function load($filename) |
71 | 71 | { |
72 | - if ( ! is_array($filename)) { |
|
72 | + if (!is_array($filename)) { |
|
73 | 73 | $filename = array($filename); |
74 | 74 | } |
75 | 75 | $this->objects = $this->loader->loadFiles($filename)->getObjects(); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | private function finaliseAssociations() |
104 | 104 | { |
105 | - if ( ! $this->fixtureSet instanceof FixtureSet) { |
|
105 | + if (!$this->fixtureSet instanceof FixtureSet) { |
|
106 | 106 | return; |
107 | 107 | } |
108 | 108 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $spec = $fixture->getSpecs(); |
116 | 116 | foreach ($spec->getProperties() as $property) { |
117 | 117 | $value = $property->getValue(); |
118 | - if ( ! $value instanceof FixtureReferenceValue) { |
|
118 | + if (!$value instanceof FixtureReferenceValue) { |
|
119 | 119 | continue; |
120 | 120 | } |
121 | 121 |