@@ -31,11 +31,11 @@ |
||
31 | 31 | */ |
32 | 32 | public function getDashboardSections(): array |
33 | 33 | { |
34 | - usort($this->dashboardSections, function (DashboardSectionInterface $dashboardSectionA, DashboardSectionInterface $dashboardSectionB) { |
|
34 | + usort($this->dashboardSections, function(DashboardSectionInterface $dashboardSectionA, DashboardSectionInterface $dashboardSectionB) { |
|
35 | 35 | return $dashboardSectionA->getPriority() <=> $dashboardSectionB->getPriority(); |
36 | 36 | }); |
37 | 37 | |
38 | - return array_filter($this->dashboardSections, function (DashboardSectionInterface $dashboardSection) { |
|
38 | + return array_filter($this->dashboardSections, function(DashboardSectionInterface $dashboardSection) { |
|
39 | 39 | return $dashboardSection->isEnabled(); |
40 | 40 | }); |
41 | 41 | } |
@@ -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 |
@@ -51,7 +51,7 @@ |
||
51 | 51 | 'name' => 'subject', |
52 | 52 | 'type' => 'text', |
53 | 53 | ], |
54 | - ]; |
|
54 | + ]; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | public function execute(array $options, $entity): void |
@@ -49,7 +49,7 @@ |
||
49 | 49 | ->children() |
50 | 50 | ->scalarNode('default_role')->defaultValue('ROLE_USER')->end() |
51 | 51 | ->arrayNode('user_assignable') |
52 | - ->useAttributeAsKey('name') |
|
52 | + ->useAttributeAsKey('name') |
|
53 | 53 | ->scalarPrototype()->end() |
54 | 54 | ->end() |
55 | 55 | ->arrayNode('athena_assignable') |
@@ -93,11 +93,11 @@ discard block |
||
93 | 93 | $query = current($this->queries); |
94 | 94 | |
95 | 95 | return $this->addAggregation([ |
96 | - 'query' => [ |
|
97 | - $query['queryType'] => [ |
|
98 | - $query['fieldName'] => $query['fieldValue'], |
|
99 | - ], |
|
100 | - ], |
|
96 | + 'query' => [ |
|
97 | + $query['queryType'] => [ |
|
98 | + $query['fieldName'] => $query['fieldValue'], |
|
99 | + ], |
|
100 | + ], |
|
101 | 101 | ]); |
102 | 102 | } |
103 | 103 | |
@@ -127,10 +127,10 @@ discard block |
||
127 | 127 | $output['bool'][$qualifierType] = []; |
128 | 128 | } |
129 | 129 | $output['bool'][$qualifierType][] = [ |
130 | - $query['queryType'] => [ |
|
131 | - $query['fieldName'] => $query['fieldValue'], |
|
132 | - ], |
|
133 | - ]; |
|
130 | + $query['queryType'] => [ |
|
131 | + $query['fieldName'] => $query['fieldValue'], |
|
132 | + ], |
|
133 | + ]; |
|
134 | 134 | } |
135 | 135 | } |
136 | 136 |
@@ -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 |