File tree Expand file tree Collapse file tree 7 files changed +6
-15
lines changed Expand file tree Collapse file tree 7 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 17
17
18
18
namespace PhpOffice \PhpWord \Writer ;
19
19
20
- use PhpOffice \PhpWord \Element \AbstractElement ;
21
20
use PhpOffice \PhpWord \Exception \Exception ;
22
21
use PhpOffice \PhpWord \PhpWord ;
23
22
use PhpOffice \PhpWord \Style \Font ;
Original file line number Diff line number Diff line change 17
17
18
18
namespace PhpOffice \PhpWord \Writer \HTML \Element ;
19
19
20
- use PhpOffice \PhpWord \Element \Footnote as FootnoteElement ;
21
- use PhpOffice \PhpWord \Element \TextRun as TextRunElement ;
22
- use PhpOffice \PhpWord \Style \Paragraph ;
23
- use PhpOffice \PhpWord \Writer \HTML \Style \Paragraph as ParagraphStyleWriter ;
24
-
25
20
/**
26
21
* TextRun element HTML writer
27
22
*
Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ class Generic extends AbstractStyle
31
31
*/
32
32
public function write ()
33
33
{
34
- $ this -> style = $ this ->getStyle ();
34
+ $ style = $ this ->getStyle ();
35
35
$ css = array ();
36
36
37
- if (is_array ($ this -> style ) && !empty ($ this -> style )) {
38
- $ css = $ this -> style ;
37
+ if (is_array ($ style ) && !empty ($ style )) {
38
+ $ css = $ style ;
39
39
}
40
40
41
41
return $ this ->assembleCss ($ css );
Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ class Image extends AbstractStyle
31
31
*/
32
32
public function write ()
33
33
{
34
- $ this -> style = $ this ->getStyle ();
34
+ $ style = $ this ->getStyle ();
35
35
$ css = array ();
36
36
37
- $ css ['width ' ] = $ this ->getValueIf ($ this -> style ->getWidth (), $ this -> style ->getWidth () . 'px ' );
38
- $ css ['height ' ] = $ this ->getValueIf ($ this -> style ->getHeight (), $ this -> style ->getHeight () . 'px ' );
37
+ $ css ['width ' ] = $ this ->getValueIf ($ style ->getWidth (), $ style ->getWidth () . 'px ' );
38
+ $ css ['height ' ] = $ this ->getValueIf ($ style ->getHeight (), $ style ->getHeight () . 'px ' );
39
39
40
40
return $ this ->assembleCss ($ css );
41
41
}
Original file line number Diff line number Diff line change 19
19
20
20
use PhpOffice \PhpWord \Style ;
21
21
use PhpOffice \PhpWord \Style \Font as FontStyle ;
22
- use PhpOffice \PhpWord \Style \Paragraph as ParagraphStyle ;
23
22
use PhpOffice \PhpWord \Writer \RTF \Style \Font as FontStyleWriter ;
24
23
use PhpOffice \PhpWord \Writer \RTF \Style \Paragraph as ParagraphStyleWriter ;
25
24
Original file line number Diff line number Diff line change 17
17
18
18
namespace PhpOffice \PhpWord \Writer \Word2007 \Style ;
19
19
20
- use PhpOffice \PhpWord \Exception \Exception ;
21
20
use PhpOffice \PhpWord \Settings ;
22
21
use PhpOffice \PhpWord \Shared \XMLWriter ;
23
22
Original file line number Diff line number Diff line change 17
17
18
18
namespace PhpOffice \PhpWord \Writer \Word2007 \Style ;
19
19
20
- use PhpOffice \PhpWord \Shared \XMLWriter ;
21
20
use PhpOffice \PhpWord \Style \TextBox as TextBoxStyle ;
22
21
23
22
/**
You can’t perform that action at this time.
0 commit comments