@@ -4,7 +4,7 @@ |
||
4 | 4 | use Symfony\Component\ErrorHandler\Debug; |
5 | 5 | use Symfony\Component\HttpFoundation\Request; |
6 | 6 | |
7 | -require dirname(__DIR__).'/config/bootstrap.php'; |
|
7 | +require dirname(__DIR__) . '/config/bootstrap.php'; |
|
8 | 8 | |
9 | 9 | if ($_SERVER['APP_DEBUG']) { |
10 | 10 | umask(0000); |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | use Symfony\Component\Dotenv\Dotenv; |
4 | 4 | |
5 | -require dirname(__DIR__).'/vendor/autoload.php'; |
|
5 | +require dirname(__DIR__) . '/vendor/autoload.php'; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Removed the dotenv parsing from this file to support the legacy parameters.yml config to prevent refactoring the configuration in Deploy |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | ->example('3600 -> 1 hour * 60 minutes * 60 seconds') |
55 | 55 | ->validate() |
56 | 56 | ->ifTrue( |
57 | - function ($lifetime) { |
|
57 | + function($lifetime) { |
|
58 | 58 | return !is_int($lifetime); |
59 | 59 | } |
60 | 60 | ) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | ->example('600 -> 10 minutes * 60 seconds') |
72 | 72 | ->validate() |
73 | 73 | ->ifTrue( |
74 | - function ($lifetime) { |
|
74 | + function($lifetime) { |
|
75 | 75 | return !is_int($lifetime); |
76 | 76 | } |
77 | 77 | ) |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $configuration = new Configuration(); |
44 | 44 | $config = $this->processConfiguration($configuration, $configs); |
45 | 45 | |
46 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
46 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
47 | 47 | $loader->load('services.yml'); |
48 | 48 | $loader->load('security.yml'); |
49 | 49 |
@@ -96,7 +96,7 @@ |
||
96 | 96 | try { |
97 | 97 | $hint = $this->vettingTypeHintService->findOne($institution); |
98 | 98 | if (!empty($hint->hints)) { |
99 | - $hintText = array_filter($hint->hints, function ($hintEntry) use ($locale) { |
|
99 | + $hintText = array_filter($hint->hints, function($hintEntry) use ($locale) { |
|
100 | 100 | return $hintEntry['locale'] === $locale; |
101 | 101 | }); |
102 | 102 | if ($hintText) { |
@@ -62,7 +62,7 @@ |
||
62 | 62 | private function sortCollection() |
63 | 63 | { |
64 | 64 | // The collection is first sorted by LoA level and then in alphabetic order. |
65 | - uasort($this->collection, function (AvailableTokenInterface $a, AvailableTokenInterface $b) { |
|
65 | + uasort($this->collection, function(AvailableTokenInterface $a, AvailableTokenInterface $b) { |
|
66 | 66 | if ($a->getLoaLevel() === $b->getLoaLevel()) { |
67 | 67 | return strcmp($a->getType(), $b->getType()); |
68 | 68 | } |
@@ -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 |