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

downloadURL token for distributions. #266

Merged
merged 5 commits into from
Dec 4, 2019
Merged

Conversation

fmizzell
Copy link
Contributor

@fmizzell fmizzell commented Dec 4, 2019

No description provided.

@fmizzell fmizzell added the WIP label Dec 4, 2019
* Get stored input.
*/
public function getStoredInput($id) {
return (isset($this->store[$id])) ? $this->store[$id] : NULL;
Copy link
Contributor

Choose a reason for hiding this comment

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

The parens around isset aren't necessary, but furthermore, in PHP 7, the null coalescing operator can shorten the line to just:

return $this->store[$id] ?? NULL;

@thierrydallacroce thierrydallacroce merged commit e4751f1 into master Dec 4, 2019
@thierrydallacroce thierrydallacroce deleted the base-url-token branch December 4, 2019 22:12
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.

2 participants