fix some sonar warnings
This commit is contained in:
parent
6a7594630c
commit
a44aee8c34
|
|
@ -2185,6 +2185,8 @@ class MsDoc extends AbstractReader implements ReaderInterface
|
|||
|
||||
$sprmCPicLocation += $embeddedBlipRH['recLen'];
|
||||
break;
|
||||
case self::OFFICEARTBLIPPNG:
|
||||
break;
|
||||
default:
|
||||
// print_r(dechex($embeddedBlipRH['recType']));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -531,6 +531,7 @@ class Html
|
|||
$styles['bgColor'] = trim($cValue, '#');
|
||||
break;
|
||||
case 'line-height':
|
||||
$matches = array();
|
||||
if (preg_match('/([0-9]+\.?[0-9]*[a-z]+)/', $cValue, $matches)) {
|
||||
$spacingLineRule = \PhpOffice\PhpWord\SimpleType\LineSpacingRule::EXACT;
|
||||
$spacing = Converter::cssToTwip($matches[1]) / \PhpOffice\PhpWord\Style\Paragraph::LINE_HEIGHT;
|
||||
|
|
@ -743,8 +744,6 @@ class Html
|
|||
default:
|
||||
return Jc::START;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue