Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for spaces in Jenkins Builds names with getNameURLSafe(), add getDescription(), getGitRevision(), getGitBranch() and getGitRemoteURL() #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

matthewbaggett
Copy link

I would have written unit tests, but it is unclear how to do that with atoum compared to phpunit.

@srogier
Copy link
Member

srogier commented Jan 16, 2016

I'm sorry. I've missed your PR :(

*/
static public function urlSanitise($string){
$string = urlencode($string);
$string = str_replace("+", "%20", $string);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use http://us2.php.net/rawurlencode which seems to encode '+' character.

@srogier
Copy link
Member

srogier commented Jan 16, 2016

I know this project doesn't have any automatic code sniffer tool, but can you change your PR to respect PSR ? (see https://github.com/jenkins-khan/jenkins-php-api#coding-standards )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants