protected function promoteSingleStrings(array $string)
	{
		$newString = [];
		foreach ($string as $element)
		{
			if (is_array($element) && count($element) === 1)
			{
				$newString = array_merge($newString, $element[0]);
			}
			else
			{
				$newString[] = $element;
			}
		}

		return $newString;
	}
protected function promoteSingleStrings(array $string)
	{
		$newString = [];
		foreach ($string as $element)
		{
			if (is_array($element) && count($element) === 1)
			{
				$newString = array_merge($newString, $element[0]);
			}
			else
			{
				$newString[] = $element;
			}
		}

		return $newString;
	}
protected function promoteSingleStrings ( array $ string ) { $ newString = [ ] ; foreach ( $ string as $ element ) { if ( is_array ( $ element ) && count ( $ element ) === 1 ) { $ newString = array_merge ( $ newString , $ element [ 0 ] ) ; } else { $ newString [ ] = $ element ; } } return $ newString ; }
Promote single strings found inside given string

@param  array $string Original string
@return array         Modified string
Promote single strings found inside given string