@@ -36,7 +36,7 @@ |
||
36 | 36 | ]); |
37 | 37 | $builder->add('verifySecret', SubmitType::class, [ |
38 | 38 | 'label' => 'ss.form.ss_authenticate_safe_store_type.button.continue', |
39 | - 'attr' => [ 'class' => 'btn btn-primary pull-right' ], |
|
39 | + 'attr' => ['class' => 'btn btn-primary pull-right'], |
|
40 | 40 | ]); |
41 | 41 | } |
42 | 42 |
@@ -38,13 +38,13 @@ |
||
38 | 38 | ]); |
39 | 39 | $builder->add('resendChallenge', AnchorType::class, [ |
40 | 40 | 'label' => 'ss.form.ss_verify_sms_challenge.button.resend_challenge', |
41 | - 'attr' => [ 'class' => 'btn btn-default' ], |
|
41 | + 'attr' => ['class' => 'btn btn-default'], |
|
42 | 42 | 'route' => $options['data']->resendRoute, |
43 | 43 | 'route_parameters' => $options['data']->resendRouteParameters, |
44 | 44 | ]); |
45 | 45 | $builder->add('verifyChallenge', SubmitType::class, [ |
46 | 46 | 'label' => 'ss.form.ss_verify_sms_challenge.button.verify_challenge', |
47 | - 'attr' => [ 'class' => 'btn btn-primary pull-right' ], |
|
47 | + 'attr' => ['class' => 'btn btn-primary pull-right'], |
|
48 | 48 | ]); |
49 | 49 | } |
50 | 50 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | ]) |
51 | 51 | ->add('sendChallenge', SubmitType::class, [ |
52 | 52 | 'label' => 'ss.form.ss_send_sms_challenge.button.send_challenge', |
53 | - 'attr' => [ 'class' => 'btn btn-primary pull-right' ], |
|
53 | + 'attr' => ['class' => 'btn btn-primary pull-right'], |
|
54 | 54 | ]); |
55 | 55 | } |
56 | 56 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | ]) |
39 | 39 | ->add('confirm', SubmitType::class, [ |
40 | 40 | 'label' => 'ss.form.recovery_token.button.confirm', |
41 | - 'attr' => [ 'class' => 'btn btn-primary pull-right' ], |
|
41 | + 'attr' => ['class' => 'btn btn-primary pull-right'], |
|
42 | 42 | ]); |
43 | 43 | } |
44 | 44 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | ]); |
39 | 39 | $builder->add('verifyEmail', SubmitType::class, [ |
40 | 40 | 'label' => 'ss.form.ss_verify_email.button.verify_email', |
41 | - 'attr' => [ 'class' => 'btn btn-primary' ], |
|
41 | + 'attr' => ['class' => 'btn btn-primary'], |
|
42 | 42 | ]); |
43 | 43 | } |
44 | 44 |
@@ -29,11 +29,11 @@ |
||
29 | 29 | { |
30 | 30 | $builder->add('revoke', SubmitType::class, [ |
31 | 31 | 'label' => 'ss.form.ss_revoke_second_factor.revoke', |
32 | - 'attr' => [ 'class' => 'btn btn-danger pull-right' ], |
|
32 | + 'attr' => ['class' => 'btn btn-danger pull-right'], |
|
33 | 33 | ]); |
34 | 34 | $builder->add('cancel', AnchorType::class, [ |
35 | 35 | 'label' => 'ss.form.ss_revoke_second_factor.cancel', |
36 | - 'attr' => [ 'class' => 'btn pull-right' ], |
|
36 | + 'attr' => ['class' => 'btn pull-right'], |
|
37 | 37 | 'route' => 'ss_second_factor_list', |
38 | 38 | ]); |
39 | 39 | } |
@@ -47,7 +47,6 @@ |
||
47 | 47 | |
48 | 48 | /** |
49 | 49 | * @SuppressWarnings(PHPMD.CouplingBetweenObjects) |
50 | - |
|
51 | 50 | */ |
52 | 51 | class RecoveryTokenController extends Controller |
53 | 52 | { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | private function sortCollection(): void |
61 | 61 | { |
62 | 62 | // The collection is first sorted by LoA level and then in alphabetic order. |
63 | - uasort($this->collection, function (AvailableTokenInterface $a, AvailableTokenInterface $b): int { |
|
63 | + uasort($this->collection, function(AvailableTokenInterface $a, AvailableTokenInterface $b): int { |
|
64 | 64 | if ($a->getLoaLevel() === $b->getLoaLevel()) { |
65 | 65 | return strcmp((string) $a->getType(), (string) $b->getType()); |
66 | 66 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | return $this->maxNumberOfRegistrations; |
58 | 58 | } |
59 | 59 | |
60 | - public function getRegistrationsLeft(): int|float |
|
60 | + public function getRegistrationsLeft(): int | float |
|
61 | 61 | { |
62 | 62 | $total = $this->maxNumberOfRegistrations; |
63 | 63 |