-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
523 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
dist/molkobain-markdown-viewer/molkobain-handy-framework/common/stringhelper.class.inc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* Copyright (c) 2015 - 2019 Molkobain. | ||
* | ||
* This file is part of licensed extension. | ||
* | ||
* Use of this extension is bound by the license you purchased. A license grants you a non-exclusive and non-transferable right to use and incorporate the item in your personal or commercial projects. There are several licenses available (see https://www.molkobain.com/usage-licenses/ for more informations) | ||
*/ | ||
|
||
namespace Molkobain\iTop\Extension\HandyFramework\Common\Helper; | ||
|
||
/** | ||
* Class StringHelper | ||
* | ||
* @package Molkobain\iTop\Extension\HandyFramework\Common\Helper | ||
* @since 1.3.0 | ||
*/ | ||
class StringHelper | ||
{ | ||
/** | ||
* Transform a snake_case $sInput into a CamelCase string | ||
* | ||
* @param string $sInput | ||
* | ||
* @return string | ||
*/ | ||
public static function ToCamelCase($sInput) | ||
{ | ||
return str_replace(' ', '', ucwords(strtr($sInput, '_-', ' '))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.