From 4d3e0901d23e851c492a17b9cf36d434b670e535 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 26 May 2020 12:01:03 +0100 Subject: [PATCH] Fix some PHPStan errors --- .../src/Command/ExportBodyValuesForThemePurgingCommand.php | 2 +- .../custom/custom/src/Plugin/migrate/destination/OpdTalk.php | 2 +- web/themes/custom/opdavies/opdavies.theme | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/modules/custom/custom/src/Command/ExportBodyValuesForThemePurgingCommand.php b/web/modules/custom/custom/src/Command/ExportBodyValuesForThemePurgingCommand.php index 73c2353..e33447b 100644 --- a/web/modules/custom/custom/src/Command/ExportBodyValuesForThemePurgingCommand.php +++ b/web/modules/custom/custom/src/Command/ExportBodyValuesForThemePurgingCommand.php @@ -27,7 +27,7 @@ final class ExportBodyValuesForThemePurgingCommand { * * @command opdavies:export-body-values-for-theme-purging */ - public function handle() { + public function handle(): void { $values = Collection::make(self::$tableNames) ->flatMap(fn(string $tableName) => $this->getValuesFromTable($tableName)) ->implode(PHP_EOL); diff --git a/web/modules/custom/custom/src/Plugin/migrate/destination/OpdTalk.php b/web/modules/custom/custom/src/Plugin/migrate/destination/OpdTalk.php index 4c52d45..623c490 100644 --- a/web/modules/custom/custom/src/Plugin/migrate/destination/OpdTalk.php +++ b/web/modules/custom/custom/src/Plugin/migrate/destination/OpdTalk.php @@ -70,7 +70,7 @@ final class OpdTalk extends EntityContentBase { }); } - private function createVideoMedia(Row $row, EntityInterface $node) { + private function createVideoMedia(Row $row, EntityInterface $node): void { $video = $row->getSourceProperty('video'); if (!empty($video['type']) && !empty($video['id'])) { diff --git a/web/themes/custom/opdavies/opdavies.theme b/web/themes/custom/opdavies/opdavies.theme index f9b5d69..d0c69a4 100644 --- a/web/themes/custom/opdavies/opdavies.theme +++ b/web/themes/custom/opdavies/opdavies.theme @@ -8,7 +8,7 @@ /** * Implements hook_preprocess_HOOK(). */ -function opdavies_preprocess_block(&$variables) { +function opdavies_preprocess_block(array &$variables): void { if ($variables['base_plugin_id'] == 'system_branding_block') { $variables['site_logo'] = ''; if ($variables['content']['site_logo']['#access'] && $variables['content']['site_logo']['#uri']) {