@@ -164,14 +164,14 @@ |
||
164 | 164 | |
165 | 165 | private function fixChildArray(&$array, $key, &$entity) |
166 | 166 | { |
167 | - $count = count($array); |
|
168 | - for($i = 0; $i < $count; $i++) |
|
169 | - { |
|
170 | - if(isset($array[$i])) |
|
171 | - { |
|
172 | - $entity[$key][$i] = $array[$i]; |
|
173 | - } |
|
174 | - } |
|
167 | + $count = count($array); |
|
168 | + for($i = 0; $i < $count; $i++) |
|
169 | + { |
|
170 | + if(isset($array[$i])) |
|
171 | + { |
|
172 | + $entity[$key][$i] = $array[$i]; |
|
173 | + } |
|
174 | + } |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | private function fixObject($object, &$delete = false) |
@@ -169,8 +169,8 @@ |
||
169 | 169 | { |
170 | 170 | if(in_array($propName, $this->multiValueProps) && !is_array($value)) |
171 | 171 | { |
172 | - $this->setField($propName, array($value)); |
|
173 | - return true; |
|
172 | + $this->setField($propName, array($value)); |
|
173 | + return true; |
|
174 | 174 | } |
175 | 175 | return false; |
176 | 176 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | public function getUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false) |
168 | 168 | { |
169 | 169 | return $this->callFunction($methodName, 'getUsersByFilter', array($filter, $select, $top, $skip, $orderby), |
170 | - 'current', false, array($this, 'mergeResult')); |
|
170 | + 'current', false, array($this, 'mergeResult')); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | public function getPendingUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false) |
186 | 186 | { |
187 | 187 | return $this->callFunction($methodName, 'getPendingUsersByFilter', array($filter, $select, $top, $skip, $orderby), |
188 | - 'pending', false, array($this, 'mergeResult')); |
|
188 | + 'pending', false, array($this, 'mergeResult')); |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | public function getGroupsByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false) |
204 | 204 | { |
205 | 205 | return $this->callFunction($methodName, 'getGroupsByFilter', array($filter, $select, $top, $skip, $orderby), |
206 | - 'current', false, array($this, 'mergeResult')); |
|
206 | + 'current', false, array($this, 'mergeResult')); |
|
207 | 207 | } |
208 | 208 | |
209 | 209 | /** |