@@ -81,11 +81,11 @@ discard block |
||
81 | 81 | * @see \StingerSoft\EntitySearchBundle\Model\Document::addMultiValueField() |
82 | 82 | */ |
83 | 83 | public function addMultiValueField($field, $value) { |
84 | - if(!array_key_exists($field, $this->fields)) { |
|
84 | + if (!array_key_exists($field, $this->fields)) { |
|
85 | 85 | $this->fields[$field] = array( |
86 | 86 | $value |
87 | 87 | ); |
88 | - } else if(!in_array($value, $this->fields[$field])) { |
|
88 | + } else if (!in_array($value, $this->fields[$field])) { |
|
89 | 89 | $this->fields[$field][] = $value; |
90 | 90 | } |
91 | 91 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | public function setEntityClass($clazz) { |
100 | 100 | $this->entityClass = $clazz; |
101 | - if(!$this->entityType) { |
|
101 | + if (!$this->entityType) { |
|
102 | 102 | $this->entityType = $clazz; |
103 | 103 | } |
104 | 104 | } |