fix documentation

This commit is contained in:
troosan 2018-07-14 03:28:09 +02:00
parent 32907215ed
commit 6475812e82
6 changed files with 12 additions and 16 deletions

View File

@ -83,7 +83,7 @@ class OLEObject extends AbstractElement
$this->style = $this->setNewStyle(new ImageStyle(), $style, true); $this->style = $this->setNewStyle(new ImageStyle(), $style, true);
$this->icon = realpath(__DIR__ . "/../resources/{$ext}.png"); $this->icon = realpath(__DIR__ . "/../resources/{$ext}.png");
return $this; return;
} }
throw new InvalidObjectException(); throw new InvalidObjectException();

View File

@ -29,7 +29,7 @@ class PreserveText extends AbstractElement
/** /**
* Text content * Text content
* *
* @var string * @var string|array
*/ */
private $text; private $text;
@ -64,8 +64,6 @@ class PreserveText extends AbstractElement
if (isset($matches[0])) { if (isset($matches[0])) {
$this->text = $matches; $this->text = $matches;
} }
return $this;
} }
/** /**
@ -91,7 +89,7 @@ class PreserveText extends AbstractElement
/** /**
* Get Text content * Get Text content
* *
* @return string * @return string|array
*/ */
public function getText() public function getText()
{ {

View File

@ -74,8 +74,6 @@ class Title extends AbstractElement
if (array_key_exists($styleName, Style::getStyles())) { if (array_key_exists($styleName, Style::getStyles())) {
$this->style = str_replace('_', '', $styleName); $this->style = str_replace('_', '', $styleName);
} }
return $this;
} }
/** /**

View File

@ -113,7 +113,7 @@ class Protection
/** /**
* Set password * Set password
* *
* @param $password * @param string $password
* @return self * @return self
*/ */
public function setPassword($password) public function setPassword($password)
@ -136,7 +136,7 @@ class Protection
/** /**
* Set count for hash iterations * Set count for hash iterations
* *
* @param $spinCount * @param int $spinCount
* @return self * @return self
*/ */
public function setSpinCount($spinCount) public function setSpinCount($spinCount)
@ -159,7 +159,7 @@ class Protection
/** /**
* Set algorithm * Set algorithm
* *
* @param $algorithm * @param string $algorithm
* @return self * @return self
*/ */
public function setAlgorithm($algorithm) public function setAlgorithm($algorithm)

View File

@ -81,7 +81,7 @@ class Settings extends AbstractPart
* *
* @param XMLReader $xmlReader * @param XMLReader $xmlReader
* @param PhpWord $phpWord * @param PhpWord $phpWord
* @param \DOMNode $node * @param \DOMElement $node
*/ */
protected function setThemeFontLang(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node) protected function setThemeFontLang(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node)
{ {
@ -102,7 +102,7 @@ class Settings extends AbstractPart
* *
* @param XMLReader $xmlReader * @param XMLReader $xmlReader
* @param PhpWord $phpWord * @param PhpWord $phpWord
* @param \DOMNode $node * @param \DOMElement $node
*/ */
protected function setDocumentProtection(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node) protected function setDocumentProtection(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node)
{ {
@ -119,7 +119,7 @@ class Settings extends AbstractPart
* *
* @param XMLReader $xmlReader * @param XMLReader $xmlReader
* @param PhpWord $phpWord * @param PhpWord $phpWord
* @param \DOMNode $node * @param \DOMElement $node
*/ */
protected function setProofState(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node) protected function setProofState(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node)
{ {
@ -141,7 +141,7 @@ class Settings extends AbstractPart
* *
* @param XMLReader $xmlReader * @param XMLReader $xmlReader
* @param PhpWord $phpWord * @param PhpWord $phpWord
* @param \DOMNode $node * @param \DOMElement $node
*/ */
protected function setZoom(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node) protected function setZoom(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node)
{ {
@ -158,7 +158,7 @@ class Settings extends AbstractPart
* *
* @param XMLReader $xmlReader * @param XMLReader $xmlReader
* @param PhpWord $phpWord * @param PhpWord $phpWord
* @param \DOMNode $node * @param \DOMElement $node
*/ */
protected function setRevisionView(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node) protected function setRevisionView(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node)
{ {

View File

@ -33,7 +33,7 @@ class Indentation extends AbstractStyle
{ {
$style = $this->getStyle(); $style = $this->getStyle();
if (!$style instanceof \PhpOffice\PhpWord\Style\Indentation) { if (!$style instanceof \PhpOffice\PhpWord\Style\Indentation) {
return; return '';
} }
$content = '\fi' . $style->getFirstLine(); $content = '\fi' . $style->getFirstLine();