@@ -29,7 +29,7 @@ |
||
29 | 29 | )), |
30 | 30 | array('strDescriptionEN', 'description'), |
31 | 31 | array('intHomeScore', 'homeScore'), |
32 | - array('intRound' , 'round'), |
|
32 | + array('intRound', 'round'), |
|
33 | 33 | array('intAwayScore', 'awayScore'), |
34 | 34 | array('intSpectators', 'spectators'), |
35 | 35 | array('strHomeGoalDetails', 'homeGoalDetails'), |
@@ -199,13 +199,13 @@ |
||
199 | 199 | $transform = $args[2][0]; |
200 | 200 | $reverse = $args[2][1]; |
201 | 201 | $args[2] = new Callback( |
202 | - function ($value, $context) use ($entityManager, $transform) { |
|
202 | + function($value, $context) use ($entityManager, $transform) { |
|
203 | 203 | if ($entityManager->isEmptyValue($value)) { |
204 | 204 | return $value; |
205 | 205 | } |
206 | 206 | return call_user_func_array($transform, array($value, $context, $entityManager)); |
207 | 207 | }, |
208 | - function ($value, $context) use ($entityManager, $reverse) { |
|
208 | + function($value, $context) use ($entityManager, $reverse) { |
|
209 | 209 | if ($entityManager->isEmptyValue($value)) { |
210 | 210 | return $value; |
211 | 211 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function byId($id) { |
50 | 50 | if (!isset($this->repository[$id])) { |
51 | - $factory = $this->entityManager->factory($this->getEntityTypeName()); |
|
51 | + $factory = $this->entityManager->factory($this->getEntityTypeName()); |
|
52 | 52 | $this->repository[$id] = $factory->create( |
53 | 53 | (object) array('id' => $id), |
54 | 54 | $this->getEntityTypeName(), |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $entity->update($mapped); |
80 | 80 | } |
81 | 81 | else { |
82 | - $factory = $this->entityManager->factory($this->getEntityTypeName()); |
|
82 | + $factory = $this->entityManager->factory($this->getEntityTypeName()); |
|
83 | 83 | $this->repository[$mapped->id] = $factory->create($mapped, $this->getEntityTypeName(), FALSE); |
84 | 84 | } |
85 | 85 | return $this->repository[$mapped->id]; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public function byId($id) { |
22 | 22 | if (!isset($this->repository[$id])) { |
23 | 23 | list($name, $league) = explode('|', $id); |
24 | - $factory = $this->entityManager->factory($this->getEntityTypeName()); |
|
24 | + $factory = $this->entityManager->factory($this->getEntityTypeName()); |
|
25 | 25 | $this->repository[$id] = $factory->create( |
26 | 26 | $this->entityManager->reverseMapProperties( |
27 | 27 | (object) array('id' => $id, 'name' => $name, 'league' => (object) array('id' => $league)), |