Skip to content

Commit 722c81d

Browse files
committed
fix md remarks
1 parent 24c440b commit 722c81d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/PhpWord/Reader/Word2007/Settings.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
use PhpOffice\Common\XMLReader;
2121
use PhpOffice\PhpWord\PhpWord;
22-
use PhpOffice\PhpWord\Metadata\Protection;
2322

2423
/**
2524
* Settings reader
@@ -30,7 +29,6 @@ class Settings extends AbstractPart
3029
{
3130

3231
private static $booleanProperties = array('hideSpellingErrors', 'hideGrammaticalErrors', 'evenAndOddHeaders');
33-
private static $decimalProperties = array('zoom');
3432

3533
/**
3634
* Read settings.xml.
@@ -67,7 +65,14 @@ public function read(PhpWord $phpWord)
6765
}
6866
}
6967

70-
private function setDocumentProtection(XMLReader $xmlReader, PhpWord $phpWord, \DOMNode $node) {
68+
/**
69+
* Sets the document protection
70+
*
71+
* @param XMLReader $xmlReader
72+
* @param PhpWord $phpWord
73+
* @param \DOMNode $node
74+
*/
75+
protected function setDocumentProtection(XMLReader $xmlReader, PhpWord $phpWord, \DOMNode $node) {
7176
$documentProtection = $phpWord->getSettings()->getDocumentProtection();
7277

7378
$edit = $xmlReader->getAttribute('w:edit', $node);

0 commit comments

Comments
 (0)