Skip to content

Conversation

Goodmain
Copy link
Contributor

@Goodmain Goodmain commented Sep 29, 2023

Refs: #76

@Goodmain Goodmain requested a review from DenTray September 29, 2023 19:04
public function filterLess(string $field, bool $strict = true, ?string $filterName = null): self
{
$filterName = empty($filterName) ? 'to' : $filterName;
$sign = $strict ? '<' : '<=';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
$sign = $strict ? '<' : '<=';
$sign = ($strict) ? '<' : '<=';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

$this->addWhere($this->query, $field, $this->filter[$filterName], $sign);
}

return $this;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return $this;
return $this->filterLess($field, $strict, $filterName);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

return $this;
}

public function filterLess(string $field, bool $strict = true, ?string $filterName = null): self
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public function filterLess(string $field, bool $strict = true, ?string $filterName = null): self
public function filterLess(string $field, bool $isStrict = true, ?string $filterName = null): self

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

$this->addWhere($this->query, $field, $this->filter[$filterName], $sign);
}

return $this;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return $this;
return $this->filterGreater($field, $strict, $filterName);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

return $this;
}

public function filterGreater(string $field, bool $strict = true, ?string $filterName = null): self
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public function filterGreater(string $field, bool $strict = true, ?string $filterName = null): self
public function filterGreater(string $field, bool $isStrict = true, ?string $filterName = null): self

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Goodmain Goodmain assigned DenTray and unassigned Goodmain Oct 3, 2023
@Goodmain Goodmain requested a review from DenTray October 3, 2023 16:03
@DenTray DenTray merged commit 8c663b3 into master Oct 16, 2023
@DenTray DenTray deleted the 76-update-predefined-filters branch July 9, 2025 03:33
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