... | @@ -52,7 +52,7 @@ class FooBar { |
... | @@ -52,7 +52,7 @@ class FooBar { |
|
* @return string|null Transformed input
|
|
* @return string|null Transformed input
|
|
*/
|
|
*/
|
|
private function transformText($dummy, array $options = array()) {
|
|
private function transformText($dummy, array $options = array()) {
|
|
$mergedOptions = array_merge(
|
|
$merged_options = array_merge(
|
|
$options,
|
|
$options,
|
|
array(
|
|
array(
|
|
'some_default' => 'values',
|
|
'some_default' => 'values',
|
... | @@ -64,7 +64,7 @@ class FooBar { |
... | @@ -64,7 +64,7 @@ class FooBar { |
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if ('string' === $dummy) {
|
|
if ('string' === $dummy) {
|
|
if ('values' === $mergedOptions['some_default']) {
|
|
if ('values' === $merged_options['some_default']) {
|
|
$dummy = substr($dummy, 0, 5);
|
|
$dummy = substr($dummy, 0, 5);
|
|
} else {
|
|
} else {
|
|
$dummy = ucwords($dummy);
|
|
$dummy = ucwords($dummy);
|
... | | ... | |