Skip to content

Commit

Permalink
fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
troosan committed Jul 14, 2018
1 parent 3290721 commit 6475812
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/PhpWord/Element/OLEObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function __construct($source, $style = null)
$this->style = $this->setNewStyle(new ImageStyle(), $style, true);
$this->icon = realpath(__DIR__ . "/../resources/{$ext}.png");

return $this;
return;
}

throw new InvalidObjectException();
Expand Down
6 changes: 2 additions & 4 deletions src/PhpWord/Element/PreserveText.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PreserveText extends AbstractElement
/**
* Text content
*
* @var string
* @var string|array
*/
private $text;

Expand Down Expand Up @@ -64,8 +64,6 @@ public function __construct($text = null, $fontStyle = null, $paragraphStyle = n
if (isset($matches[0])) {
$this->text = $matches;
}

return $this;
}

/**
Expand All @@ -91,7 +89,7 @@ public function getParagraphStyle()
/**
* Get Text content
*
* @return string
* @return string|array
*/
public function getText()
{
Expand Down
2 changes: 0 additions & 2 deletions src/PhpWord/Element/Title.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public function __construct($text, $depth = 1)
if (array_key_exists($styleName, Style::getStyles())) {
$this->style = str_replace('_', '', $styleName);
}

return $this;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/PhpWord/Metadata/Protection.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getPassword()
/**
* Set password
*
* @param $password
* @param string $password
* @return self
*/
public function setPassword($password)
Expand All @@ -136,7 +136,7 @@ public function getSpinCount()
/**
* Set count for hash iterations
*
* @param $spinCount
* @param int $spinCount
* @return self
*/
public function setSpinCount($spinCount)
Expand All @@ -159,7 +159,7 @@ public function getAlgorithm()
/**
* Set algorithm
*
* @param $algorithm
* @param string $algorithm
* @return self
*/
public function setAlgorithm($algorithm)
Expand Down
10 changes: 5 additions & 5 deletions src/PhpWord/Reader/Word2007/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function read(PhpWord $phpWord)
*
* @param XMLReader $xmlReader
* @param PhpWord $phpWord
* @param \DOMNode $node
* @param \DOMElement $node
*/
protected function setThemeFontLang(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node)
{
Expand All @@ -102,7 +102,7 @@ protected function setThemeFontLang(XMLReader $xmlReader, PhpWord $phpWord, \DOM
*
* @param XMLReader $xmlReader
* @param PhpWord $phpWord
* @param \DOMNode $node
* @param \DOMElement $node
*/
protected function setDocumentProtection(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node)
{
Expand All @@ -119,7 +119,7 @@ protected function setDocumentProtection(XMLReader $xmlReader, PhpWord $phpWord,
*
* @param XMLReader $xmlReader
* @param PhpWord $phpWord
* @param \DOMNode $node
* @param \DOMElement $node
*/
protected function setProofState(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node)
{
Expand All @@ -141,7 +141,7 @@ protected function setProofState(XMLReader $xmlReader, PhpWord $phpWord, \DOMEle
*
* @param XMLReader $xmlReader
* @param PhpWord $phpWord
* @param \DOMNode $node
* @param \DOMElement $node
*/
protected function setZoom(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node)
{
Expand All @@ -158,7 +158,7 @@ protected function setZoom(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $
*
* @param XMLReader $xmlReader
* @param PhpWord $phpWord
* @param \DOMNode $node
* @param \DOMElement $node
*/
protected function setRevisionView(XMLReader $xmlReader, PhpWord $phpWord, \DOMElement $node)
{
Expand Down
2 changes: 1 addition & 1 deletion src/PhpWord/Writer/RTF/Style/Indentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function write()
{
$style = $this->getStyle();
if (!$style instanceof \PhpOffice\PhpWord\Style\Indentation) {
return;
return '';
}

$content = '\fi' . $style->getFirstLine();
Expand Down

0 comments on commit 6475812

Please sign in to comment.