Skip to content

Commit 51ced7d

Browse files
author
Roman Syroeshko
committed
#58 Part III.
1 parent b32c198 commit 51ced7d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1835
-1797
lines changed

Classes/PHPWord/Style.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ public static function addLinkStyle($styleName, $styles)
9999
* @param string $styleName
100100
* @param array $styles
101101
*/
102-
public static function addTableStyle($styleName, $styleTable, $styleFirstRow = null, $styleLastRow = null)
102+
public static function addTableStyle($styleName, $styleTable, $styleFirstRow = null)
103103
{
104104
if (!array_key_exists($styleName, self::$_styleElements)) {
105-
$style = new TableFull($styleTable, $styleFirstRow, $styleLastRow);
105+
$style = new TableFull($styleTable, $styleFirstRow);
106106

107107
self::$_styleElements[$styleName] = $style;
108108
}

Classes/PHPWord/Writer/ODText.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ class ODText implements IWriter
7272
private $_diskCachingDirectory;
7373

7474
/**
75-
* @param PHPWord $pPHPWord
75+
* @param PHPWord $phpWord
7676
*/
77-
public function __construct(PHPWord $pPHPWord = null)
77+
public function __construct(PHPWord $phpWord = null)
7878
{
7979
// Assign PHPWord
80-
$this->setPHPWord($pPHPWord);
80+
$this->setPHPWord($phpWord);
8181

8282
// Set up disk caching location
8383
$this->_diskCachingDirectory = './';
@@ -216,13 +216,13 @@ public function getPHPWord()
216216
/**
217217
* Get PHPWord object
218218
*
219-
* @param PHPWord $pPHPWord PHPWord object
219+
* @param PHPWord $phpWord PHPWord object
220220
* @throws Exception
221221
* @return PhpOffice\PhpWord\Writer\ODText
222222
*/
223-
public function setPHPWord(PHPWord $pPHPWord = null)
223+
public function setPHPWord(PHPWord $phpWord = null)
224224
{
225-
$this->_document = $pPHPWord;
225+
$this->_document = $phpWord;
226226
return $this;
227227
}
228228

Classes/PHPWord/Writer/ODText/Manifest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ class Manifest extends WriterPart
3535
/**
3636
* Write Manifest file to XML format
3737
*
38-
* @param PHPWord $pPHPWord
39-
* @return string XML Output
40-
* @throws Exception
38+
* @param PHPWord $phpWord
39+
* @return string XML Output
40+
* @throws Exception
4141
*/
42-
public function writeManifest(PHPWord $pPHPWord = null)
42+
public function writeManifest(PHPWord $phpWord = null)
4343
{
4444
// Create XML writer
4545
$xmlWriter = null;

Classes/PHPWord/Writer/ODText/Meta.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ class Meta extends WriterPart
3434
/**
3535
* Write Meta file to XML format
3636
*
37-
* @param PHPWord $pPHPWord
38-
* @return string XML Output
39-
* @throws Exception
37+
* @param PHPWord $phpWord
38+
* @return string XML Output
39+
* @throws Exception
4040
*/
41-
public function writeMeta(PHPWord $pPHPWord = null)
41+
public function writeMeta(PHPWord $phpWord = null)
4242
{
4343
// Create XML writer
4444
$xmlWriter = null;
@@ -65,25 +65,25 @@ public function writeMeta(PHPWord $pPHPWord = null)
6565
$xmlWriter->startElement('office:meta');
6666

6767
// dc:creator
68-
$xmlWriter->writeElement('dc:creator', $pPHPWord->getProperties()->getLastModifiedBy());
68+
$xmlWriter->writeElement('dc:creator', $phpWord->getProperties()->getLastModifiedBy());
6969
// dc:date
70-
$xmlWriter->writeElement('dc:date', gmdate('Y-m-d\TH:i:s.000', $pPHPWord->getProperties()->getModified()));
70+
$xmlWriter->writeElement('dc:date', gmdate('Y-m-d\TH:i:s.000', $phpWord->getProperties()->getModified()));
7171
// dc:description
72-
$xmlWriter->writeElement('dc:description', $pPHPWord->getProperties()->getDescription());
72+
$xmlWriter->writeElement('dc:description', $phpWord->getProperties()->getDescription());
7373
// dc:subject
74-
$xmlWriter->writeElement('dc:subject', $pPHPWord->getProperties()->getSubject());
74+
$xmlWriter->writeElement('dc:subject', $phpWord->getProperties()->getSubject());
7575
// dc:title
76-
$xmlWriter->writeElement('dc:title', $pPHPWord->getProperties()->getTitle());
76+
$xmlWriter->writeElement('dc:title', $phpWord->getProperties()->getTitle());
7777
// meta:creation-date
78-
$xmlWriter->writeElement('meta:creation-date', gmdate('Y-m-d\TH:i:s.000', $pPHPWord->getProperties()->getCreated()));
78+
$xmlWriter->writeElement('meta:creation-date', gmdate('Y-m-d\TH:i:s.000', $phpWord->getProperties()->getCreated()));
7979
// meta:initial-creator
80-
$xmlWriter->writeElement('meta:initial-creator', $pPHPWord->getProperties()->getCreator());
80+
$xmlWriter->writeElement('meta:initial-creator', $phpWord->getProperties()->getCreator());
8181
// meta:keyword
82-
$xmlWriter->writeElement('meta:keyword', $pPHPWord->getProperties()->getKeywords());
82+
$xmlWriter->writeElement('meta:keyword', $phpWord->getProperties()->getKeywords());
8383

8484
// @todo : Where these properties are written ?
85-
// $pPHPWord->getProperties()->getCategory()
86-
// $pPHPWord->getProperties()->getCompany()
85+
// $phpWord->getProperties()->getCategory()
86+
// $phpWord->getProperties()->getCompany()
8787

8888
$xmlWriter->endElement();
8989

Classes/PHPWord/Writer/ODText/Mimetype.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class Mimetype extends WriterPart
3232
/**
3333
* Write Mimetype to Text format
3434
*
35-
* @param PHPWord $pPHPWord
36-
* @return string Text Output
37-
* @throws Exception
35+
* @param PHPWord $phpWord
36+
* @return string Text Output
37+
* @throws Exception
3838
*/
39-
public function writeMimetype(PHPWord $pPHPWord = null)
39+
public function writeMimetype(PHPWord $phpWord = null)
4040
{
4141

4242
return 'application/vnd.oasis.opendocument.text';

Classes/PHPWord/Writer/ODText/Styles.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ class Styles extends WriterPart
3838
/**
3939
* Write Styles file to XML format
4040
*
41-
* @param PHPWord $pPHPWord
42-
* @return string XML Output
43-
* @throws Exception
41+
* @param PHPWord $phpWord
42+
* @return string XML Output
43+
* @throws Exception
4444
*/
45-
public function writeStyles(PHPWord $pPHPWord = null)
45+
public function writeStyles(PHPWord $phpWord = null)
4646
{
4747
// Create XML writer
4848
$xmlWriter = null;

0 commit comments

Comments
 (0)