'attributeHtml' => $attribute->attributeHtml,
'validationPattern' => $attribute->validationPattern,
'required' => $attribute->required,
- 'useText' => $attribute->useText,
+ 'useText' => $attribute->useText
]]);
$attributeAction->executeAction();
}
'attributeHtml' => $attribute->attributeHtml,
'validationPattern' => $attribute->validationPattern,
'required' => $attribute->required,
- 'useText' => $attribute->useText,
+ 'useText' => $attribute->useText
]]);
$attributeAction->executeAction();
}
$this->objectList->getConditionBuilder()->add('(label LIKE ? OR labelID IN (?))', ['%'.addcslashes($this->label, '_%').'%', $labelIDs]);
}
else {
- $this->objectList->getConditionBuilder()->add('label LIKE ?', ['%'.addcslashes($this->label, '_%').'%',]);
+ $this->objectList->getConditionBuilder()->add('label LIKE ?', ['%'.addcslashes($this->label, '_%').'%']);
}
}
}
throw new AJAXException($exception->getMessage(), AJAXException::BAD_PARAMETERS, $e->getTraceAsString(), [
'errorMessage' => $exception->getMessage(),
'errorType' => $e->getType(),
- 'fieldName' => $exception->getFieldName(),
+ 'fieldName' => $exception->getFieldName()
]);
}
else if ($e instanceof ValidateActionException) {
$mediaData[$row['mediaID']] = [
'altText' => [],
'caption' => [],
- 'title' => [],
+ 'title' => []
];
}
}
if (!empty($groupIDs)) {
$action = new UserAction([$subscriptionUser->userID], 'removeFromGroups', [
- 'groups' => $groupIDs,
+ 'groups' => $groupIDs
]);
$action->executeAction();
}
'data' => [
'activationCode' => UserRegistrationUtil::getActivationCode()
],
- 'removeGroups' => UserGroup::getGroupIDsByType([UserGroup::USERS]),
+ 'removeGroups' => UserGroup::getGroupIDsByType([UserGroup::USERS])
]);
$action->executeAction();
$action = new UserAction($this->objects, 'addToGroups', [
UserIgnoreEditor::create([
'ignoreUserID' => $this->parameters['data']['userID'],
'time' => TIME_NOW,
- 'userID' => WCF::getUser()->userID,
+ 'userID' => WCF::getUser()->userID
]);
UserStorageHandler::getInstance()->reset([WCF::getUser()->userID], 'ignoredUserIDs');
$messageData = [
'message' => $this->message,
'recipient' => $this->user,
- 'username' => WCF::getUser()->userID ? WCF::getUser()->username : $this->email,
+ 'username' => WCF::getUser()->userID ? WCF::getUser()->username : $this->email
];
// build mail
'data' => array_merge($this->additionalFields, [
'username' => $this->username,
'email' => $this->email,
- 'password' => $this->password,
+ 'password' => $this->password
]),
'groups' => $this->groupIDs,
'languageIDs' => $this->visibleLanguages,
WCF::getTPL()->assign([
'options' => $this->optionHandler->getOptionTree(),
- 'userID' => $user->userID,
+ 'userID' => $user->userID
]);
return WCF::getTPL()->fetch('userProfileAbout');
WCF::getTPL()->assign([
'likeList' => $likeList,
'userID' => $userID,
- 'lastLikeTime' => $likeList->getLastLikeTime(),
+ 'lastLikeTime' => $likeList->getLastLikeTime()
]);
return WCF::getTPL()->fetch('userProfileLikes');
'container' => $this->container,
'objects' => $messageList,
'startIndex' => $startIndex,
- 'sortOrder' => $sortOrder,
+ 'sortOrder' => $sortOrder
]);
// assign 'to top' link
WCF::getTPL()->assign([
'option' => $option,
- 'value' => MessageParser::getInstance()->parse($value),
+ 'value' => MessageParser::getInstance()->parse($value)
]);
return WCF::getTPL()->fetch('messageUserOptionOutput');
}
'attributeHtml' => (!empty($attribute['html']) ? $attribute['html'] : ''),
'validationPattern' => (!empty($attribute['validationpattern']) ? $attribute['validationpattern'] : ''),
'required' => (!empty($attribute['required']) ? $attribute['required'] : 0),
- 'useText' => (!empty($attribute['usetext']) ? $attribute['usetext'] : 0),
+ 'useText' => (!empty($attribute['usetext']) ? $attribute['usetext'] : 0)
]);
}
}
'pageID' => $page->pageID,
'pageObjectID' => $pageObjectID,
'title' => $title,
- 'useAsParentLocation' => $useAsParentLocation,
+ 'useAsParentLocation' => $useAsParentLocation
];
}
return [
'width' => $imageData[0],
'height' => $imageData[1],
- 'mimeType' => $imageData['mime'],
+ 'mimeType' => $imageData['mime']
];
}
}
// send mail
$mail = new Mail([$userEditor->username => $userEditor->email], $userEditor->getLanguage()->getDynamicVariable('wcf.acp.user.sendNewPassword.mail.subject'), $userEditor->getLanguage()->getDynamicVariable('wcf.acp.user.sendNewPassword.mail', [
'password' => $newPassword,
- 'username' => $userEditor->username,
+ 'username' => $userEditor->username
]));
$mail->send();
}