namespace wcf\acp\form;
use wcf\data\option\OptionAction;
use wcf\system\option\OptionHandler;
-use wcf\system\style\StyleHandler;
use wcf\system\WCF;
/**
*
* @param BlacklistStatus[] $status
* @return string|null
+ * @throws SystemException
*/
public static function getNextDelta(array $status) {
// Fetch the index file to determine the oldest possible value that can be retrieved.
public function validateEdit() {
$this->validatePrepareEdit();
- $this->validateMessage($this->comment !== null);
+ $this->validateMessage();
}
/**
public function validateSave() {
$this->validateBeginEdit();
- $this->validateMessage(true);
+ $this->validateMessage();
}
/**
$width = $size;
$height = $size;
$link = null;
+ $marginTop = 0;
if ($this->tinyThumbnailType) {
$link = $this->getThumbnailLink('tiny');
use wcf\data\package\update\version\PackageUpdateVersion;
use wcf\data\package\Package;
use wcf\data\search\Search;
-use wcf\data\search\SearchEditor;
use wcf\data\AbstractDatabaseObjectAction;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\exception\NamedUserException;
-use wcf\system\exception\PermissionDeniedException;
use wcf\system\exception\SystemException;
use wcf\system\exception\UserInputException;
use wcf\system\package\PackageInstallationScheduler;
/**
* Returns metadata about the highlighters.
*
- * @return string[]
+ * @return string[][]
*/
public function getHighlighterMeta() {
if ($this->highlighterMeta === null) {
$this->saveObject($newElement);
- /** @var DevtoolsProject $project */
- $project = $this->installation->getProject();
-
- $xml->write($this->getXmlFileLocation($project));
+ $xml->write($this->getXmlFileLocation());
}
/**
DOMUtil::removeNode($element);
- /** @var DevtoolsProject $project */
- $project = $this->installation->getProject();
-
$deleteFile = $this->sanitizeXmlFileAfterDeleteEntry($document);
if ($deleteFile) {
- unlink($this->getXmlFileLocation($project));
+ unlink($this->getXmlFileLocation());
}
else {
- $xml->write($this->getXmlFileLocation($project));
+ $xml->write($this->getXmlFileLocation());
}
if (is_subclass_of($this->className, IEditableCachedObject::class)) {
$this->saveObject($newElement, $element);
- /** @var DevtoolsProject $project */
- $project = $this->installation->getProject();
-
- $xml->write($this->getXmlFileLocation($project));
+ $xml->write($this->getXmlFileLocation());
return $this->getElementIdentifier($newElement);
}
<?php
namespace wcf\system\event\listener;
-use wcf\data\bbcode\BBCode;
use wcf\data\bbcode\BBCodeCache;
use wcf\data\DatabaseObjectDecorator;
use wcf\data\ITitledObject;
* @since 5.2
*/
protected function convertPlainLinks() {
- /** @var HtmlNodePlainLink[] $links */
- $links = [];
-
/** @var \DOMElement $link */
foreach ($this->getDocument()->getElementsByTagName('a') as $link) {
$href = $link->getAttribute('href');
use wcf\system\email\Email;
use wcf\system\email\Mailbox;
use wcf\system\WCF;
-use wcf\util\FileUtil;
/**
* This class represents an e-mail.
/**
* Returns request meta data.
*
- * @return string[]
+ * @return array
* @since 3.0
*/
public function getMetaData() {
use wcf\data\article\content\SearchResultArticleContent;
use wcf\data\article\content\SearchResultArticleContentList;
use wcf\data\article\Article;
-use wcf\data\category\CategoryNode;
-use wcf\data\category\CategoryNodeTree;
use wcf\form\IForm;
use wcf\form\SearchForm;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\data\tag\TagList;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\exception\InvalidObjectTypeException;
-use wcf\system\language\LanguageFactory;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
use wcf\util\ArrayUtil;