@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | $expr |
| 385 | 385 | ->expects($this->once()) |
| 386 | 386 | ->method('equals') |
| 387 | - ->with($this->callback(function ($parameter) use ($regex) { |
|
| 387 | + ->with($this->callback(function($parameter) use ($regex) { |
|
| 388 | 388 | return $parameter instanceof \MongoRegex && (string) $parameter === $regex; |
| 389 | 389 | })) |
| 390 | 390 | ->will($this->returnSelf()); |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | $expr |
| 412 | 412 | ->expects($this->once()) |
| 413 | 413 | ->method('not') |
| 414 | - ->with($this->callback(function ($parameter) use ($regex) { |
|
| 414 | + ->with($this->callback(function($parameter) use ($regex) { |
|
| 415 | 415 | return $parameter instanceof \MongoRegex && (string) $parameter === $regex; |
| 416 | 416 | })) |
| 417 | 417 | ->will($this->returnSelf()); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $definition |
| 60 | 60 | ->expects($this->once()) |
| 61 | 61 | ->method('addArgument') |
| 62 | - ->with($this->callback(function ($reference) { |
|
| 62 | + ->with($this->callback(function($reference) { |
|
| 63 | 63 | return $reference instanceof Reference |
| 64 | 64 | && (string) $reference === 'lug.resource.routing.parameter_resolver'; |
| 65 | 65 | })) |
@@ -33,13 +33,13 @@ |
||
| 33 | 33 | ->setAllowedTypes('resource', ResourceInterface::class) |
| 34 | 34 | ->setAllowedTypes('factory', FactoryInterface::class) |
| 35 | 35 | ->setDefaults([ |
| 36 | - 'data_class' => function (Options $options) { |
|
| 36 | + 'data_class' => function(Options $options) { |
|
| 37 | 37 | return $options['resource']->getModel(); |
| 38 | 38 | }, |
| 39 | - 'label_prefix' => function (Options $options) { |
|
| 39 | + 'label_prefix' => function(Options $options) { |
|
| 40 | 40 | return 'lug.'.$options['resource']->getName(); |
| 41 | 41 | }, |
| 42 | - 'empty_data' => function (FormInterface $form) { |
|
| 42 | + 'empty_data' => function(FormInterface $form) { |
|
| 43 | 43 | return $form->isRequired() || !$form->isEmpty() |
| 44 | 44 | ? $form->getConfig()->getOption('factory')->create() |
| 45 | 45 | : null; |