https://php.net/manual/en/function.implode.php#example-6071
// Empty string when using an empty array:
var_dump(implode('hello', array())); // string(0) ""
Change-Id: If6349ba914bb522129d482a714a30b889a4c9f11
}
// We can't separate explicit JOIN clauses with ',', use ' ' for those
}
// We can't separate explicit JOIN clauses with ',', use ' ' for those
- $implicitJoins = $ret ? implode( ',', $ret ) : "";
- $explicitJoins = $retJOIN ? implode( ' ', $retJOIN ) : "";
+ $implicitJoins = implode( ',', $ret );
+ $explicitJoins = implode( ' ', $retJOIN );
// Compile our final table clause
return implode( ' ', [ $implicitJoins, $explicitJoins ] );
// Compile our final table clause
return implode( ' ', [ $implicitJoins, $explicitJoins ] );
return $this->makePreloadedLink(
$target,
$text,
return $this->makePreloadedLink(
$target,
$text,
- $classes ? implode( ' ', $classes ) : '',
+ implode( ' ', $classes ),