* Unpacks file header for one file entry.
*
* @param string $binaryData
- * @return array $fileheader
+ * @return array|boolean
*/
protected function readHeader($binaryData) {
if (strlen($binaryData) != 512) {
* @return Package[]
*/
public function getPackages() {
- return $this->packages;
+ return $this->packages['packages'];
}
/**
public function keepAlive() {
// ignore sessions created by this request
if (WCF::getSession()->lastActivityTime == TIME_NOW) {
- return;
+ return [];
}
// update last activity time
/**
* References header
- * @var Mailbox[]
+ * @var string[]
*/
protected $references = [];
/**
* In-Reply-To header
- * @var Mailbox[]
+ * @var string[]
*/
protected $inReplyTo = [];
* Unpacks file header for one file entry.
*
* @param string $binaryData
- * @return array $fileheader
+ * @return array|boolean
*/
protected function readHeader($binaryData) {
if (strlen($binaryData) != 512) {
* Executes a package installation plugin.
*
* @param mixed[] $nodeData
- * @return boolean
+ * @return PackageInstallationStep
* @throws SystemException
*/
protected function executePIP(array $nodeData) {
}
/**
- * Gets the start timestamp.
- *
- * @return integer
+ * Determines the start timestamp.
*/
protected function getStartDate() {
if ($this->startDate) return;
+
$sql = "SELECT MIN(registrationDate)
FROM wcf".WCF_N."_user";
$statement = WCF::getDB()->prepareStatement($sql);
*
* @param \DOMNode $node1 first node
* @param \DOMNode $node2 second node
- * @return \DOMElement|null common ancestor or null
+ * @return \DOMNode|null common ancestor or null
*/
public static function getCommonAncestor(\DOMNode $node1, \DOMNode $node2) {
// abort if both elements share a common element or are both direct descendants
* @param \DOMNode $node reference node
* @param \DOMElement $ancestor ancestor element that should not be split
* @param boolean $splitBefore true if nodes before `$node` should be moved into a new node, false to split nodes after `$node`
- * @return \DOMElement parent node containing `$node`, direct child of `$ancestor`
+ * @return \DOMNode parent node containing `$node`, direct child of `$ancestor`
*/
public static function splitParentsUntil(\DOMNode $node, \DOMElement $ancestor, $splitBefore = true) {
if (!self::contains($ancestor, $node)) {