Skip to content

Commit

Permalink
Apply fixes from StyleCI (#676)
Browse files Browse the repository at this point in the history
Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
Crypta-Eve and StyleCIBot authored Apr 18, 2024
1 parent bf990e6 commit 545a6ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Models/Filterable.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ final public function isEligible(Model $member): bool
{
// in case no filters exists, everyone should be allowed
// this is the case with manual squads
if (!property_exists($this->getFilters(), 'and') && !property_exists($this->getFilters(), 'or'))
if (! property_exists($this->getFilters(), 'and') && ! property_exists($this->getFilters(), 'or'))
return true;

$query = new QueryGroupBuilder($member->newQuery(), true);
Expand Down Expand Up @@ -113,10 +113,10 @@ private function applyGroup(Builder $query, stdClass $group): void
foreach ($rules as $rule) {
// check if this is a nested group or not
if (property_exists($rule, 'path')) {
if ($rule->name == "skill_level" ) {
if ($rule->name == 'skill_level') {
// Now get all the skill rules in this group
foreach ($rules as $skrule) {
if ($skrule->name == "skill") {
if ($skrule->name == 'skill') {
$this->applySkillLevelRule($query_group, $rule, $skrule);
}
}
Expand Down

0 comments on commit 545a6ce

Please sign in to comment.