@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | } catch (\Exception $e) { |
| 137 | 137 | ++$totalArticlesProcessed; |
| 138 | - error_log('Error processing article ' . $result['id'] . ': ' . $e->getMessage()); |
|
| 138 | + error_log('Error processing article '.$result['id'].': '.$e->getMessage()); |
|
| 139 | 139 | continue; |
| 140 | 140 | } |
| 141 | 141 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $entityManager->flush(); |
| 146 | 146 | $entityManager->clear(); |
| 147 | 147 | } catch (\Exception $e) { |
| 148 | - error_log('postUp error: ' . $e->getMessage()); |
|
| 148 | + error_log('postUp error: '.$e->getMessage()); |
|
| 149 | 149 | throw $e; |
| 150 | 150 | } |
| 151 | 151 | } |
@@ -163,9 +163,9 @@ discard block |
||
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | // If unserialize failed, try to fix and retry |
| 166 | - $callback = function ($matches) { |
|
| 166 | + $callback = function($matches) { |
|
| 167 | 167 | $matches[2] = trim(preg_replace('/\s\s+/', ' ', $matches[2])); |
| 168 | - return 's:' . mb_strlen($matches[2]) . ':"' . $matches[2] . '";'; |
|
| 168 | + return 's:'.mb_strlen($matches[2]).':"'.$matches[2].'";'; |
|
| 169 | 169 | }; |
| 170 | 170 | |
| 171 | 171 | $data = preg_replace_callback('!s:(\d+):"(.*?)";!s', $callback, $data); |