Completed
Push — master ( a5b86a...23223e )
by Ducatel
03:40
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 2 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * AbstractTypedCollection constructor.
21 21
      *
22
-     * @param string|\Closure $type Two value are possible for this field.
22
+     * @param \Closure $type Two value are possible for this field.
23 23
      *  1. The class name of object you want to store in this collection
24 24
      *  2. A function which take one arguments and return true when it in the good type (false otherwise)
25 25
      * @param null|\Closure $equalsFct When you pass null, the object will use the function \Equatable::equals if exist, else use the ===
Please login to merge, or discard this patch.
src/Specialized/StringArray.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,16 +18,16 @@
 block discarded – undo
18 18
      */
19 19
     public function __construct(bool $caseSensitive = true)
20 20
     {
21
-        $isStringFct = function ($obj) {
21
+        $isStringFct = function($obj) {
22 22
             return is_string($obj);
23 23
         };
24 24
 
25 25
         if ($caseSensitive) {
26
-            $isEquals = function ($obj1, $obj2) {
26
+            $isEquals = function($obj1, $obj2) {
27 27
                 return (strcmp($obj1, $obj2) == 0);
28 28
             };
29 29
         } else {
30
-            $isEquals = function ($obj1, $obj2) {
30
+            $isEquals = function($obj1, $obj2) {
31 31
                 return (strcasecmp($obj1, $obj2) == 0);
32 32
             };
33 33
         }
Please login to merge, or discard this patch.
src/Specialized/NumberArray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function __construct()
20 20
     {
21
-        $isNumber = function ($obj) {
21
+        $isNumber = function($obj) {
22 22
             return is_numeric($obj);
23 23
         };
24 24
 
Please login to merge, or discard this patch.