php-censor/src/Helper/Build.php

22 lines
434 B
PHP
Raw Permalink Normal View History

<?php
2016-07-19 20:28:11 +02:00
namespace PHPCensor\Helper;
/**
* User Helper - Provides access to logged in user information in views.
2017-03-04 16:39:56 +01:00
*
* @author Dan Cryer <dan@block8.co.uk>
*/
class Build
{
/**
* Returns a more human-friendly version of a plugin name.
* @param $name
* @return mixed
*/
public function formatPluginName($name)
{
return str_replace('Php', 'PHP', ucwords(str_replace('_', ' ', $name)));
}
}