diff --git a/src/PhpWord/Writer/HTML.php b/src/PhpWord/Writer/HTML.php
index d292d9ab..f871bc18 100644
--- a/src/PhpWord/Writer/HTML.php
+++ b/src/PhpWord/Writer/HTML.php
@@ -17,7 +17,6 @@
namespace PhpOffice\PhpWord\Writer;
-use PhpOffice\PhpWord\Element\AbstractElement;
use PhpOffice\PhpWord\Exception\Exception;
use PhpOffice\PhpWord\PhpWord;
use PhpOffice\PhpWord\Style\Font;
diff --git a/src/PhpWord/Writer/HTML/Element/TextRun.php b/src/PhpWord/Writer/HTML/Element/TextRun.php
index d8ea6d72..b6bfacea 100644
--- a/src/PhpWord/Writer/HTML/Element/TextRun.php
+++ b/src/PhpWord/Writer/HTML/Element/TextRun.php
@@ -17,11 +17,6 @@
namespace PhpOffice\PhpWord\Writer\HTML\Element;
-use PhpOffice\PhpWord\Element\Footnote as FootnoteElement;
-use PhpOffice\PhpWord\Element\TextRun as TextRunElement;
-use PhpOffice\PhpWord\Style\Paragraph;
-use PhpOffice\PhpWord\Writer\HTML\Style\Paragraph as ParagraphStyleWriter;
-
/**
* TextRun element HTML writer
*
diff --git a/src/PhpWord/Writer/HTML/Style/Generic.php b/src/PhpWord/Writer/HTML/Style/Generic.php
index 9c9107b6..df94d492 100644
--- a/src/PhpWord/Writer/HTML/Style/Generic.php
+++ b/src/PhpWord/Writer/HTML/Style/Generic.php
@@ -31,11 +31,11 @@ class Generic extends AbstractStyle
*/
public function write()
{
- $this->style = $this->getStyle();
+ $style = $this->getStyle();
$css = array();
- if (is_array($this->style) && !empty($this->style)) {
- $css = $this->style;
+ if (is_array($style) && !empty($style)) {
+ $css = $style;
}
return $this->assembleCss($css);
diff --git a/src/PhpWord/Writer/HTML/Style/Image.php b/src/PhpWord/Writer/HTML/Style/Image.php
index 7e700aa4..cdb4f8a2 100644
--- a/src/PhpWord/Writer/HTML/Style/Image.php
+++ b/src/PhpWord/Writer/HTML/Style/Image.php
@@ -31,11 +31,11 @@ class Image extends AbstractStyle
*/
public function write()
{
- $this->style = $this->getStyle();
+ $style = $this->getStyle();
$css = array();
- $css['width'] = $this->getValueIf($this->style->getWidth(), $this->style->getWidth() . 'px');
- $css['height'] = $this->getValueIf($this->style->getHeight(), $this->style->getHeight() . 'px');
+ $css['width'] = $this->getValueIf($style->getWidth(), $style->getWidth() . 'px');
+ $css['height'] = $this->getValueIf($style->getHeight(), $style->getHeight() . 'px');
return $this->assembleCss($css);
}
diff --git a/src/PhpWord/Writer/RTF/Element/Text.php b/src/PhpWord/Writer/RTF/Element/Text.php
index ae7466d8..a52b2071 100644
--- a/src/PhpWord/Writer/RTF/Element/Text.php
+++ b/src/PhpWord/Writer/RTF/Element/Text.php
@@ -19,7 +19,6 @@ namespace PhpOffice\PhpWord\Writer\RTF\Element;
use PhpOffice\PhpWord\Style;
use PhpOffice\PhpWord\Style\Font as FontStyle;
-use PhpOffice\PhpWord\Style\Paragraph as ParagraphStyle;
use PhpOffice\PhpWord\Writer\RTF\Style\Font as FontStyleWriter;
use PhpOffice\PhpWord\Writer\RTF\Style\Paragraph as ParagraphStyleWriter;
diff --git a/src/PhpWord/Writer/Word2007/Style/AbstractStyle.php b/src/PhpWord/Writer/Word2007/Style/AbstractStyle.php
index dad0ce07..06c35117 100644
--- a/src/PhpWord/Writer/Word2007/Style/AbstractStyle.php
+++ b/src/PhpWord/Writer/Word2007/Style/AbstractStyle.php
@@ -17,7 +17,6 @@
namespace PhpOffice\PhpWord\Writer\Word2007\Style;
-use PhpOffice\PhpWord\Exception\Exception;
use PhpOffice\PhpWord\Settings;
use PhpOffice\PhpWord\Shared\XMLWriter;
diff --git a/src/PhpWord/Writer/Word2007/Style/TextBox.php b/src/PhpWord/Writer/Word2007/Style/TextBox.php
index 6020a2b0..bb9b3a24 100644
--- a/src/PhpWord/Writer/Word2007/Style/TextBox.php
+++ b/src/PhpWord/Writer/Word2007/Style/TextBox.php
@@ -17,7 +17,6 @@
namespace PhpOffice\PhpWord\Writer\Word2007\Style;
-use PhpOffice\PhpWord\Shared\XMLWriter;
use PhpOffice\PhpWord\Style\TextBox as TextBoxStyle;
/**