Test Failed
Pull Request — master (#167)
by David de
03:07
created
lib/Doctrine/Common/DataFixtures/ReferenceRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     protected function getIdentifier($reference, $uow)
62 62
     {
63 63
         // In case Reference is not yet managed in UnitOfWork
64
-        if (! $this->hasIdentifier($reference)) {
64
+        if ( ! $this->hasIdentifier($reference)) {
65 65
             $class = $this->manager->getClassMetadata(get_class($reference));
66 66
             
67 67
             $values = $class->getIdentifierValues($reference);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             // See https://github.com/doctrine/data-fixtures/issues/135 and
70 70
             // https://github.com/doctrine/data-fixtures/issues/167
71 71
             foreach ($values as $key => $value) {
72
-                if (!is_scalar($value)) {
72
+                if ( ! is_scalar($value)) {
73 73
                     // To prevent "Array to string conversion" in
74 74
                     // UnitOfWork::tryGetById, we can only return a single
75 75
                     // identifier. This does mean that related entities that
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $this->references[$name] = $reference;
111 111
 
112
-        if (! $this->hasIdentifier($reference)) {
112
+        if ( ! $this->hasIdentifier($reference)) {
113 113
             return;
114 114
         }
115 115
 
@@ -166,15 +166,15 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public function getReference($name)
168 168
     {
169
-        if (! $this->hasReference($name)) {
169
+        if ( ! $this->hasReference($name)) {
170 170
             throw new OutOfBoundsException(sprintf('Reference to "%s" does not exist', $name));
171 171
         }
172 172
 
173 173
         $reference = $this->references[$name];
174 174
         $meta      = $this->manager->getClassMetadata(get_class($reference));
175 175
 
176
-        if (! $this->manager->contains($reference) && isset($this->identities[$name])) {
177
-            $reference               = $this->manager->getReference(
176
+        if ( ! $this->manager->contains($reference) && isset($this->identities[$name])) {
177
+            $reference = $this->manager->getReference(
178 178
                 $meta->name,
179 179
                 $this->identities[$name]
180 180
             );
Please login to merge, or discard this patch.