Passed
Push — master ( ddb003...864203 )
by Ducatel
03:29
created
src/TypedArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Base/AbstractTypedCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.