Skip to content

Commit

Permalink
fix more style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AsylumSeekersCentre committed Nov 13, 2020
1 parent 53b8b75 commit 4233e9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Civi/API/SelectQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function run() {

/**
* Classify the joins
* @return array
* @return array
*/
private function classifyJoins() {
$classified = [
Expand All @@ -173,12 +173,12 @@ private function classifyJoins() {
'mandatory' => [],
];
foreach ($this->query->getJoins() as $key => $join) {
$mandatory = false;
$mandatory = FALSE;
foreach ($this->joins as $check_key => $check_join) {
// check the order - haystack, needle
if ((strpos($key, $check_join) !== false)
if ((strpos($key, $check_join) !== FALSE)
|| ($this->query->latterClausesContainString($key))) {
$mandatory = true;
$mandatory = TRUE;
break;
}
}
Expand All @@ -205,7 +205,7 @@ private function addJoinDependants($joins, $depends) {
$additional = [];
foreach ($joins as $joinKey => $join) {
foreach ($depends as $dependKey => $dependJoin) {
if ($joinKey != $dependKey && (strpos($dependJoin, $joinKey) !== false)) {
if ($joinKey != $dependKey && (strpos($dependJoin, $joinKey) !== FALSE)) {
$additional[$dependKey] = $dependJoin;
}
}
Expand Down

0 comments on commit 4233e9f

Please sign in to comment.