@@ 30-33 (lines=4) @@ | ||
27 | $value = parent::serialization($value); |
|
28 | $data = []; |
|
29 | ||
30 | if (!empty($value[self::META_KEY])) { |
|
31 | $data[self::META_KEY] = $value[self::META_KEY]; |
|
32 | unset($value[self::META_KEY]); |
|
33 | } |
|
34 | ||
35 | if (!empty($value[self::LINKS])) { |
|
36 | $data[self::LINKS] = $value[self::LINKS]; |
|
@@ 35-38 (lines=4) @@ | ||
32 | unset($value[self::META_KEY]); |
|
33 | } |
|
34 | ||
35 | if (!empty($value[self::LINKS])) { |
|
36 | $data[self::LINKS] = $value[self::LINKS]; |
|
37 | unset($value[self::LINKS]); |
|
38 | } |
|
39 | ||
40 | $data = array_merge(['data' => $value], $data); |
|
41 |