Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Add support for HTTPS and more countries. #70

Closed
wants to merge 0 commits into from

Conversation

demiankatz
Copy link
Contributor

Resolves #57.

src/Amazon.php Outdated
* @throws Exception\InvalidArgumentException
* @return Amazon
*/
public function __construct($appId, $countryCode = 'US', $secretKey = null, $version = null)
{
public function __construct($appId, $countryCode = 'US', $secretKey = null, $version = null,
Copy link
Member

Choose a reason for hiding this comment

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

when you make parameters multiline, all of them should be placed on separate lines

@demiankatz
Copy link
Contributor Author

@Xerkus, sorry about that, didn't catch the Travis failure. All fixed now!

@Xerkus Xerkus changed the base branch from master to develop March 24, 2017 12:49
src/Amazon.php Outdated
$countryCode = 'US',
$secretKey = null,
$version = null,
$useSsl = false
Copy link
Member

Choose a reason for hiding this comment

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

Do you think $useHttps would be better name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went back and forth but don't really have a strong preference. Since you seem to prefer this option, I'll go ahead and change it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, fixed. Apologies for missing an instance the first time I edited the file -- there should be a Travis build failure followed by a success.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see that Travis build 169 passed when it should have failed. This is puzzling; when I check out commit 619efaa and run tests, they fail as they should. Perhaps I made my second fix so quickly that the Travis build ran against the newer code both times.

Copy link
Member

Choose a reason for hiding this comment

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

I don't have strong preference either. It is just that "SSL" irks me for unrelated reason - we don't really mean SSL transport, which is vulnerable and insecure, when we use that term.

Xerkus added a commit that referenced this pull request Mar 24, 2017
Xerkus added a commit that referenced this pull request Mar 24, 2017
@Xerkus Xerkus closed this Mar 24, 2017
@Xerkus Xerkus added this to the 2.3.0 milestone Mar 24, 2017
@demiankatz demiankatz deleted the add-endpoints branch March 24, 2017 14:45
@malukenho malukenho mentioned this pull request Jun 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants