Skip to content

Commit

Permalink
UHF-10724: Fix PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
teroelonen committed Dec 16, 2024
1 parent b2d7a5c commit 5d4399b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
namespace Drupal\helfi_node_news_article\Plugin\Block;

use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\TypedData\Exception\MissingDataException;
use Drupal\helfi_node_news_article\Entity\Node\NewsArticle;
use Drupal\helfi_platform_config\Plugin\Block\ContentBlockBase;

Expand Down Expand Up @@ -73,13 +71,13 @@ public function build() : array {

$image_author = '';

$image_author_name = $media
$image_author_name = $media
?->get('field_photographer')
?->first()
?->getString();

if(!empty($image_author_name)) {
$image_author = t(
if (!empty($image_author_name)) {
$image_author = $this->t(
'Image: @image_author',
['@image_author' => $image_author_name],
['context' => 'Helfi Paragraphs Hero']
Expand Down

0 comments on commit 5d4399b

Please sign in to comment.