@@ -171,7 +171,7 @@ |
||
171 | 171 | ->leftJoin('a.extraEmbedFields', 'eef'); |
172 | 172 | |
173 | 173 | foreach ((array) $criteria->get('extra') as $key => $value) { |
174 | - if(is_array($value)) { |
|
174 | + if (is_array($value)) { |
|
175 | 175 | $andX = $queryBuilder->expr()->andX(); |
176 | 176 | $andX->add($queryBuilder->expr()->eq('eef.fieldName', $queryBuilder->expr()->literal($key))); |
177 | 177 | $andX->add($queryBuilder->expr()->eq('eef.embed', $queryBuilder->expr()->literal($value['embed']))); |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | public function getExtraByKey(string $key) |
321 | 321 | { |
322 | 322 | foreach ($this->getExtraCollection() as $extraTextField) { |
323 | - if($key === $extraTextField->getFieldName()) { |
|
323 | + if ($key === $extraTextField->getFieldName()) { |
|
324 | 324 | return $extraTextField; |
325 | 325 | } |
326 | 326 | } |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | { |
338 | 338 | return $this->getExtraCollection() |
339 | 339 | ->map( |
340 | - function (ArticleExtraFieldInterface $field) { |
|
340 | + function(ArticleExtraFieldInterface $field) { |
|
341 | 341 | return $field->toApiFormat(); |
342 | 342 | } |
343 | 343 | )->toArray(); |
@@ -538,7 +538,7 @@ discard block |
||
538 | 538 | |
539 | 539 | foreach ($extra as $key => $value) { |
540 | 540 | |
541 | - if(is_array($value)) { |
|
541 | + if (is_array($value)) { |
|
542 | 542 | $embed = new ArticleExtraEmbedField(); |
543 | 543 | $embed->setFieldName($key); |
544 | 544 | $embed->setEmbed($value['embed']); |
@@ -68,7 +68,7 @@ |
||
68 | 68 | Article::class, $result['id']); |
69 | 69 | |
70 | 70 | foreach ($legacyExtra as $key => $extraItem) { |
71 | - if(is_array($extraItem)) { |
|
71 | + if (is_array($extraItem)) { |
|
72 | 72 | $extra = new ArticleExtraEmbedField(); |
73 | 73 | $extra->setFieldName($key); |
74 | 74 | $extra->setDescription($extraItem['description']); |