@@ -130,8 +130,7 @@ protected function getFormattedTextBlock(DOMNode $node)
130
130
}
131
131
132
132
$ text = trim ($ text );
133
- $ text = str_replace ('<em> ' , '* ' , $ text );
134
- $ text = str_replace ('</em> ' , '* ' , $ text );
133
+ $ text = str_replace (['<em> ' , '</em> ' ], '* ' , $ text );
135
134
136
135
$ nodeLines = explode ("\n" , $ text );
137
136
$ lines = [];
@@ -243,8 +242,7 @@ protected function getFormattedCodeComparisonBlock(DOMNode $node)
243
242
$ firstTitleLines [] = $ tempTitle ;
244
243
}
245
244
246
- $ first = str_replace ('<em> ' , '' , $ first );
247
- $ first = str_replace ('</em> ' , '' , $ first );
245
+ $ first = str_replace (['<em> ' , '</em> ' ], '' , $ first );
248
246
$ firstLines = explode ("\n" , $ first );
249
247
250
248
$ second = trim ($ secondCodeElm ->nodeValue );
@@ -278,8 +276,7 @@ protected function getFormattedCodeComparisonBlock(DOMNode $node)
278
276
$ secondTitleLines [] = $ tempTitle ;
279
277
}
280
278
281
- $ second = str_replace ('<em> ' , '' , $ second );
282
- $ second = str_replace ('</em> ' , '' , $ second );
279
+ $ second = str_replace (['<em> ' , '</em> ' ], '' , $ second );
283
280
$ secondLines = explode ("\n" , $ second );
284
281
285
282
$ titleRow = '' ;
0 commit comments