fixed code example
classes not found and missing dollar sign
This commit is contained in:
parent
aca10785cf
commit
5bd4ad39a5
@ -192,11 +192,11 @@ You can also specify the status of the spell and grammar checks, marking spellin
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
$proofState = new ProofState();
|
||||
$proofState->setGrammar(ProofState::CLEAN);
|
||||
$proofState->setSpelling(ProofState::DIRTY);
|
||||
$proofState = new \PhpOffice\PhpWord\ComplexType\ProofState();
|
||||
$proofState->setGrammar(\PhpOffice\PhpWord\ComplexType\ProofState::CLEAN);
|
||||
$proofState->setSpelling(\PhpOffice\PhpWord\ComplexType\ProofState::DIRTY);
|
||||
|
||||
$phpWord->getSettings()->setProofState(proofState);
|
||||
$phpWord->getSettings()->setProofState($proofState);
|
||||
|
||||
Track Revisions
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user