Skip to content

Commit f2122c1

Browse files
committed
Changed PHPWord namespace to PhpOffice\PhpWord
1 parent 79ba793 commit f2122c1

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Classes/PHPWord/Autoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737
class PHPWord_Autoloader
3838
{
39-
const PREFIX = 'PHPWord';
39+
const PREFIX = 'PhpOffice\PhpWord';
4040

4141
/**
4242
* Register the autoloader

Classes/PHPWord/Exceptions/InvalidStyleException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace PHPWord\Exceptions;
2+
namespace PhpOffice\PhpWord\Exceptions;
33

44
use InvalidArgumentException;
55

Classes/PHPWord/Style/Font.php

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

28-
use PHPWord\Exceptions\InvalidStyleException;
28+
use PhpOffice\PhpWord\Exceptions\InvalidStyleException;
2929

3030
/**
3131
* Class PHPWord_Style_Font
@@ -488,7 +488,7 @@ public function getParagraphStyle()
488488
*
489489
* @param int|float|string $lineHeight
490490
* @return $this
491-
* @throws \PHPWord\Exceptions\InvalidStyleException
491+
* @throws InvalidStyleException
492492
*/
493493
public function setLineHeight($lineHeight)
494494
{

Classes/PHPWord/Style/Paragraph.php

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

28-
use PHPWord\Exceptions\InvalidStyleException;
28+
use PhpOffice\PhpWord\Exceptions\InvalidStyleException;
2929

3030
/**
3131
* PHPWord_Style_Paragraph
@@ -482,7 +482,7 @@ public function setPageBreakBefore($pValue = false)
482482
*
483483
* @param int|float|string $lineHeight
484484
* @return $this
485-
* @throws \PHPWord\Exceptions\InvalidStyleException
485+
* @throws InvalidStyleException
486486
*/
487487
public function setLineHeight($lineHeight)
488488
{

Tests/PHPWord/AutoloaderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public function testAutoload()
2525
$declared = get_declared_classes();
2626
$declaredCount = count($declared);
2727
Autoloader::autoload('Foo');
28-
$this->assertEquals($declaredCount, count(get_declared_classes()), 'PHPWord\\Autoloader::autoload() is trying to load classes outside of the PHPWord namespace');
29-
Autoloader::autoload('PHPWord\\Exceptions\\InvalidStyleException'); // TODO change this class to the main PHPWord class when it is namespaced
30-
$this->assertTrue(in_array('PHPWord\\Exceptions\\InvalidStyleException', get_declared_classes()), 'PHPWord\\Autoloader::autoload() failed to autoload the PHPWord\\Exceptions\\InvalidStyleException class');
28+
$this->assertEquals($declaredCount, count(get_declared_classes()), 'PhpOffice\\PhpWord\\Autoloader::autoload() is trying to load classes outside of the PhpOffice\\PhpWord namespace');
29+
Autoloader::autoload('PhpOffice\\PhpWord\\Exceptions\\InvalidStyleException'); // TODO change this class to the main PHPWord class when it is namespaced
30+
$this->assertTrue(in_array('PhpOffice\\PhpWord\\Exceptions\\InvalidStyleException', get_declared_classes()), 'PhpOffice\\PhpWord\\Autoloader::autoload() failed to autoload the PhpOffice\\PhpWord\\Exceptions\\InvalidStyleException class');
3131
}
3232
}

0 commit comments

Comments
 (0)