Skip to content

Commit

Permalink
refactor: ECS code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Apr 28, 2024
1 parent 92ed5d4 commit ae94cae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/behaviors/CountBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ class CountBehavior extends Behavior

// Public Methods
// =========================================================================

}
2 changes: 1 addition & 1 deletion src/services/Similar.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function find($data)
$method = $first ? 'where' : 'orWhere';

Check failure on line 161 in src/services/Similar.php

View workflow job for this annotation

GitHub Actions / PHPStan

Ternary operator condition is always true.
$query->subQuery->$method(['and', [
'elements_sites.siteId' => $siteId,
'elements.id' => $elementIds]
'elements.id' => $elementIds, ],
]);
}
});
Expand Down

0 comments on commit ae94cae

Please sign in to comment.