Fix some PHPStan errors
This commit is contained in:
parent
f5767f7739
commit
4d3e0901d2
|
@ -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);
|
||||
|
|
|
@ -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'])) {
|
||||
|
|
|
@ -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']) {
|
||||
|
|
Loading…
Reference in a new issue