These changes were not done manually but by using IDE actions.
*/
public function getI18nValue($fieldName)
{
- if (isset($this->i18nValues[$fieldName])) {
- return $this->i18nValues[$fieldName];
- }
-
- return null;
+ return $this->i18nValues[$fieldName] ?? null;
}
/**
*/
public function getBBCodeByTag($tag)
{
- if (isset($this->cachedBBCodes[$tag])) {
- return $this->cachedBBCodes[$tag];
- }
-
- return null;
+ return $this->cachedBBCodes[$tag] ?? null;
}
/**
*/
public function getLabel($labelID)
{
- if (isset($this->labels[$labelID])) {
- return $this->labels[$labelID];
- }
-
- return null;
+ return $this->labels[$labelID] ?? null;
}
/**
*/
public function getMenuByID($menuID)
{
- if (isset($this->cachedMenus[$menuID])) {
- return $this->cachedMenus[$menuID];
- }
-
- return null;
+ return $this->cachedMenus[$menuID] ?? null;
}
/**
*/
public function getMenuItemsByMenuID($menuID)
{
- if (isset($this->cachedMenuItems[$menuID])) {
- return $this->cachedMenuItems[$menuID];
- }
-
- return null;
+ return $this->cachedMenuItems[$menuID] ?? null;
}
/**
*/
public function getDefinition($definitionID)
{
- if (isset($this->definitions[$definitionID])) {
- return $this->definitions[$definitionID];
- }
-
- return null;
+ return $this->definitions[$definitionID] ?? null;
}
/**
*/
public function getDefinitionByName($definitionName)
{
- if (isset($this->definitionsByName[$definitionName])) {
- return $this->definitionsByName[$definitionName];
- }
-
- return null;
+ return $this->definitionsByName[$definitionName] ?? null;
}
/**
*/
public function getObjectType($objectTypeID)
{
- if (isset($this->objectTypes[$objectTypeID])) {
- return $this->objectTypes[$objectTypeID];
- }
-
- return null;
+ return $this->objectTypes[$objectTypeID] ?? null;
}
/**
*/
public function getPackage($packageID)
{
- if (isset($this->packages['packages'][$packageID])) {
- return $this->packages['packages'][$packageID];
- }
-
- return null;
+ return $this->packages['packages'][$packageID] ?? null;
}
/**
*/
public function getPackageID($package)
{
- if (isset($this->packages['packageIDs'][$package])) {
- return $this->packages['packageIDs'][$package];
- }
-
- return null;
+ return $this->packages['packageIDs'][$package] ?? null;
}
/**
*/
public function getPage($pageID)
{
- if (isset($this->cache['pages'][$pageID])) {
- return $this->cache['pages'][$pageID];
- }
-
- return null;
+ return $this->cache['pages'][$pageID] ?? null;
}
/**
*/
public function getReactionTypeByID($reactionTypeID)
{
- if (isset($this->reactionTypes[$reactionTypeID])) {
- return $this->reactionTypes[$reactionTypeID];
- }
-
- return null;
+ return $this->reactionTypes[$reactionTypeID] ?? null;
}
/**
*/
public function getSmileyByCode($code)
{
- if (isset($this->cachedSmileyByCode[$code])) {
- return $this->cachedSmileyByCode[$code];
- }
-
- return null;
+ return $this->cachedSmileyByCode[$code] ?? null;
}
/**
*/
public function getTrophyByID($trophyID)
{
- if (isset($this->trophies[$trophyID])) {
- return $this->trophies[$trophyID];
- }
-
- return null;
+ return $this->trophies[$trophyID] ?? null;
}
/**
*/
public function getCategoryByID($categoryID)
{
- if (isset($this->categories[$categoryID])) {
- return $this->categories[$categoryID];
- }
-
- return null;
+ return $this->categories[$categoryID] ?? null;
}
/**
{
self::getCache();
- if (isset(self::$cache['groups'][$groupID])) {
- return self::$cache['groups'][$groupID];
- }
-
- return null;
+ return self::$cache['groups'][$groupID] ?? null;
}
/**
*/
public static function getApplicationObject(Application $application)
{
- if (isset(self::$applicationObjects[$application->packageID])) {
- return self::$applicationObjects[$application->packageID];
- }
-
- return null;
+ return self::$applicationObjects[$application->packageID] ?? null;
}
/**
*/
final protected static function getCoreObject($className)
{
- if (isset(self::$coreObjectCache[$className])) {
- return self::$coreObjectCache[$className];
- }
-
- return null;
+ return self::$coreObjectCache[$className] ?? null;
}
/**
*/
public function getCategory($objectTypeID, $categoryName)
{
- if (isset($this->categories[$objectTypeID][$categoryName])) {
- return $this->categories[$objectTypeID][$categoryName];
- }
-
- return null;
+ return $this->categories[$objectTypeID][$categoryName] ?? null;
}
/**
*/
public function getObject($objectID)
{
- if (isset($this->cachedObjects[$objectID])) {
- return $this->cachedObjects[$objectID];
- }
-
- return null;
+ return $this->cachedObjects[$objectID] ?? null;
}
/**
*/
public function getBox($boxID)
{
- if (isset($this->boxes[$boxID])) {
- return $this->boxes[$boxID];
- }
-
- return null;
+ return $this->boxes[$boxID] ?? null;
}
/**
*/
public function getBoxes($position)
{
- if (isset($this->boxesByPosition[$position])) {
- return $this->boxesByPosition[$position];
- }
-
- return [];
+ return $this->boxesByPosition[$position] ?? [];
}
/**
*/
public function getBoxByIdentifier($identifier)
{
- if (isset($this->boxesByIdentifier[$identifier])) {
- return $this->boxesByIdentifier[$identifier];
- }
-
- return null;
+ return $this->boxesByIdentifier[$identifier] ?? null;
}
/**
*/
public function getObjectType($objectTypeID)
{
- if (isset($this->objectTypes[$objectTypeID])) {
- return $this->objectTypes[$objectTypeID];
- }
-
- return null;
+ return $this->objectTypes[$objectTypeID] ?? null;
}
/**
*/
public function getObjectTypeName($definitionName)
{
- if (isset($this->objectTypes[$definitionName])) {
- return $this->objectTypes[$definitionName];
- }
-
- return null;
+ return $this->objectTypes[$definitionName] ?? null;
}
/**
*/
public function getCategory($categoryID)
{
- if (isset($this->categories[$categoryID])) {
- return $this->categories[$categoryID];
- }
-
- return null;
+ return $this->categories[$categoryID] ?? null;
}
/**
*/
public function getObjectTypeByName($objectType)
{
- if (isset($this->objectTypes[$objectType])) {
- return $this->objectTypes[$objectType];
- }
-
- return null;
+ return $this->objectTypes[$objectType] ?? null;
}
/**
*/
public function getObjectTypeID($typeName)
{
- if (isset($this->cache['objectTypeNames'][$typeName])) {
- return $this->cache['objectTypeNames'][$typeName];
- }
-
- return null;
+ return $this->cache['objectTypeNames'][$typeName] ?? null;
}
/**
*/
public function getObjectType($objectTypeID)
{
- if (isset($this->cache['objectTypes'][$objectTypeID])) {
- return $this->cache['objectTypes'][$objectTypeID];
- }
-
- return null;
+ return $this->cache['objectTypes'][$objectTypeID] ?? null;
}
/**
*/
public function getObjectTypeID($objectType)
{
- if (isset($this->cache['objectTypeIDs'][$objectType])) {
- return $this->cache['objectTypeIDs'][$objectType];
- }
-
- return null;
+ return $this->cache['objectTypeIDs'][$objectType] ?? null;
}
/**
*/
public function getObjectType($objectTypeID)
{
- if (isset($this->cache['objectTypes'][$objectTypeID])) {
- return $this->cache['objectTypes'][$objectTypeID];
- }
-
- return null;
+ return $this->cache['objectTypes'][$objectTypeID] ?? null;
}
/**
*/
public function getLabelGroup($groupID)
{
- if (isset($this->labelGroups['groups'][$groupID])) {
- return $this->labelGroups['groups'][$groupID];
- }
-
- return null;
+ return $this->labelGroups['groups'][$groupID] ?? null;
}
/**
*/
public function getCategory($categoryName)
{
- if (isset($this->cache['categories'][$categoryName])) {
- return $this->cache['categories'][$categoryName];
- }
-
- return null;
+ return $this->cache['categories'][$categoryName] ?? null;
}
/**
*/
public function getFullQuote($quoteID)
{
- if (isset($this->fullQuotes[$quoteID])) {
- return $this->fullQuotes[$quoteID];
- }
-
- return null;
+ return $this->fullQuotes[$quoteID] ?? null;
}
/**
*/
public function getAuthorInfo($name)
{
- if (isset($this->authorInfo[$name])) {
- return $this->authorInfo[$name];
- }
-
- return null;
+ return $this->authorInfo[$name] ?? null;
}
/**
*/
public function getPackageInfo($name)
{
- if (isset($this->packageInfo[$name])) {
- return $this->packageInfo[$name];
- }
-
- return null;
+ return $this->packageInfo[$name] ?? null;
}
/**
*/
public function getInstructions($type)
{
- if (isset($this->instructions[$type])) {
- return $this->instructions[$type];
- }
-
- return null;
+ return $this->instructions[$type] ?? null;
}
/**
*/
public function getVirtualPackage($package)
{
- if (isset($this->virtualPackageList[$package])) {
- return $this->virtualPackageList[$package];
- }
-
- return null;
+ return $this->virtualPackageList[$package] ?? null;
}
/**
*/
public function getObjectType($objectName)
{
- if (isset($this->cache[$objectName])) {
- return $this->cache[$objectName];
- }
-
- return null;
+ return $this->cache[$objectName] ?? null;
}
/**
$this->loadStorage([$package]);
}
- if (isset($this->cache[$packageID][$field])) {
- return $this->cache[$packageID][$field];
- }
-
- return null;
+ return $this->cache[$packageID][$field] ?? null;
}
/**
*/
public function getObject($objectID)
{
- if (isset($this->messageCache[$objectID])) {
- return $this->messageCache[$objectID];
- }
-
- return null;
+ return $this->messageCache[$objectID] ?? null;
}
/**
*/
public function getObject($objectID)
{
- if (isset($this->messageCache[$objectID])) {
- return $this->messageCache[$objectID];
- }
-
- return null;
+ return $this->messageCache[$objectID] ?? null;
}
/**
*/
public function getObjectType($objectTypeName)
{
- if (isset($this->availableObjectTypes[$objectTypeName])) {
- return $this->availableObjectTypes[$objectTypeName];
- }
-
- return null;
+ return $this->availableObjectTypes[$objectTypeName] ?? null;
}
/**
*/
public function getObjectType($objectTypeID)
{
- if (isset($this->objectTypes['objects'][$objectTypeID])) {
- return $this->objectTypes['objects'][$objectTypeID];
- }
-
- return null;
+ return $this->objectTypes['objects'][$objectTypeID] ?? null;
}
/**
*/
public function getObjectTypeID($objectType)
{
- if (isset($this->objectTypes['names'][$objectType])) {
- return $this->objectTypes['names'][$objectType];
- }
-
- return null;
+ return $this->objectTypes['names'][$objectType] ?? null;
}
/**
*/
public function getObjectTypeByName($objectType)
{
- if (isset($this->objectTypes[$objectType])) {
- return $this->objectTypes[$objectType];
- }
-
- return null;
+ return $this->objectTypes[$objectType] ?? null;
}
/**
*/
public function getObjectTypeID($objectType)
{
- if (isset($this->cache['objectTypeIDs'][$objectType])) {
- return $this->cache['objectTypeIDs'][$objectType];
- }
-
- return null;
+ return $this->cache['objectTypeIDs'][$objectType] ?? null;
}
/**
*/
public function getObjectTypeProcessor($objectType)
{
- if (isset($this->availableObjectTypes[$objectType])) {
- return $this->availableObjectTypes[$objectType];
- }
-
- return null;
+ return $this->availableObjectTypes[$objectType] ?? null;
}
/**