Test Failed
Branch main (71aea1)
by Iain
22:07
created
src/Athena/DashboardSectionManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Athena/AbstractSection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
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
         };
Please login to merge, or discard this patch.
src/ParthenonBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/RuleEngine/Repository/ProxyFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/RuleEngine/Form/Type/AddRuleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/RuleEngine/Action/Email.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/DependencyInjection/Modules/User.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.
src/Common/Elasticsearch/QueryBuilder.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Subscriptions/Athena/TeamSubscriberSection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.