@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | // A single payment info where all PaymentOrders are added as transactions |
| 94 | 94 | $payment = new PaymentInformation( |
| 95 | - static::PAYMENT_PREFIX.' '.uniqid('', false), |
|
| 95 | + static::PAYMENT_PREFIX . ' ' . uniqid('', false), |
|
| 96 | 96 | $account_info['iban'], |
| 97 | 97 | $account_info['bic'], |
| 98 | 98 | $account_info['name'] |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | // A single payment info where all PaymentOrders are added as transactions |
| 146 | 146 | $payment = new PaymentInformation( |
| 147 | - $paymentOrder->getIDString().' '.uniqid('', false), |
|
| 147 | + $paymentOrder->getIDString() . ' ' . uniqid('', false), |
|
| 148 | 148 | $iban, |
| 149 | 149 | $bic, |
| 150 | 150 | $account_name |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | protected function getGroupHeader(): GroupHeader |
| 172 | 172 | { |
| 173 | 173 | return new GroupHeader( |
| 174 | - static::ID_PREFIX.' '.uniqid('', false), |
|
| 174 | + static::ID_PREFIX . ' ' . uniqid('', false), |
|
| 175 | 175 | static::PARTY_NAME |
| 176 | 176 | ); |
| 177 | 177 | } |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | protected function getPaymentInfoID(PaymentOrder $paymentOrder): string |
| 184 | 184 | { |
| 185 | - return $paymentOrder->getIDString().' '.uniqid('', false); |
|
| 185 | + return $paymentOrder->getIDString() . ' ' . uniqid('', false); |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | $resolver->setDefault('mode', 'manual'); |
| 287 | 287 | $resolver->setAllowedValues('mode', ['auto', 'manual', 'auto_single']); |
| 288 | 288 | |
| 289 | - $resolver->setNormalizer('iban', function (Options $options, $value) { |
|
| 289 | + $resolver->setNormalizer('iban', function(Options $options, $value) { |
|
| 290 | 290 | if (null === $value) { |
| 291 | 291 | return null; |
| 292 | 292 | } |
@@ -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) |
@@ -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 | |