From 6f2d444ba9dd97a2c2fb18b3022e3fefa46a64bc Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Mon, 11 Aug 2014 22:30:46 +0400 Subject: [PATCH] https://github.com/PHPOffice/PHPWord/issues/310 --- src/PhpWord/Element/Image.php | 2 ++ src/PhpWord/Settings.php | 6 ++++-- tests/PhpWord/Tests/_includes/TestHelperDOCX.php | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/PhpWord/Element/Image.php b/src/PhpWord/Element/Image.php index ab350e07..cab2527a 100644 --- a/src/PhpWord/Element/Image.php +++ b/src/PhpWord/Element/Image.php @@ -422,6 +422,8 @@ class Image extends AbstractElement /** * Get image size from archive * + * @since 0.12.0 Throws CreateTemporaryFileException. + * * @param string $source * @return array|null * @throws \PhpOffice\PhpWord\Exception\CreateTemporaryFileException diff --git a/src/PhpWord/Settings.php b/src/PhpWord/Settings.php index 009c849c..6c7f17e1 100644 --- a/src/PhpWord/Settings.php +++ b/src/PhpWord/Settings.php @@ -279,9 +279,10 @@ class Settings /** * Sets the user defined path to temporary directory. * + * @since 0.12.0 + * * @param string $tempDir The user defined path to temporary directory. * @return void - * @since 0.12.0 */ public static function setTempDir($tempDir) { @@ -291,8 +292,9 @@ class Settings /** * Returns path to temporary directory. * - * @return string * @since 0.12.0 + * + * @return string */ public static function getTempDir() { diff --git a/tests/PhpWord/Tests/_includes/TestHelperDOCX.php b/tests/PhpWord/Tests/_includes/TestHelperDOCX.php index 6ca6a14d..2a0043d5 100644 --- a/tests/PhpWord/Tests/_includes/TestHelperDOCX.php +++ b/tests/PhpWord/Tests/_includes/TestHelperDOCX.php @@ -37,6 +37,8 @@ class TestHelperDOCX /** * Get document content * + * @since 0.12.0 Throws CreateTemporaryFileException. + * * @param \PhpOffice\PhpWord\PhpWord $phpWord * @param string $writerName * @return \PhpOffice\PhpWord\Tests\XmlDocument