@@ -52,14 +52,14 @@ |
||
52 | 52 | |
53 | 53 | $filename = mb_strimwidth($slugger->slug($object->getDepartment()->getName() ?? 'unknown'), 0, 16); |
54 | 54 | |
55 | - $filename .= '_'.mb_strimwidth($slugger->slug($object->getProjectName()), 0, 16); |
|
55 | + $filename .= '_' . mb_strimwidth($slugger->slug($object->getProjectName()), 0, 16); |
|
56 | 56 | |
57 | - $filename .= '_'.date('ymd-His'); |
|
57 | + $filename .= '_' . date('ymd-His'); |
|
58 | 58 | |
59 | - $filename .= '_'.bin2hex(random_bytes(5)); |
|
59 | + $filename .= '_' . bin2hex(random_bytes(5)); |
|
60 | 60 | |
61 | 61 | //Add original extension |
62 | - $filename .= '.'.$originalExtension; |
|
62 | + $filename .= '.' . $originalExtension; |
|
63 | 63 | |
64 | 64 | return $filename; |
65 | 65 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | //Add subject |
58 | 58 | $mailTo->setHeader('subject', $this->getSubject($paymentOrder)); |
59 | 59 | |
60 | - $content = 'Link: '. |
|
60 | + $content = 'Link: ' . |
|
61 | 61 | $this->adminURLGenerator->setController(PaymentOrderCrudController::class) |
62 | 62 | ->setEntityId($paymentOrder->getId()) |
63 | 63 | ->setAction('detail') |
@@ -48,8 +48,8 @@ |
||
48 | 48 | ]); |
49 | 49 | |
50 | 50 | $builder->addModelTransformer(new CallbackTransformer( |
51 | - static function ($data) { return $data; }, |
|
52 | - static function ($data) { |
|
51 | + static function($data) { return $data; }, |
|
52 | + static function($data) { |
|
53 | 53 | if (ComparisonType::BETWEEN === $data['comparison']) { |
54 | 54 | if (null === $data['value'] || '' === $data['value'] || null === $data['value2'] || '' === $data['value2']) { |
55 | 55 | throw new TransformationFailedException('Two values must be provided when "BETWEEN" comparison is selected.'); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $choices = []; |
37 | 37 | |
38 | 38 | foreach (Department::ALLOWED_TYPES as $type) { |
39 | - $choices['department.type.'.$type] = $type; |
|
39 | + $choices['department.type.' . $type] = $type; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $choices['department.type.section_misc'] = 'section_misc'; |
@@ -69,6 +69,6 @@ discard block |
||
69 | 69 | $filterDataDto->getValue() |
70 | 70 | ); |
71 | 71 | } |
72 | - $queryBuilder->leftJoin($filterDataDto->getEntityAlias().'.department', 'department'); |
|
72 | + $queryBuilder->leftJoin($filterDataDto->getEntityAlias() . '.department', 'department'); |
|
73 | 73 | } |
74 | 74 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | use FieldTrait; |
31 | 31 | |
32 | - public static function new(string $propertyName, ?string $label = null): VichyFileField |
|
32 | + public static function new(string $propertyName, ?string $label = null) : VichyFileField |
|
33 | 33 | { |
34 | 34 | return (new self()) |
35 | 35 | ->setProperty($propertyName) |
@@ -38,10 +38,10 @@ |
||
38 | 38 | ->setTemplateName('crud/field/text') |
39 | 39 | ->setFormTypeOptions([ |
40 | 40 | 'type' => PasswordType::class, |
41 | - 'first_options' => [ |
|
41 | + 'first_options' => [ |
|
42 | 42 | 'label' => 'password.new', |
43 | 43 | ], |
44 | - 'second_options' => [ |
|
44 | + 'second_options' => [ |
|
45 | 45 | 'label' => 'password.repeat', |
46 | 46 | ], |
47 | 47 | ]); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | use FieldTrait; |
32 | 32 | |
33 | - public static function new(string $propertyName, ?string $label = null): PasswordField |
|
33 | + public static function new(string $propertyName, ?string $label = null) : PasswordField |
|
34 | 34 | { |
35 | 35 | return (new self()) |
36 | 36 | ->setProperty($propertyName) |
@@ -14,24 +14,24 @@ |
||
14 | 14 | protected function configureContainer(ContainerConfigurator $container): void |
15 | 15 | { |
16 | 16 | $container->import('../config/{packages}/*.yaml'); |
17 | - $container->import('../config/{packages}/'.$this->environment.'/*.yaml'); |
|
17 | + $container->import('../config/{packages}/' . $this->environment . '/*.yaml'); |
|
18 | 18 | |
19 | - if (is_file(\dirname(__DIR__).'/config/services.yaml')) { |
|
19 | + if (is_file(\dirname(__DIR__) . '/config/services.yaml')) { |
|
20 | 20 | $container->import('../config/services.yaml'); |
21 | - $container->import('../config/{services}_'.$this->environment.'.yaml'); |
|
22 | - } elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) { |
|
21 | + $container->import('../config/{services}_' . $this->environment . '.yaml'); |
|
22 | + } elseif (is_file($path = \dirname(__DIR__) . '/config/services.php')) { |
|
23 | 23 | (require $path)($container->withPath($path), $this); |
24 | 24 | } |
25 | 25 | } |
26 | 26 | |
27 | 27 | protected function configureRoutes(RoutingConfigurator $routes): void |
28 | 28 | { |
29 | - $routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); |
|
29 | + $routes->import('../config/{routes}/' . $this->environment . '/*.yaml'); |
|
30 | 30 | $routes->import('../config/{routes}/*.yaml'); |
31 | 31 | |
32 | - if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { |
|
32 | + if (is_file(\dirname(__DIR__) . '/config/routes.yaml')) { |
|
33 | 33 | $routes->import('../config/routes.yaml'); |
34 | - } elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) { |
|
34 | + } elseif (is_file($path = \dirname(__DIR__) . '/config/routes.php')) { |
|
35 | 35 | (require $path)($routes->withPath($path), $this); |
36 | 36 | } |
37 | 37 | } |
@@ -56,8 +56,8 @@ |
||
56 | 56 | 'data-mode-manual' => true, |
57 | 57 | ], |
58 | 58 | 'placeholder' => 'sepa_export.bank_account.placeholder', |
59 | - 'choice_label' => function (BankAccount $account) { |
|
60 | - return $account->getExportAccountName().' ['.$account->getIban().']'; |
|
59 | + 'choice_label' => function(BankAccount $account) { |
|
60 | + return $account->getExportAccountName() . ' [' . $account->getIban() . ']'; |
|
61 | 61 | }, |
62 | 62 | ]); |
63 | 63 |
@@ -49,8 +49,8 @@ |
||
49 | 49 | ], |
50 | 50 | ]); |
51 | 51 | |
52 | - $resolver->setDefault('group_by', function (Department $choice, $key, $value) { |
|
53 | - return $this->translator->trans('department.type.'.$choice->getType() ?? 'misc'); |
|
52 | + $resolver->setDefault('group_by', function(Department $choice, $key, $value) { |
|
53 | + return $this->translator->trans('department.type.' . $choice->getType() ?? 'misc'); |
|
54 | 54 | }); |
55 | 55 | } |
56 | 56 | } |