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
|
.. code-block:: php
|
||||||
|
|
||||||
$proofState = new ProofState();
|
$proofState = new \PhpOffice\PhpWord\ComplexType\ProofState();
|
||||||
$proofState->setGrammar(ProofState::CLEAN);
|
$proofState->setGrammar(\PhpOffice\PhpWord\ComplexType\ProofState::CLEAN);
|
||||||
$proofState->setSpelling(ProofState::DIRTY);
|
$proofState->setSpelling(\PhpOffice\PhpWord\ComplexType\ProofState::DIRTY);
|
||||||
|
|
||||||
$phpWord->getSettings()->setProofState(proofState);
|
$phpWord->getSettings()->setProofState($proofState);
|
||||||
|
|
||||||
Track Revisions
|
Track Revisions
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user