Skip to content

Commit 088caa2

Browse files
committed
@codeCoverageIgnore for some legacy (unused yet) code
1 parent 0fe30ae commit 088caa2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

Classes/PHPWord/HashTable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
/**
2929
* PHPWord_HashTable
30+
*
31+
* @codeCoverageIgnore Legacy from PHPExcel
3032
*/
3133
class PHPWord_HashTable
3234
{

Classes/PHPWord/Shared/ZipStreamWrapper.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
* @version 0.7.0
2626
*/
2727

28-
/** Register new zip wrapper */
29-
PHPWord_Shared_ZipStreamWrapper::register();
30-
3128
/**
3229
* Class PHPWord_Shared_ZipStreamWrapper
30+
*
31+
* @codeCoverageIgnore Legacy from PHPExcel
3332
*/
3433
class PHPWord_Shared_ZipStreamWrapper
3534
{

Classes/PHPWord/Writer/ODText.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ public function save($pFilename = null)
141141
// Add META-INF/manifest.xml
142142
$objZip->addFromString('META-INF/manifest.xml', $this->getWriterPart('manifest')->writeManifest($this->_document));
143143

144-
// Add media
144+
// Add media. Has not used yet. Legacy from PHPExcel.
145+
// @codeCoverageIgnoreStart
145146
for ($i = 0; $i < $this->getDrawingHashTable()->count(); ++$i) {
146147
if ($this->getDrawingHashTable()->getByIndex($i) instanceof PHPWord_Shape_Drawing) {
147148
$imageContents = null;

Classes/PHPWord/Writer/ODText/Manifest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ public function writeManifest(PHPWord $pPHPWord = null)
7777
$objWriter->writeAttribute('manifest:full-path', 'styles.xml');
7878
$objWriter->endElement();
7979

80+
// Not used yet. Legacy from PHPExcel
81+
// @codeCoverageIgnoreStart
8082
for ($i = 0; $i < $this->getParentWriter()->getDrawingHashTable()->count(); ++$i) {
8183
if ($this->getParentWriter()->getDrawingHashTable()->getByIndex($i) instanceof PHPWord_Shape_Drawing) {
8284
$extension = strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getExtension());

0 commit comments

Comments
 (0)