Skip to content

Commit 0c449a6

Browse files
author
Roman Syroeshko
committed
#58 - fixes for samples.
1 parent 9c6d07a commit 0c449a6

19 files changed

+19
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ We're reorganizing our documentation. Below are some of the most important thing
8282
The following is a basic example of the PhpWord library. More examples are provided in the [samples folder](samples/).
8383

8484
```php
85-
$phpWord = new PhpOffice\PhpWord();
85+
$phpWord = new PhpOffice\PhpWord\PhpWord();
8686

8787
// Every element you want to append to the word document is placed in a section.
8888
// To create a basic section:

samples/Sample_01_SimpleText.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// New Word Document
88
echo date('H:i:s') , " Create new PhpWord object" , EOL;
9-
$phpWord = new PhpOffice\PhpWord();
9+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1010
$phpWord->addFontStyle('rStyle', array('bold' => true, 'italic' => true, 'size' => 16));
1111
$phpWord->addParagraphStyle('pStyle', array('align' => 'center', 'spaceAfter' => 100));
1212
$phpWord->addTitleStyle(1, array('bold' => true), array('spaceAfter' => 240));

samples/Sample_02_TabStops.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// New Word Document
88
echo date('H:i:s') , ' Create new PhpWord object' , EOL;
9-
$phpWord = new PhpOffice\PhpWord();
9+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1010

1111
// Ads styles
1212
$phpWord->addParagraphStyle('multipleTab', array(

samples/Sample_03_Sections.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// New Word Document
88
echo date('H:i:s') , ' Create new PhpWord object' , EOL;
9-
$phpWord = new PhpOffice\PhpWord();
9+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1010

1111
// New portrait section
1212
$section = $phpWord->createSection(array('borderColor' => '00FF00', 'borderSize' => 12));

samples/Sample_04_Textrun.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// New Word Document
88
echo date('H:i:s') , ' Create new PhpWord object' , EOL;
9-
$phpWord = new PhpOffice\PhpWord();
9+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1010

1111
// Ads styles
1212
$phpWord->addParagraphStyle('pStyle', array('spacing'=>100));

samples/Sample_05_Multicolumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// New Word Document
88
echo date('H:i:s') , " Create new PhpWord object" , EOL;
9-
$phpWord = new PhpOffice\PhpWord();
9+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1010
$filler = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' .
1111
'Nulla fermentum, tortor id adipiscing adipiscing, tortor turpis commodo. ' .
1212
'Donec vulputate iaculis metus, vel luctus dolor hendrerit ac. ' .

samples/Sample_06_Footnote.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// New Word Document
88
echo date('H:i:s') , " Create new PhpWord object" , EOL;
9-
$phpWord = new PhpOffice\PhpWord();
9+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1010

1111
// New portrait section
1212
$section = $phpWord->createSection();

samples/Sample_07_TemplateCloneRow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// New Word document
88
echo date('H:i:s') , " Create new PhpWord object" , EOL;
9-
$phpWord = new PhpOffice\PhpWord();
9+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1010

1111
$document = $phpWord->loadTemplate('resources/Sample_07_TemplateCloneRow.docx');
1212

samples/Sample_08_ParagraphPagination.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// New Word document
88
echo date('H:i:s') , " Create new PhpWord object" , EOL;
9-
$phpWord = new PhpOffice\PhpWord();
9+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1010
$phpWord->setDefaultParagraphStyle(array(
1111
'align' => 'both',
1212
'spaceAfter' => PhpOffice\PhpWord\Shared\Font::pointSizeToTwips(12),

samples/Sample_09_Tables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// New Word Document
88
echo date('H:i:s') , ' Create new PhpWord object' , EOL;
9-
$phpWord = new PhpOffice\PhpWord();
9+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1010
$section = $phpWord->createSection();
1111
$header = array('size' => 16, 'bold' => true);
1212

0 commit comments

Comments
 (0)