Completed
Push — master ( ed325f...672bd2 )
by Алексей
07:07
created
src/Base/BaseType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $map = $this->map;
50 50
 
51 51
         return collect($attributes)
52
-            ->mapWithKeys(function ($item, $key) use ($map) {
52
+            ->mapWithKeys(function($item, $key) use ($map) {
53 53
                 $keyData = array_get($map, $key);
54 54
                 if (is_callable($keyData)) {
55 55
                     return [$key => call_user_func($keyData, $item)];
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     public function toArray()
82 82
     {
83 83
         return $this->attributes
84
-            ->mapWithKeys(function ($item, $key) {
84
+            ->mapWithKeys(function($item, $key) {
85 85
                 if (is_subclass_of($item, BaseType::class)) {
86 86
                     /** @var BaseType $item */
87 87
                     return [$key => $item->toArray()];
Please login to merge, or discard this patch.