2013-08-01 12:55:10 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* PHPCI - Continuous Integration for PHP
|
|
|
|
*
|
2014-05-12 18:26:17 +02:00
|
|
|
* @copyright Copyright 2014, Block 8 Limited.
|
2013-08-01 12:55:10 +02:00
|
|
|
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
|
2014-05-12 18:26:17 +02:00
|
|
|
* @link https://www.phptesting.org/
|
2013-08-01 12:55:10 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace PHPCI\Helper;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* User Helper - Provides access to logged in user information in views.
|
|
|
|
* @author Dan Cryer <dan@block8.co.uk>
|
|
|
|
* @package PHPCI
|
|
|
|
* @subpackage Web
|
|
|
|
*/
|
|
|
|
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)));
|
|
|
|
}
|
|
|
|
}
|