@@ -495,7 +495,7 @@ |
||
| 495 | 495 | */ |
| 496 | 496 | public function hasCriteriaNamed($criteriaAlias) |
| 497 | 497 | { |
| 498 | - return $this->criterias->exists(function ($key, $element) use ($criteriaAlias) { |
|
| 498 | + return $this->criterias->exists(function($key, $element) use ($criteriaAlias) { |
|
| 499 | 499 | return $criteriaAlias === $element->getName(); |
| 500 | 500 | }); |
| 501 | 501 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | 'class' => 'Victoire\Bundle\BlogBundle\Entity\Blog', |
| 27 | 27 | 'property' => 'name', |
| 28 | 28 | 'preferred_choices' => $options['blog'] ? [$options['blog']] : [], |
| 29 | - 'query_builder' => function (EntityRepository $er) use ($options) { |
|
| 29 | + 'query_builder' => function(EntityRepository $er) use ($options) { |
|
| 30 | 30 | return $er->joinTranslations($options['locale'])->getInstance(); |
| 31 | 31 | }, |
| 32 | 32 | ] |