Skip to content

Commit 2e71f5b

Browse files
committed
Php-cs-fixer Fix
1 parent 223ae57 commit 2e71f5b

File tree

129 files changed

+398
-398
lines changed

Some content is hidden

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

129 files changed

+398
-398
lines changed

samples/Sample_01_SimpleText.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
// New Word Document
88
echo date('H:i:s') , ' Create new PhpWord object' , EOL;
99

10-
$languageEnGb = new \PhpOffice\PhpWord\Style\Language(\PhpOffice\PhpWord\Style\Language::EN_GB);
10+
$languageEnGb = new PhpOffice\PhpWord\Style\Language(PhpOffice\PhpWord\Style\Language::EN_GB);
1111

12-
$phpWord = new \PhpOffice\PhpWord\PhpWord();
12+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1313
$phpWord->getSettings()->setThemeFontLang($languageEnGb);
1414

1515
$fontStyleName = 'rStyle';
1616
$phpWord->addFontStyle($fontStyleName, ['bold' => true, 'italic' => true, 'size' => 16, 'allCaps' => true, 'doubleStrikethrough' => true]);
1717

1818
$paragraphStyleName = 'pStyle';
19-
$phpWord->addParagraphStyle($paragraphStyleName, ['alignment' => \PhpOffice\PhpWord\SimpleType\Jc::CENTER, 'spaceAfter' => 100]);
19+
$phpWord->addParagraphStyle($paragraphStyleName, ['alignment' => PhpOffice\PhpWord\SimpleType\Jc::CENTER, 'spaceAfter' => 100]);
2020

2121
$phpWord->addTitleStyle(1, ['bold' => true], ['spaceAfter' => 240]);
2222

@@ -29,7 +29,7 @@
2929

3030
// $pStyle = new Font();
3131
// $pStyle->setLang()
32-
$section->addText('Ce texte-ci est en français.', ['lang' => \PhpOffice\PhpWord\Style\Language::FR_BE]);
32+
$section->addText('Ce texte-ci est en français.', ['lang' => PhpOffice\PhpWord\Style\Language::FR_BE]);
3333

3434
// Two text break
3535
$section->addTextBreak(2);

samples/Sample_02_TabStops.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44

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

99
// Define styles
1010
$multipleTabsStyleName = 'multipleTab';
1111
$phpWord->addParagraphStyle(
1212
$multipleTabsStyleName,
1313
[
1414
'tabs' => [
15-
new \PhpOffice\PhpWord\Style\Tab('left', 1550),
16-
new \PhpOffice\PhpWord\Style\Tab('center', 3200),
17-
new \PhpOffice\PhpWord\Style\Tab('right', 5300),
15+
new PhpOffice\PhpWord\Style\Tab('left', 1550),
16+
new PhpOffice\PhpWord\Style\Tab('center', 3200),
17+
new PhpOffice\PhpWord\Style\Tab('right', 5300),
1818
],
1919
]
2020
);
2121

2222
$rightTabStyleName = 'rightTab';
23-
$phpWord->addParagraphStyle($rightTabStyleName, ['tabs' => [new \PhpOffice\PhpWord\Style\Tab('right', 9090)]]);
23+
$phpWord->addParagraphStyle($rightTabStyleName, ['tabs' => [new PhpOffice\PhpWord\Style\Tab('right', 9090)]]);
2424

2525
$leftTabStyleName = 'centerTab';
26-
$phpWord->addParagraphStyle($leftTabStyleName, ['tabs' => [new \PhpOffice\PhpWord\Style\Tab('center', 4680)]]);
26+
$phpWord->addParagraphStyle($leftTabStyleName, ['tabs' => [new PhpOffice\PhpWord\Style\Tab('center', 4680)]]);
2727

2828
// New portrait section
2929
$section = $phpWord->addSection();

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\PhpWord();
9+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1010

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

samples/Sample_04_Textrun.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

99
// Define styles
1010
$paragraphStyleName = 'pStyle';
@@ -17,7 +17,7 @@
1717
$phpWord->addFontStyle($coloredFontStyleName, ['color' => 'FF8080', 'bgColor' => 'FFFFCC']);
1818

1919
$linkFontStyleName = 'NLink';
20-
$phpWord->addLinkStyle($linkFontStyleName, ['color' => '0000FF', 'underline' => \PhpOffice\PhpWord\Style\Font::UNDERLINE_SINGLE]);
20+
$phpWord->addLinkStyle($linkFontStyleName, ['color' => '0000FF', 'underline' => PhpOffice\PhpWord\Style\Font::UNDERLINE_SINGLE]);
2121

2222
// New portrait section
2323
$section = $phpWord->addSection();

samples/Sample_05_Multicolumn.php

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

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

samples/Sample_06_Footnote.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
// New Word Document
99
echo date('H:i:s'), ' Create new PhpWord object', EOL;
10-
$phpWord = new \PhpOffice\PhpWord\PhpWord();
11-
\PhpOffice\PhpWord\Settings::setCompatibility(false);
10+
$phpWord = new PhpOffice\PhpWord\PhpWord();
11+
PhpOffice\PhpWord\Settings::setCompatibility(false);
1212

1313
// Define styles
1414
$paragraphStyleName = 'pStyle';
@@ -21,7 +21,7 @@
2121
$phpWord->addFontStyle($coloredFontStyleName, ['color' => 'FF8080', 'bgColor' => 'FFFFCC']);
2222

2323
$linkFontStyleName = 'NLink';
24-
$phpWord->addLinkStyle($linkFontStyleName, ['color' => '0000FF', 'underline' => \PhpOffice\PhpWord\Style\Font::UNDERLINE_SINGLE]);
24+
$phpWord->addLinkStyle($linkFontStyleName, ['color' => '0000FF', 'underline' => PhpOffice\PhpWord\Style\Font::UNDERLINE_SINGLE]);
2525

