@@ -38,18 +38,18 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | if (is_string($type)) { // Collection of object |
| 40 | 40 | |
| 41 | - $this->validateTypeFct = function ($object) use ($type) { |
|
| 41 | + $this->validateTypeFct = function($object) use ($type) { |
|
| 42 | 42 | return ($object instanceof $type); |
| 43 | 43 | }; |
| 44 | 44 | |
| 45 | 45 | if ($equalsFct === null) { |
| 46 | 46 | $arrayOfInterface = class_implements($type); |
| 47 | 47 | if (in_array("Ducatel\\PHPCollection\\Base\\Equatable", $arrayOfInterface)) { |
| 48 | - $this->equalsFct = function ($obj1, $obj2) { |
|
| 48 | + $this->equalsFct = function($obj1, $obj2) { |
|
| 49 | 49 | return $obj1->equals($obj2); |
| 50 | 50 | }; |
| 51 | 51 | } else { |
| 52 | - $this->equalsFct = function ($obj1, $obj2) { |
|
| 52 | + $this->equalsFct = function($obj1, $obj2) { |
|
| 53 | 53 | return $obj1 === $obj2; |
| 54 | 54 | }; |
| 55 | 55 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $this->validateTypeFct = $type; |
| 61 | 61 | |
| 62 | 62 | if ($equalsFct === null) { |
| 63 | - $this->equalsFct = function ($obj1, $obj2) { |
|
| 63 | + $this->equalsFct = function($obj1, $obj2) { |
|
| 64 | 64 | return $obj1 === $obj2; |
| 65 | 65 | }; |
| 66 | 66 | } else { |