Completed
Push — master ( 78269a...85fe60 )
by Florian
02:23
created
Model/DocumentAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.