2626
// New portrait section
2727
$section = $phpWord->addSection();

samples/Sample_07_TemplateCloneRow.php

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

55
// Template processor instance creation
66
echo date('H:i:s'), ' Creating new TemplateProcessor instance...', EOL;
7-
$templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor('resources/Sample_07_TemplateCloneRow.docx');
7+
$templateProcessor = new PhpOffice\PhpWord\TemplateProcessor('resources/Sample_07_TemplateCloneRow.docx');
88

99
// Variables on different parts of document
1010
$templateProcessor->setValue('weekday', date('l')); // On section/content

samples/Sample_08_ParagraphPagination.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
// New Word document
66
echo date('H:i:s'), ' Create new PhpWord object', EOL;
7-
$phpWord = new \PhpOffice\PhpWord\PhpWord();
7+
$phpWord = new PhpOffice\PhpWord\PhpWord();
88
$phpWord->setDefaultParagraphStyle(
99
[
10-
'alignment' => \PhpOffice\PhpWord\SimpleType\Jc::BOTH,
11-
'spaceAfter' => \PhpOffice\PhpWord\Shared\Converter::pointToTwip(12),
10+
'alignment' => PhpOffice\PhpWord\SimpleType\Jc::BOTH,
11+
'spaceAfter' => PhpOffice\PhpWord\Shared\Converter::pointToTwip(12),
1212
'spacing' => 120,
1313
]
1414
);

samples/Sample_09_Tables.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// New Word Document
99
echo date('H:i:s'), ' Create new PhpWord object', EOL;
10-
$phpWord = new \PhpOffice\PhpWord\PhpWord();
10+
$phpWord = new PhpOffice\PhpWord\PhpWord();
1111
$section = $phpWord->addSection();
1212
$header = ['size' => 16, 'bold' => true];
1313

@@ -31,10 +31,10 @@
3131
$section->addText('Fancy table', $header);
3232

3333
$fancyTableStyleName = 'Fancy Table';
34-
$fancyTableStyle = ['borderSize' => 6, 'borderColor' => '006699', 'cellMargin' => 80, 'alignment' => \PhpOffice\PhpWord\SimpleType\JcTable::CENTER, 'cellSpacing' => 50];
34+
$fancyTableStyle = ['borderSize' => 6, 'borderColor' => '006699', 'cellMargin' => 80, 'alignment' => PhpOffice\PhpWord\SimpleType\JcTable::CENTER, 'cellSpacing' => 50];
3535
$fancyTableFirstRowStyle = ['borderBottomSize' => 18, 'borderBottomColor' => '0000FF', 'bgColor' => '66BBFF'];
3636
$fancyTableCellStyle = ['valign' => 'center'];
37-
$fancyTableCellBtlrStyle = ['valign' => 'center', 'textDirection' => \PhpOffice\PhpWord\Style\Cell::TEXT_DIR_BTLR];
37+
$fancyTableCellBtlrStyle = ['valign' => 'center', 'textDirection' => PhpOffice\PhpWord\Style\Cell::TEXT_DIR_BTLR];
3838
$fancyTableFontStyle = ['bold' => true];
3939
$phpWord->addTableStyle($fancyTableStyleName, $fancyTableStyle, $fancyTableFirstRowStyle);
4040
$table = $section->addTable($fancyTableStyleName);
@@ -70,7 +70,7 @@
7070
$cellRowSpan = ['vMerge' => 'restart', 'valign' => 'center', 'bgColor' => 'FFFF00'];
7171
$cellRowContinue = ['vMerge' => 'continue'];
7272
$cellColSpan = ['gridSpan' => 2, 'valign' => 'center'];
73-
$cellHCentered = ['alignment' => \PhpOffice\PhpWord\SimpleType\Jc::CENTER];
73+
$cellHCentered = ['alignment' => PhpOffice\PhpWord\SimpleType\Jc::CENTER];
7474
$cellVCentered = ['valign' => 'center'];
7575

7676
$spanTableStyleName = 'Colspan Rowspan';
@@ -137,10 +137,10 @@
137137
$section->addTextBreak(2);
138138
$section->addText('Nested table in a centered and 50% width table.', $header);
139139

140-
$table = $section->addTable(['width' => 50 * 50, 'unit' => 'pct', 'alignment' => \PhpOffice\PhpWord\SimpleType\JcTable::CENTER]);
140+
$table = $section->addTable(['width' => 50 * 50, 'unit' => 'pct', 'alignment' => PhpOffice\PhpWord\SimpleType\JcTable::CENTER]);
141141
$cell = $table->addRow()->addCell();
142142
$cell->addText('This cell contains nested table.');
143-
$innerCell = $cell->addTable(['alignment' => \PhpOffice\PhpWord\SimpleType\JcTable::CENTER])->addRow()->addCell();
143+
$innerCell = $cell->addTable(['alignment' => PhpOffice\PhpWord\SimpleType\JcTable::CENTER])->addRow()->addCell();
144144
$innerCell->addText('Inside nested table');
145145

146146
// 6. Table with floating position

samples/Sample_10_EastAsianFontStyle.php

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

55
// New Word Document
66
echo date('H:i:s'), ' Create new PhpWord object', EOL;
7-
$phpWord = new \PhpOffice\PhpWord\PhpWord();
7+
$phpWord = new PhpOffice\PhpWord\PhpWord();
88
$section = $phpWord->addSection();
99
$header = ['size' => 16, 'bold' => true];
1010
//1.Use EastAisa FontStyle

0 commit comments

Comments
 (0)