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

Fix issue #16 #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

popovserhii
Copy link
Contributor

This PR is a patch for issue #16

Copy link
Member

@kokspflanze kokspflanze left a comment

Choose a reason for hiding this comment

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

could you maybe add unittests for this?

sry for delay=(

$this->filters = $filters;

return $this->filters;
}

public function createFilter($column, $value) {
Copy link
Member

Choose a reason for hiding this comment

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

could you please add a doc-block and { in new line

return $filter;
}

public function prepareFilter($rawFilters) {
Copy link
Member

Choose a reason for hiding this comment

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

could you please add a doc-block and { in new line

$filters[] = $this->createFilter($column, $value);
} elseif ($values !== null && isset($values[$column->getUniqueId()])) {
$value = implode(',', $values[$column->getUniqueId()]['values']);
$filter = $this->createFilter($column, $value);
Copy link
Member

Choose a reason for hiding this comment

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

i see no reason for $filter just $filters[] = $this->createFilter($column, $value); will be fine

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