File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/PageBuilder/Model/Dom Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ public function querySelectorAll(string $selector): HtmlCollectionInterface
145145 public function removeStyle (string $ styleProperty ): string
146146 {
147147 $ style = $ this ->getAttribute ('style ' );
148- $ this ->setAttribute ('style ' , preg_replace ("/ $ { styleProperty}:(.*?);/ " , '' , $ style ?? '' ));
148+ $ this ->setAttribute ('style ' , preg_replace ("/ { $ styleProperty }:(.*?);/ " , '' , $ style ?? '' ));
149149 return $ this ->getAttribute ('style ' ) ?? '' ;
150150 }
151151
@@ -155,7 +155,7 @@ public function removeStyle(string $styleProperty): string
155155 public function addStyle (string $ styleProperty , string $ value ): string
156156 {
157157 $ this ->removeStyle ($ styleProperty );
158- $ this ->setAttribute ('style ' , "$ { styleProperty}: $ value; " . $ this ->getAttribute ('style ' ) ?? '' );
158+ $ this ->setAttribute ('style ' , "{ $ styleProperty }: $ value; " . $ this ->getAttribute ('style ' ) ?? '' );
159159 return $ this ->getAttribute ('style ' ) ?? '' ;
160160 }
161161}
You can’t perform that action at this time.
0 commit comments