2013-08-01 12:55:10 +02:00
|
|
|
<?php
|
|
|
|
|
2016-07-19 20:28:11 +02:00
|
|
|
namespace PHPCensor\Helper;
|
2013-08-01 12:55:10 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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>
|
2013-08-01 12:55:10 +02:00
|
|
|
*/
|
|
|
|
class Build
|
|
|
|
{
|
2014-12-08 12:25:33 +01:00
|
|
|
/**
|
|
|
|
* Returns a more human-friendly version of a plugin name.
|
|
|
|
* @param $name
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2013-08-01 12:55:10 +02:00
|
|
|
public function formatPluginName($name)
|
|
|
|
{
|
|
|
|
return str_replace('Php', 'PHP', ucwords(str_replace('_', ' ', $name)));
|
|
|
|
}
|
|
|
|
}
|