Completed
Push — symfony4 ( 6bce00...4f08c4 )
by
unknown
26s
created
src/SWP/Bundle/ContentBundle/Model/Article.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     {
334 334
         return $this->getExtraCollection()
335 335
             ->map(
336
-                function (ArticleExtraFieldInterface $field) {
336
+                function(ArticleExtraFieldInterface $field) {
337 337
                     return $field->toApiFormat();
338 338
                 }
339 339
             )->toArray();
@@ -536,8 +536,8 @@  discard block
 block discarded – undo
536 536
             if (is_array($value)) {
537 537
                 $this->addEmbedExtra(ArticleExtraEmbedField::newFromValue($key, $value));
538 538
             } else {
539
-                if(is_int($value)) {
540
-                    $value = (string)$value;
539
+                if (is_int($value)) {
540
+                    $value = (string) $value;
541 541
                 }
542 542
                 $this->addTextExtra(ArticleExtraTextField::newFromValue($key, $value));
543 543
             }
Please login to merge, or discard this patch.