1
0
mirror of synced 2025-03-14 00:26:08 +03:00

Merge pull request #5977 from gadelat/cleanup-1

Remove unneeded ternary operator from Query::contains
This commit is contained in:
Marco Pivetta 2016-11-26 05:05:37 +01:00 committed by GitHub
commit e7f2e35383

View File

@ -561,7 +561,7 @@ final class Query extends AbstractQuery
*/
public function contains($dql)
{
return stripos($this->getDQL(), $dql) === false ? false : true;
return stripos($this->getDQL(), $dql) !== false;
}
/**