Automatic code style
This commit is contained in:
parent
5b5de9e514
commit
d59591b7ab
|
|
@ -900,7 +900,7 @@ class Html
|
||||||
if (!is_file($src)
|
if (!is_file($src)
|
||||||
&& null !== self::$options
|
&& null !== self::$options
|
||||||
&& isset(self::$options['IMG_SRC_SEARCH'], self::$options['IMG_SRC_REPLACE'])
|
&& isset(self::$options['IMG_SRC_SEARCH'], self::$options['IMG_SRC_REPLACE'])
|
||||||
) {
|
) {
|
||||||
$src = str_replace(self::$options['IMG_SRC_SEARCH'], self::$options['IMG_SRC_REPLACE'], $src);
|
$src = str_replace(self::$options['IMG_SRC_SEARCH'], self::$options['IMG_SRC_REPLACE'], $src);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
namespace PhpOffice\PhpWordTests\Collection;
|
namespace PhpOffice\PhpWordTests\Collection;
|
||||||
|
|
||||||
use PhpOffice\PhpWord\Element\Footnote;
|
|
||||||
use PhpOffice\PhpWord\Collection\Footnotes;
|
use PhpOffice\PhpWord\Collection\Footnotes;
|
||||||
|
use PhpOffice\PhpWord\Element\Footnote;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for PhpOffice\PhpWord\Collection subnamespace.
|
* Test class for PhpOffice\PhpWord\Collection subnamespace.
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@
|
||||||
namespace PhpOffice\PhpWordTests\Element;
|
namespace PhpOffice\PhpWordTests\Element;
|
||||||
|
|
||||||
use PhpOffice\PhpWord\Element\Image;
|
use PhpOffice\PhpWord\Element\Image;
|
||||||
use PhpOffice\PhpWordTests\AbstractWebServerEmbeddedTest;
|
|
||||||
use PhpOffice\PhpWord\SimpleType\Jc;
|
use PhpOffice\PhpWord\SimpleType\Jc;
|
||||||
|
use PhpOffice\PhpWordTests\AbstractWebServerEmbeddedTest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for PhpOffice\PhpWord\Element\Image.
|
* Test class for PhpOffice\PhpWord\Element\Image.
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,9 @@ namespace PhpOffice\PhpWordTests\Element;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use PhpOffice\PhpWord\Element\Header;
|
use PhpOffice\PhpWord\Element\Header;
|
||||||
|
use PhpOffice\PhpWord\Element\Section;
|
||||||
use PhpOffice\PhpWord\PhpWord;
|
use PhpOffice\PhpWord\PhpWord;
|
||||||
use PhpOffice\PhpWord\Style;
|
use PhpOffice\PhpWord\Style;
|
||||||
use PhpOffice\PhpWord\Element\Section;
|
|
||||||
use PhpOffice\PhpWord\Style\Section as SectionStyle;
|
use PhpOffice\PhpWord\Style\Section as SectionStyle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ use PHPUnit\Framework\TestCase;
|
||||||
/**
|
/**
|
||||||
* Test class for PhpOffice\PhpWord\Exception\Exception.
|
* Test class for PhpOffice\PhpWord\Exception\Exception.
|
||||||
*
|
*
|
||||||
* @coversDefaultClass Exception
|
* @coversDefaultClass \Exception
|
||||||
*
|
*
|
||||||
* @runTestsInSeparateProcesses
|
* @runTestsInSeparateProcesses
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
namespace PhpOffice\PhpWordTests\Reader\Word2007;
|
namespace PhpOffice\PhpWordTests\Reader\Word2007;
|
||||||
|
|
||||||
use PhpOffice\PhpWordTests\AbstractTestReader;
|
|
||||||
use PhpOffice\PhpWord\Element\TrackChange;
|
use PhpOffice\PhpWord\Element\TrackChange;
|
||||||
|
use PhpOffice\PhpWordTests\AbstractTestReader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for PhpOffice\PhpWord\Reader\Word2007\Element subnamespace.
|
* Test class for PhpOffice\PhpWord\Reader\Word2007\Element subnamespace.
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,12 @@
|
||||||
|
|
||||||
namespace PhpOffice\PhpWordTests\Reader\Word2007;
|
namespace PhpOffice\PhpWordTests\Reader\Word2007;
|
||||||
|
|
||||||
use PhpOffice\PhpWordTests\AbstractTestReader;
|
|
||||||
use PhpOffice\PhpWord\SimpleType\TblWidth;
|
use PhpOffice\PhpWord\SimpleType\TblWidth;
|
||||||
use PhpOffice\PhpWord\SimpleType\VerticalJc;
|
use PhpOffice\PhpWord\SimpleType\VerticalJc;
|
||||||
use PhpOffice\PhpWord\Style;
|
use PhpOffice\PhpWord\Style;
|
||||||
use PhpOffice\PhpWord\Style\Table;
|
use PhpOffice\PhpWord\Style\Table;
|
||||||
use PhpOffice\PhpWord\Style\TablePosition;
|
use PhpOffice\PhpWord\Style\TablePosition;
|
||||||
|
use PhpOffice\PhpWordTests\AbstractTestReader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for PhpOffice\PhpWord\Reader\Word2007\Styles.
|
* Test class for PhpOffice\PhpWord\Reader\Word2007\Styles.
|
||||||
|
|
|
||||||
|
|
@ -18,12 +18,12 @@
|
||||||
namespace PhpOffice\PhpWordTests\Shared;
|
namespace PhpOffice\PhpWordTests\Shared;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use PhpOffice\PhpWord\Shared\Html;
|
|
||||||
use PhpOffice\PhpWordTests\AbstractWebServerEmbeddedTest;
|
|
||||||
use PhpOffice\PhpWord\Element\Section;
|
use PhpOffice\PhpWord\Element\Section;
|
||||||
|
use PhpOffice\PhpWord\Shared\Html;
|
||||||
use PhpOffice\PhpWord\SimpleType\Jc;
|
use PhpOffice\PhpWord\SimpleType\Jc;
|
||||||
use PhpOffice\PhpWord\SimpleType\LineSpacingRule;
|
use PhpOffice\PhpWord\SimpleType\LineSpacingRule;
|
||||||
use PhpOffice\PhpWord\Style\Paragraph;
|
use PhpOffice\PhpWord\Style\Paragraph;
|
||||||
|
use PhpOffice\PhpWordTests\AbstractWebServerEmbeddedTest;
|
||||||
use PhpOffice\PhpWordTests\TestHelperDOCX;
|
use PhpOffice\PhpWordTests\TestHelperDOCX;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
namespace PhpOffice\PhpWordTests\Style;
|
namespace PhpOffice\PhpWordTests\Style;
|
||||||
|
|
||||||
use PhpOffice\PhpWord\Style\Cell;
|
|
||||||
use PhpOffice\PhpWord\SimpleType\VerticalJc;
|
use PhpOffice\PhpWord\SimpleType\VerticalJc;
|
||||||
|
use PhpOffice\PhpWord\Style\Cell;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for PhpOffice\PhpWord\Style\Cell.
|
* Test class for PhpOffice\PhpWord\Style\Cell.
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ class TestHelperDOCX
|
||||||
*
|
*
|
||||||
* @since 0.12.0 Throws CreateTemporaryFileException.
|
* @since 0.12.0 Throws CreateTemporaryFileException.
|
||||||
*
|
*
|
||||||
* @param \PhpOffice\PhpWord\PhpWord $phpWord
|
|
||||||
* @param string $writerName
|
* @param string $writerName
|
||||||
*
|
*
|
||||||
* @return \PhpOffice\PhpWordTests\XmlDocument
|
* @return \PhpOffice\PhpWordTests\XmlDocument
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,11 @@
|
||||||
|
|
||||||
namespace PhpOffice\PhpWordTests\Writer;
|
namespace PhpOffice\PhpWordTests\Writer;
|
||||||
|
|
||||||
use PhpOffice\PhpWord\Writer\HTML;
|
|
||||||
use PhpOffice\PhpWordTests\AbstractWebServerEmbeddedTest;
|
|
||||||
use PhpOffice\PhpWord\PhpWord;
|
use PhpOffice\PhpWord\PhpWord;
|
||||||
use PhpOffice\PhpWord\Settings;
|
use PhpOffice\PhpWord\Settings;
|
||||||
use PhpOffice\PhpWord\SimpleType\Jc;
|
use PhpOffice\PhpWord\SimpleType\Jc;
|
||||||
|
use PhpOffice\PhpWord\Writer\HTML;
|
||||||
|
use PhpOffice\PhpWordTests\AbstractWebServerEmbeddedTest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for PhpOffice\PhpWord\Writer\HTML.
|
* Test class for PhpOffice\PhpWord\Writer\HTML.
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
namespace PhpOffice\PhpWordTests\Writer\Word2007\Part;
|
namespace PhpOffice\PhpWordTests\Writer\Word2007\Part;
|
||||||
|
|
||||||
use PhpOffice\PhpWord\Writer\Word2007\Part\Footer;
|
|
||||||
use PhpOffice\PhpWord\Writer\Word2007;
|
use PhpOffice\PhpWord\Writer\Word2007;
|
||||||
|
use PhpOffice\PhpWord\Writer\Word2007\Part\Footer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for PhpOffice\PhpWord\Writer\Word2007\Part\Footer.
|
* Test class for PhpOffice\PhpWord\Writer\Word2007\Part\Footer.
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
namespace PhpOffice\PhpWordTests\Writer\Word2007\Part;
|
namespace PhpOffice\PhpWordTests\Writer\Word2007\Part;
|
||||||
|
|
||||||
use PhpOffice\PhpWord\Writer\Word2007\Part\Header;
|
|
||||||
use PhpOffice\PhpWord\Writer\Word2007;
|
use PhpOffice\PhpWord\Writer\Word2007;
|
||||||
|
use PhpOffice\PhpWord\Writer\Word2007\Part\Header;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for PhpOffice\PhpWord\Writer\Word2007\Part\Header.
|
* Test class for PhpOffice\PhpWord\Writer\Word2007\Part\Header.
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,10 @@
|
||||||
|
|
||||||
namespace PhpOffice\PhpWordTests\Writer;
|
namespace PhpOffice\PhpWordTests\Writer;
|
||||||
|
|
||||||
use PhpOffice\PhpWord\Writer\Word2007;
|
|
||||||
use PhpOffice\PhpWordTests\AbstractWebServerEmbeddedTest;
|
|
||||||
use PhpOffice\PhpWord\PhpWord;
|
use PhpOffice\PhpWord\PhpWord;
|
||||||
use PhpOffice\PhpWord\SimpleType\Jc;
|
use PhpOffice\PhpWord\SimpleType\Jc;
|
||||||
|
use PhpOffice\PhpWord\Writer\Word2007;
|
||||||
|
use PhpOffice\PhpWordTests\AbstractWebServerEmbeddedTest;
|
||||||
use PhpOffice\PhpWordTests\TestHelperDOCX;
|
use PhpOffice\PhpWordTests\TestHelperDOCX;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,3 @@ date_default_timezone_set('UTC');
|
||||||
if (!defined('PHPWORD_TESTS_BASE_DIR')) {
|
if (!defined('PHPWORD_TESTS_BASE_DIR')) {
|
||||||
define('PHPWORD_TESTS_BASE_DIR', realpath(__DIR__));
|
define('PHPWORD_TESTS_BASE_DIR', realpath(__DIR__));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue