summaryrefslogtreecommitdiff
path: root/smartyplugins/modifier.ucwords.php
diff options
context:
space:
mode:
Diffstat (limited to 'smartyplugins/modifier.ucwords.php')
-rw-r--r--smartyplugins/modifier.ucwords.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/smartyplugins/modifier.ucwords.php b/smartyplugins/modifier.ucwords.php
new file mode 100644
index 0000000..7c32ba0
--- /dev/null
+++ b/smartyplugins/modifier.ucwords.php
@@ -0,0 +1,7 @@
+<?php
+
+namespace Bitweaver\Plugins;
+
+function smarty_modifier_ucwords( ?string $string ): string {
+ return ucwords( $string ?? '' );
+}