Skip to content

Commit 4fe91e0

Browse files
oleibmanProgi1984
authored andcommitted
Remove Redundancies in Doc Blocks
1 parent bcaac65 commit 4fe91e0

File tree

15 files changed

+4
-34
lines changed

15 files changed

+4
-34
lines changed

src/PhpWord/Element/AbstractElement.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ public function getParent()
345345
* Set parent container.
346346
*
347347
* Passed parameter should be a container, except for Table (contain Row) and Row (contain Cell)
348-
*
349-
* @param \PhpOffice\PhpWord\Element\AbstractElement $container
350348
*/
351349
public function setParentContainer(self $container): void
352350
{

src/PhpWord/Element/Comment.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ public function getInitials()
7979

8080
/**
8181
* Sets the element where this comment starts.
82-
*
83-
* @param \PhpOffice\PhpWord\Element\AbstractElement $value
8482
*/
8583
public function setStartElement(AbstractElement $value): void
8684
{
@@ -102,8 +100,6 @@ public function getStartElement()
102100

103101
/**
104102
* Sets the element where this comment ends.
105-
*
106-
* @param \PhpOffice\PhpWord\Element\AbstractElement $value
107103
*/
108104
public function setEndElement(AbstractElement $value): void
109105
{

src/PhpWord/Element/Section.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ public function getFootnoteProperties()
154154

155155
/**
156156
* Set the footnote properties.
157-
*
158-
* @param FootnoteProperties $footnoteProperties
159157
*/
160158
public function setFootnoteProperties(?FootnoteProperties $footnoteProperties = null): void
161159
{

src/PhpWord/Media.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class Media
4141
* @param string $container section|headerx|footerx|footnote|endnote
4242
* @param string $mediaType image|object|link
4343
* @param string $source
44-
* @param \PhpOffice\PhpWord\Element\Image $image
4544
*
4645
* @return int
4746
*/

src/PhpWord/Metadata/Settings.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ public function getRevisionView()
275275

276276
/**
277277
* Set the Visibility of Annotation Types.
278-
*
279-
* @param TrackChangesView $trackChangesView
280278
*/
281279
public function setRevisionView(?TrackChangesView $trackChangesView = null): void
282280
{

src/PhpWord/Reader/MsDoc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,6 +1932,7 @@ private function readPrl($data, $pos, $cbNum)
19321932
// $operand = self::getInt2d($data, $pos);
19331933
$pos += 2;
19341934
$cbNum -= 2;
1935+
19351936
// $ipat = ($operand >> 0) && bindec('111111');
19361937
// $icoBack = ($operand >> 6) && bindec('11111');
19371938
// $icoFore = ($operand >> 11) && bindec('11111');

src/PhpWord/Reader/Word2007/AbstractPart.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,6 @@ protected function readParagraph(XMLReader $xmlReader, DOMElement $domNode, $par
285285
/**
286286
* Returns the depth of the Heading, returns 0 for a Title.
287287
*
288-
* @param array $paragraphStyle
289-
*
290288
* @return null|number
291289
*/
292290
private function getHeadingDepth(?array $paragraphStyle = null)
@@ -752,7 +750,6 @@ private function findPossibleAttribute(XMLReader $xmlReader, DOMElement $node, $
752750
/**
753751
* Read style definition.
754752
*
755-
* @param DOMElement $parentNode
756753
* @param array $styleDefs
757754
*
758755
* @ignoreScrutinizerPatch

src/PhpWord/Shared/XMLReader.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public function getDomFromString($content)
9797
* Get elements.
9898
*
9999
* @param string $path
100-
* @param DOMElement $contextNode
101100
*
102101
* @return DOMNodeList<DOMElement>
103102
*/
@@ -139,7 +138,6 @@ public function registerNamespace($prefix, $namespaceURI)
139138
* Get element.
140139
*
141140
* @param string $path
142-
* @param DOMElement $contextNode
143141
*
144142
* @return null|DOMElement
145143
*/
@@ -157,7 +155,6 @@ public function getElement($path, ?DOMElement $contextNode = null)
157155
* Get element attribute.
158156
*
159157
* @param string $attribute
160-
* @param DOMElement $contextNode
161158
* @param string $path
162159
*
163160
* @return null|string
@@ -185,7 +182,6 @@ public function getAttribute($attribute, ?DOMElement $contextNode = null, $path
185182
* Get element value.
186183
*
187184
* @param string $path
188-
* @param DOMElement $contextNode
189185
*
190186
* @return null|string
191187
*/
@@ -203,7 +199,6 @@ public function getValue($path, ?DOMElement $contextNode = null)
203199
* Count elements.
204200
*
205201
* @param string $path
206-
* @param DOMElement $contextNode
207202
*
208203
* @return int
209204
*/
@@ -218,7 +213,6 @@ public function countElements($path, ?DOMElement $contextNode = null)
218213
* Element exists.
219214
*
220215
* @param string $path
221-
* @param DOMElement $contextNode
222216
*
223217
* @return bool
224218
*/

src/PhpWord/TemplateProcessor.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ protected static function ensureUtf8Encoded($subject)
284284

285285
/**
286286
* @param string $search
287-
* @param \PhpOffice\PhpWord\Element\AbstractElement $complexType
288287
*/
289288
public function setComplexValue($search, Element\AbstractElement $complexType): void
290289
{
@@ -312,7 +311,6 @@ public function setComplexValue($search, Element\AbstractElement $complexType):
312311

313312
/**
314313
* @param string $search
315-
* @param \PhpOffice\PhpWord\Element\AbstractElement $complexType
316314
*/
317315
public function setComplexBlock($search, Element\AbstractElement $complexType): void
318316
{

src/PhpWord/Writer/ODText.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ class ODText extends AbstractWriter implements WriterInterface
3838

3939
/**
4040
* Create new ODText writer.
41-
*
42-
* @param \PhpOffice\PhpWord\PhpWord $phpWord
4341
*/
4442
public function __construct(?PhpWord $phpWord = null)
4543
{

0 commit comments

Comments
 (0)