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

#4 Settings does not exist #5

Merged
merged 2 commits into from
Mar 31, 2017
Merged

#4 Settings does not exist #5

merged 2 commits into from
Mar 31, 2017

Conversation

AVATOR
Copy link
Contributor

@AVATOR AVATOR commented Mar 30, 2017

No description provided.

@AVATOR AVATOR mentioned this pull request Mar 30, 2017
Copy link
Owner

@lexxpavlov lexxpavlov left a comment

Choose a reason for hiding this comment

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

It's a great job! But fix some minor changes, please.

return $value->getValue();
}

return "";
Copy link
Owner

Choose a reason for hiding this comment

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

must be return null;

@@ -98,19 +107,24 @@ private function loadGroup($name)
*
* @param string $name Setting name or group name (if $subname is set)
* @param string|null $subname Setting name (use with $name as group name)
* @param null $default The default value if the setting key does not exist
Copy link
Owner

Choose a reason for hiding this comment

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

Type of $default must be mixed|null

@@ -48,7 +52,12 @@ private function getCacheGroupKey($name)

private function fetch($name)
{
return $this->repository->findOneBy(array('name' => $name))->getValue();
$value = $this->repository->findOneBy(array('name' => $name));
Copy link
Owner

Choose a reason for hiding this comment

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

Variable name must be $setting

@AVATOR
Copy link
Contributor Author

AVATOR commented Mar 31, 2017

I pushed changes.

@lexxpavlov lexxpavlov merged commit f0b43fc into lexxpavlov:master Mar 31, 2017
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