@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | // @codeCoverageIgnoreStart |
83 | 83 | $this->serializationMap = \array_merge( |
84 | 84 | $this->serializationMap, |
85 | - include \realpath(\dirname(__FILE__).'/Mapping/serialization_hhvm.php') |
|
85 | + include \realpath(\dirname(__FILE__) . '/Mapping/serialization_hhvm.php') |
|
86 | 86 | ); |
87 | - $this->unserializationMapHHVM = include \realpath(\dirname(__FILE__).'/Mapping/unserialization_hhvm.php'); |
|
87 | + $this->unserializationMapHHVM = include \realpath(\dirname(__FILE__) . '/Mapping/unserialization_hhvm.php'); |
|
88 | 88 | // @codeCoverageIgnoreEnd |
89 | 89 | } |
90 | 90 | $this->serializationStrategy = $strategy; |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | } |
272 | 272 | |
273 | 273 | if (!class_exists($className)) { |
274 | - throw new SerializerException('Unable to find class '.$className); |
|
274 | + throw new SerializerException('Unable to find class ' . $className); |
|
275 | 275 | } |
276 | 276 | |
277 | 277 | return (null === ($obj = $this->unserializeDateTimeFamilyObject($value, $className))) |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | $obj = (object) $attributes; |
337 | 337 | $serialized = \preg_replace( |
338 | 338 | '|^O:\d+:"\w+":|', |
339 | - 'O:'.strlen($className).':"'.$className.'":', |
|
339 | + 'O:' . strlen($className) . ':"' . $className . '":', |
|
340 | 340 | \serialize($obj) |
341 | 341 | ); |
342 | 342 | |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | protected function serializeObject($value) |
434 | 434 | { |
435 | 435 | if (self::$objectStorage->contains($value)) { |
436 | - return [self::CLASS_IDENTIFIER_KEY => '@'.self::$objectStorage[$value]]; |
|
436 | + return [self::CLASS_IDENTIFIER_KEY => '@' . self::$objectStorage[$value]]; |
|
437 | 437 | } |
438 | 438 | |
439 | 439 | self::$objectStorage->attach($value, self::$objectMappingIndex++); |
@@ -72,7 +72,7 @@ |
||
72 | 72 | foreach ($data as $key => $value) { |
73 | 73 | if (\is_array($value)) { |
74 | 74 | if (\is_numeric($key)) { |
75 | - $key = 'np_serializer_element_'.gettype($key).'_'.$key; |
|
75 | + $key = 'np_serializer_element_' . gettype($key) . '_' . $key; |
|
76 | 76 | } |
77 | 77 | $subnode = $xmlData->addChild($key); |
78 | 78 | $this->arrayToXml($value, $subnode); |
@@ -33,9 +33,9 @@ |
||
33 | 33 | $result = []; |
34 | 34 | foreach ($array as $key => $value) { |
35 | 35 | if (\is_array($value)) { |
36 | - $result = $result + $this->flatten($value, $prefix.$key.'.'); |
|
36 | + $result = $result + $this->flatten($value, $prefix . $key . '.'); |
|
37 | 37 | } else { |
38 | - $result[$prefix.$key] = $value; |
|
38 | + $result[$prefix . $key] = $value; |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 |