@@ -22,13 +22,13 @@ |
||
| 22 | 22 | { |
| 23 | 23 | $reflectionObject = new \ReflectionObject($this->getEntity()); |
| 24 | 24 | |
| 25 | - $camelCaseToSnakeCase = function ($input) { |
|
| 25 | + $camelCaseToSnakeCase = function($input) { |
|
| 26 | 26 | if (0 === preg_match('/[A-Z]/', $input)) { |
| 27 | 27 | return $input; |
| 28 | 28 | } |
| 29 | 29 | $pattern = '/([a-z])([A-Z])/'; |
| 30 | 30 | |
| 31 | - return strtolower(preg_replace_callback($pattern, function ($a) { |
|
| 31 | + return strtolower(preg_replace_callback($pattern, function($a) { |
|
| 32 | 32 | return $a[1].'_'.strtolower($a[2]); |
| 33 | 33 | }, $input)); |
| 34 | 34 | }; |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $bundles = $container->getParameter('kernel.bundles'); |
| 46 | 46 | |
| 47 | 47 | if (isset($bundles['DoctrineBundle'])) { |
| 48 | - $container->addCompilerPass(DoctrineOrmMappingsPass::createXmlMappingDriver($mappings, ['parthenon.orm'], )); |
|
| 48 | + $container->addCompilerPass(DoctrineOrmMappingsPass::createXmlMappingDriver($mappings, ['parthenon.orm'],)); |
|
| 49 | 49 | Type::overrideType('datetime', UtcDateTimeType::class); |
| 50 | 50 | Type::overrideType('datetimetz', UtcDateTimeType::class); |
| 51 | 51 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $factory = new Factory(); |
| 26 | 26 | $proxy = $factory->createProxy( |
| 27 | 27 | $ruleEngineRepository, |
| 28 | - ['save' => function ($proxy, $instance, $method, $params) { $this->instantProcessor->process(current($params)); }], |
|
| 28 | + ['save' => function($proxy, $instance, $method, $params) { $this->instantProcessor->process(current($params)); }], |
|
| 29 | 29 | [] |
| 30 | 30 | ); |
| 31 | 31 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | public function buildForm(FormBuilderInterface $builder, array $options) |
| 33 | 33 | { |
| 34 | 34 | foreach ($options['entityProperties'] as $entityName => $properties) { |
| 35 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($properties, $entityName) { |
|
| 35 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($properties, $entityName) { |
|
| 36 | 36 | $rule = $event->getData(); |
| 37 | 37 | $form = $event->getForm(); |
| 38 | 38 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | { |
| 47 | 47 | $entityForm = parent::buildEntityForm($entityForm); |
| 48 | 48 | |
| 49 | - $planNames = array_map(function (Plan $plan) { |
|
| 49 | + $planNames = array_map(function(Plan $plan) { |
|
| 50 | 50 | return $plan->getName(); |
| 51 | 51 | }, $this->planManager->getPlans()); |
| 52 | 52 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | { |
| 47 | 47 | $entityForm = parent::buildEntityForm($entityForm); |
| 48 | 48 | |
| 49 | - $planNames = array_map(function (Plan $plan) { |
|
| 49 | + $planNames = array_map(function(Plan $plan) { |
|
| 50 | 50 | return $plan->getName(); |
| 51 | 51 | }, $this->planManager->getPlans()); |
| 52 | 52 | |