@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | if (is_array($extraItem)) { |
| 74 | 74 | $extra = ArticleExtraEmbedField::newFromValue($key, $extraItem); |
| 75 | 75 | } else { |
| 76 | - $extra = ArticleExtraTextField::newFromValue($key, (string)$extraItem); |
|
| 76 | + $extra = ArticleExtraTextField::newFromValue($key, (string) $extraItem); |
|
| 77 | 77 | } |
| 78 | 78 | $extra->setArticle($article); |
| 79 | 79 | $this->entityManager->persist($extra); |
@@ -113,9 +113,9 @@ discard block |
||
| 113 | 113 | return $unserialized; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | - $callback = function ($matches) { |
|
| 116 | + $callback = function($matches) { |
|
| 117 | 117 | $matches[2] = trim(preg_replace('/\s\s+/', ' ', $matches[2])); |
| 118 | - return 's:' . mb_strlen($matches[2]) . ':"' . $matches[2] . '";'; |
|
| 118 | + return 's:'.mb_strlen($matches[2]).':"'.$matches[2].'";'; |
|
| 119 | 119 | }; |
| 120 | 120 | |
| 121 | 121 | $fixedData = preg_replace_callback('!s:(\d+):"(.*?)";!s', $callback, $data); |