@@ -205,7 +205,7 @@ public function display(string $name, string $content = '', array $attributes =
205205 * If URL, just pass it to $content_css
206206 * else, assume it is a file name in the current template folder
207207 */
208- $ content_css = strpos ($ content_css_custom , 'http ' ) !== false
208+ $ content_css = str_contains ($ content_css_custom , 'http ' )
209209 ? $ content_css_custom
210210 : $ this ->includeRelativeFiles ('css ' , $ content_css_custom );
211211 } else {
@@ -383,11 +383,11 @@ public function prepareTinyMCEUploadPath(string $path): string
383383 $ custom_button = trim ($ levelParams ->get ('custom_button ' , '' ));
384384
385385 if ($ custom_plugin ) {
386- $ plugins = array_merge ($ plugins , explode (strpos ($ custom_plugin , ', ' ) !== false ? ', ' : ' ' , $ custom_plugin ));
386+ $ plugins = array_merge ($ plugins , explode (str_contains ($ custom_plugin , ', ' ) ? ', ' : ' ' , $ custom_plugin ));
387387 }
388388
389389 if ($ custom_button ) {
390- $ toolbar1 = array_merge ($ toolbar1 , explode (strpos ($ custom_button , ', ' ) !== false ? ', ' : ' ' , $ custom_button ));
390+ $ toolbar1 = array_merge ($ toolbar1 , explode (str_contains ($ custom_button , ', ' ) ? ', ' : ' ' , $ custom_button ));
391391 }
392392
393393 // Merge the two toolbars for backwards compatibility
0 commit comments