// fetch user with same username
$conflictingUser = User::getUserByUsername($data['username']);
switch (ImportHandler::getInstance()->getUserMergeMode()) {
+ /** @noinspection PhpMissingBreakStatementInspection */
case self::MERGE_MODE_USERNAME_OR_EMAIL:
// merge target will be the conflicting user
$targetUser = $conflictingUser;
case 8:
$content = gzinflate($content);
break;
+
case 12:
if (function_exists('bzdecompress')) $content = bzdecompress($content);
else throw new SystemException('The bzip2 extension is not available');
+ break;
+
case 0:
break;
+
default:
throw new SystemException('Compression '.$header['compression'].' is not supported');
}
$number = $matches[0];
if (preg_match('/[kmgt]i?b$/i', $newValue, $multiplier)) {
switch (mb_strtolower($multiplier[0])) {
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'tb':
$number *= 1000;
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'gb':
$number *= 1000;
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'mb':
$number *= 1000;
case 'kb':
$number *= 1000;
break;
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'tib':
$number *= 1024;
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'gib':
$number *= 1024;
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'mib':
$number *= 1024;
case 'kib':
$ignoreMissingContent = false;
switch ($boxType) {
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'system':
if (empty($data['elements']['objectType'])) {
throw new SystemException("Missing required element 'objectType' for 'system'-type box '{$identifier}'");