Skip to content

Commit ead523c

Browse files
committed
Run php-cs-fixer
1 parent c5b050a commit ead523c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

files/lib/action/ConversationLabelFormAction.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ public function handle(ServerRequestInterface $request): ResponseInterface
113113
private function getForm(?ConversationLabel $label): Psr15DialogForm
114114
{
115115
$form = new Psr15DialogForm(
116-
ConversationLabelFormAction::class,
116+
self::class,
117117
$label ? WCF::getLanguage()->getDynamicVariable('wcf.conversation.label.management.editLabel', [
118-
'labelName' => $label->label
118+
'labelName' => $label->label,
119119
]) : WCF::getLanguage()->get('wcf.conversation.label.management.addLabel')
120120
);
121121
$deleteLabel = CheckboxFormField::create('deleteLabel')
@@ -149,7 +149,7 @@ private function getForm(?ConversationLabel $label): Psr15DialogForm
149149
$form->appendChildren([
150150
$deleteLabel,
151151
$labelFormField,
152-
$cssClassNameFormField
152+
$cssClassNameFormField,
153153
]);
154154

155155
// Map the pseudo value 'none' to an empty string

files/lib/system/endpoint/controller/core/conversations/AssignConversationLabels.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ private function assignLabels(array $conversationIDs, array $labelIDs): void
108108
}
109109
}
110110

111-
112111
/** @internal */
113112
final class AssignConversationLabelsParameters
114113
{

files/lib/system/endpoint/controller/core/conversations/GetConversationLabels.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ private function getForm(string $id, ConversationLabelList $labelList, ?int $con
7171
->appendChildren([
7272
MultipleSelectionFormField::create('labelIDs')
7373
->options(
74-
\array_map(function (ConversationLabel $label) {
74+
\array_map(static function (ConversationLabel $label) {
7575
return \sprintf(
7676
'<span class="badge label%s">%s</span>',
7777
empty($label->cssClassName) ? '' : ' ' . $label->cssClassName,
7878
StringUtil::encodeHTML($label->label)
7979
);
8080
}, $labelList->getObjects())
8181
)
82-
->value($this->getAssignedLabelIDs($labelList->getObjectIDs(), $conversationID))
82+
->value($this->getAssignedLabelIDs($labelList->getObjectIDs(), $conversationID)),
8383
])
8484
->addDefaultButton(false)
8585
->build();
@@ -100,11 +100,11 @@ private function getAssignedLabelIDs(array $labelIDs, ?int $conversationID): arr
100100
" . $conditions;
101101
$statement = WCF::getDB()->prepare($sql);
102102
$statement->execute($conditions->getParameters());
103+
103104
return $statement->fetchAll(\PDO::FETCH_COLUMN);
104105
}
105106
}
106107

107-
108108
/** @internal */
109109
final class GetConversationLabelsParameters
110110
{

0 commit comments

Comments
 (0)