| @@ -93,7 +93,7 @@ | ||
| 93 | 93 | $result['id'] | 
| 94 | 94 | ); | 
| 95 | 95 |              try { | 
| 96 | -                 foreach ($legacyExtra as $key => $extraItem) { | |
| 96 | +                    foreach ($legacyExtra as $key => $extraItem) { | |
| 97 | 97 |                      if (is_array($extraItem)) { | 
| 98 | 98 | $extra = ArticleExtraEmbedField::newFromValue($key, $extraItem); | 
| 99 | 99 |                      } else { | 
| @@ -103,7 +103,7 @@ discard block | ||
| 103 | 103 | $entityManager->persist($extra); | 
| 104 | 104 | } | 
| 105 | 105 |              } catch (\Throwable $e) { | 
| 106 | - echo ">>>> E: " . $e->getMessage() . "\n"; | |
| 106 | + echo ">>>> E: ".$e->getMessage()."\n"; | |
| 107 | 107 | } | 
| 108 | 108 | |
| 109 | 109 | ++$totalArticlesProcessed; | 
| @@ -129,9 +129,9 @@ discard block | ||
| 129 | 129 | return $unserializedData; | 
| 130 | 130 | } | 
| 131 | 131 | |
| 132 | -    $callback = function ($matches) { | |
| 132 | +    $callback = function($matches) { | |
| 133 | 133 |          $matches[2] = trim(preg_replace('/\s\s+/', ' ', $matches[2])); | 
| 134 | - return 's:' . mb_strlen($matches[2]) . ':"' . $matches[2] . '";'; | |
| 134 | + return 's:'.mb_strlen($matches[2]).':"'.$matches[2].'";'; | |
| 135 | 135 | }; | 
| 136 | 136 | |
| 137 | 137 | // Check if $data is not null |