-
Notifications
You must be signed in to change notification settings - Fork 124
Remove trailing slash in URL if it exists #67
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
Conversation
src/Jira/Api.php
Outdated
{ | ||
$this->fields = array(); | ||
|
||
//Regular expression to remove trailing slash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the following:
- add a space after
//
- add a dot at the end of the comment text
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 1, I'm no fan of 2
Today’s review completed. When done making changes please add inline comment in each of them. |
Added regular expression to remove trailing slash if included in URL. Api::__construct
737cf10
to
7101f7d
Compare
|
||
use chobie\Jira\Api\Authentication\Basic; | ||
|
||
class Jira_Api_Authentication_BasicTest extends \PHPUnit_Framework_TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you namespace test classes why not rename Jira_Api_Authentication_BasicTest
into BasicTest
to make autoloading work?
It works currently, because PHPUnit looks for all PHP files that ends up with Test.php
and executes them without using Composer's autoloader.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
And you can safely squash when you're done fixing. |
00451d3
to
239d6b4
Compare
Merging, thanks @jpastoor . |
Remove trailing slash in URL if it exists
Update of #25.