spantaleev/mongodb-odm — comment on commit cf191df63a17750cd06b7f61124037a88b402bf1
File: lib/Doctrine/ODM/MongoDB/SchemaManager.php line 112
By jmikola:

A ternary assignment would be more concise here: `$discriminatorFieldName = ($class->discriminatorField !== null) ? $class->discriminatorField['name'] : null;`