@@ -118,7 +118,7 @@ |
||
| 118 | 118 | * @param mixed $offset <p> |
| 119 | 119 | * The offset to assign the value to. |
| 120 | 120 | * </p> |
| 121 | - * @param mixed $value <p> |
|
| 121 | + * @param Unit $value <p> |
|
| 122 | 122 | * The value to set. |
| 123 | 123 | * </p> |
| 124 | 124 | * |
@@ -19,8 +19,8 @@ discard block |
||
| 19 | 19 | * @param array $arguments |
| 20 | 20 | */ |
| 21 | 21 | public function __call($method_name, array $arguments) { |
| 22 | - foreach($this->_container as $object) { |
|
| 23 | - if(is_object($object) && method_exists($object, $method_name)) { |
|
| 22 | + foreach ($this->_container as $object) { |
|
| 23 | + if (is_object($object) && method_exists($object, $method_name)) { |
|
| 24 | 24 | call_user_func_array(array($object, $method_name), $arguments); |
| 25 | 25 | } |
| 26 | 26 | } |
@@ -35,8 +35,8 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | public function getSumProperty($property_name) { |
| 37 | 37 | $result = 0.0; |
| 38 | - foreach($this->_container as $object) { |
|
| 39 | - if(is_object($object) && property_exists($object, $property_name)) { |
|
| 38 | + foreach ($this->_container as $object) { |
|
| 39 | + if (is_object($object) && property_exists($object, $property_name)) { |
|
| 40 | 40 | $result += $object->$property_name; |
| 41 | 41 | } |
| 42 | 42 | } |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | * @return mixed |
| 53 | 53 | */ |
| 54 | 54 | public function aggregateByMethod($method_name, &$result) { |
| 55 | - foreach($this->_container as $object) { |
|
| 56 | - if(is_object($object) && method_exists($object, $method_name)) { |
|
| 55 | + foreach ($this->_container as $object) { |
|
| 56 | + if (is_object($object) && method_exists($object, $method_name)) { |
|
| 57 | 57 | call_user_func(array($object, $method_name), $result); |
| 58 | 58 | } |
| 59 | 59 | } |