- $header = "[share author='".str_replace(array("'", "[", "]"), array("'", "[", "]"),$author).
- "' profile='".str_replace(array("'", "[", "]"), array("'", "[", "]"),$profile).
- "' avatar='".str_replace(array("'", "[", "]"), array("'", "[", "]"),$avatar);
+ $header = "[share author='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $author).
+ "' profile='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $profile).
+ "' avatar='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $avatar);