@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * Add an object to this collection |
| 21 | 21 | * @param object $object The object you want to add |
| 22 | 22 | * |
| 23 | - * @return True when added with success, else false |
|
| 23 | + * @return boolean when added with success, else false |
|
| 24 | 24 | */ |
| 25 | 25 | public function add($object) |
| 26 | 26 | { |
@@ -30,18 +30,18 @@ |
||
| 30 | 30 | if (is_callable($type)) { |
| 31 | 31 | $this->validateTypeFct = $type; |
| 32 | 32 | } else { |
| 33 | - $this->validateTypeFct = function ($object) use ($type) { |
|
| 33 | + $this->validateTypeFct = function($object) use ($type) { |
|
| 34 | 34 | return ($object instanceof $type); |
| 35 | 35 | }; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | if ($equalsFct === null) { |
| 39 | 39 | if (is_callable($type)) { |
| 40 | - $this->equalsFct = function ($obj1, $obj2) { |
|
| 40 | + $this->equalsFct = function($obj1, $obj2) { |
|
| 41 | 41 | return $obj1 === $obj2; |
| 42 | 42 | }; |
| 43 | 43 | } else { |
| 44 | - $this->equalsFct = function ($obj1, $obj2) { |
|
| 44 | + $this->equalsFct = function($obj1, $obj2) { |
|
| 45 | 45 | return $obj1->equals($obj2); |
| 46 | 46 | }; |
| 47 | 47 | } |