Commit d9ee99c2 authored by jeroendedauw's avatar jeroendedauw

Get rid of weird ternary statement

parent 62e53007
...@@ -57,7 +57,7 @@ class Index extends AbstractAsset implements Constraint ...@@ -57,7 +57,7 @@ class Index extends AbstractAsset implements Constraint
*/ */
public function __construct($indexName, array $columns, $isUnique = false, $isPrimary = false, array $flags = array()) public function __construct($indexName, array $columns, $isUnique = false, $isPrimary = false, array $flags = array())
{ {
$isUnique = ($isPrimary)?true:$isUnique; $isUnique = $isUnique || $isPrimary;
$this->_setName($indexName); $this->_setName($indexName);
$this->_isUnique = $isUnique; $this->_isUnique = $isUnique;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment