Completed
Push — master ( e3cb9a...5ae825 )
by Vitaliy
04:55
created
src/Extended/LazyLoadCollection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      *
54 54
      * @param array $items
55 55
      *
56
-     * @return static
56
+     * @return Collection
57 57
      */
58 58
     protected function createCollection(array $items)
59 59
     {
Please login to merge, or discard this patch.
src/CollectionReadTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
         if ($additionalArguments === null) {
211 211
             return $callback;
212 212
         }
213
-        return function ($item) use ($callback, $additionalArguments) {
213
+        return function($item) use ($callback, $additionalArguments) {
214 214
             $arguments = array_merge([$item], $additionalArguments);
215 215
             return call_user_func_array($callback, $arguments);
216 216
         };
Please login to merge, or discard this patch.
src/Extended/ObjectCollectionTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     public function sortByProperty($propertyName)
85 85
     {
86 86
 
87
-        return $this->sort(function ($itemA, $itemB) use ($propertyName) {
87
+        return $this->sort(function($itemA, $itemB) use ($propertyName) {
88 88
             $a = mp\getValue($itemA, $propertyName, 0);
89 89
             $b = mp\getValue($itemB, $propertyName, 0);
90 90
             if ($a < $b) {
@@ -97,12 +97,12 @@  discard block
 block discarded – undo
97 97
     private function getPropertyComparator($propertyName, $value, $useGetters)
98 98
     {
99 99
         if ($useGetters) {
100
-            return function ($item) use ($propertyName, $value) {
100
+            return function($item) use ($propertyName, $value) {
101 101
                 // NAN used as default because NAN !== NAN
102 102
                 return mp\getValue($item, $propertyName, NAN) === $value;
103 103
             };
104 104
         } else {
105
-            return function ($item) use ($propertyName, $value) {
105
+            return function($item) use ($propertyName, $value) {
106 106
                 return isset($item->{$propertyName}) && $item->{$propertyName} === $value;
107 107
             };
108 108
         }
Please login to merge, or discard this patch.