define('ENABLE_DESKTOP_NOTIFICATIONS', 1);
define('FB_SHARE_APP_ID', '');
define('MODULE_CONTACT_FORM', 0);
+define('SITEMAP_INDEX_TIME_FRAME', 365);
<?php
namespace wcf\system\worker;
+use wcf\data\object\type\ObjectType;
use wcf\data\object\type\ObjectTypeCache;
use wcf\data\user\User;
use wcf\data\DatabaseObjectList;
/**
* All object types for the site maps.
- * @var array<ObjectType>
+ * @var ObjectType[]
*/
- public $sitemapObjects = null;
+ public $sitemapObjects = [];
/**
* The current worker data.
- * @var array<mixed>
+ * @var mixed[]
*/
public $workerData = [];
* The current temporary file as File object.
* @var File
*/
- public $file = null;
+ public $file;
/**
* The user profile of the actual user.
* @var User
*/
- private $actualUser = null;
+ private $actualUser;
/**
* @inheritDoc
$sitemapObject = $this->sitemapObjects[$this->workerData['sitemap']]->getProcessor();
$sitemapLoopCount = $this->workerData['sitemapLoopCount'];
+ /** @var DatabaseObjectList $objectList */
$objectList = $sitemapObject->getObjectList();
if (SITEMAP_INDEX_TIME_FRAME > 0 && $sitemapObject->getLastModifiedColumn() !== null) {