Skip to content

Commit abda7c6

Browse files
committed
[CHORE] Make php-cs-fixer happy
Related: #1233
1 parent b0a4710 commit abda7c6

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

Classes/Domain/Model/Field.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,4 @@ public function setAutocompletePurpose(string $autocompletePurpose): void
922922
{
923923
$this->autocompletePurpose = $autocompletePurpose;
924924
}
925-
926-
927925
}

Classes/Tca/AddAutocompleteTokens.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace In2code\Powermail\Tca;
56

67
/**
78
* Class AddAutocompleteTokens
8-
* @package In2code\Powermail\Tca
99
*/
1010
class AddAutocompleteTokens
1111
{
@@ -93,4 +93,4 @@ public static function getDefaultAutocompleteTokens(): array
9393
['label' => self::$LLL . 'photo', 'value' => 'photo', 'icon' => '', 'group' => 'other'],
9494
];
9595
}
96-
}
96+
}

Classes/ViewHelpers/String/AutocompleteViewHelper.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public function render(): string
7070
return $autocompleteTokens . $token;
7171
}
7272

73-
7473
/**
7574
* Checks if the given type token is allowed for the specified autocomplete field token.
7675
*
@@ -90,7 +89,7 @@ protected function tokenIsAllowedForType(string $token, string $type): bool
9089
'tel-country-code', 'tel-area-code', 'tel-national', 'tel-local',
9190
'tel-local-prefix', 'tel-local-suffix', 'tel-extension',
9291
'username', 'new-password', 'current-password', 'one-time-code',
93-
'bday', 'bday-day', 'bday-month', 'bday-year', 'language', 'photo'
92+
'bday', 'bday-day', 'bday-month', 'bday-year', 'language', 'photo',
9493
];
9594
return in_array($type, $allowedTypes)
9695
&& !in_array($token, $tokensNotSupportingType);
@@ -134,7 +133,7 @@ protected function tokenIsAllowedForSection(string $token): bool
134133
$tokensNotSupportingSection = [
135134
'nickname', 'sex', 'impp', 'url', 'organization-title',
136135
'username', 'new-password', 'current-password', 'one-time-code',
137-
'bday', 'bday-day', 'bday-month', 'bday-year', 'language', 'photo'
136+
'bday', 'bday-day', 'bday-month', 'bday-year', 'language', 'photo',
138137
];
139138
return !in_array($token, $tokensNotSupportingSection, true);
140139
}

Configuration/TCA/tx_powermail_domain_model_field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@
11441144
'allowLanguageSynchronization' => true,
11451145
],
11461146
],
1147-
'displayCond' => 'FIELD:type:IN:'.$fieldsWithAutocompleteOptions,
1147+
'displayCond' => 'FIELD:type:IN:' . $fieldsWithAutocompleteOptions,
11481148
],
11491149
],
11501150
];

0 commit comments

Comments
 (0)