Completed
Push — 2.2.2-b247 ( 987f3e...6ba0cf )
by
unknown
44s
created
src/SWP/Bundle/CoreBundle/Command/FillArticleExtraTableCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Controller/ContentListController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
               'secret' => $token,
98 98
           ];
99 99
 
100
-          $response = $client->request('POST', $url,  [
100
+          $response = $client->request('POST', $url, [
101 101
               'headers' => $headers,
102 102
               'json' => $data,
103 103
               'query' => $queryParams
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
               ]
117 117
           ];
118 118
 
119
-          file_put_contents('/tmp/cache_invalidation.json', json_encode($result) . PHP_EOL, FILE_APPEND);
119
+          file_put_contents('/tmp/cache_invalidation.json', json_encode($result).PHP_EOL, FILE_APPEND);
120 120
       } catch (\Throwable $e) {
121
-          file_put_contents('/tmp/cache_invalidation_errors.json', $e->getMessage() . PHP_EOL, FILE_APPEND);
121
+          file_put_contents('/tmp/cache_invalidation_errors.json', $e->getMessage().PHP_EOL, FILE_APPEND);
122 122
       }
123 123
   }
124 124
 
Please login to merge, or discard this patch.