From b25e597281ab90b36a75550334e06ac4cb11bc0a Mon Sep 17 00:00:00 2001 From: Jerry Jigarius Radwick Date: Mon, 23 Sep 2024 16:01:50 +0530 Subject: [PATCH] Lint --- src/Command/ExecCommand.php | 2 +- src/Service/SiteDetector.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Command/ExecCommand.php b/src/Command/ExecCommand.php index f9ae697..3b9408f 100644 --- a/src/Command/ExecCommand.php +++ b/src/Command/ExecCommand.php @@ -41,7 +41,7 @@ class ExecCommand extends BaseCommand { */ protected array $argv; - public function __construct(string $name = NULL) { + public function __construct(string $name) { parent::__construct($name); $this->argv = $GLOBALS['argv']; } diff --git a/src/Service/SiteDetector.php b/src/Service/SiteDetector.php index f070262..102807a 100644 --- a/src/Service/SiteDetector.php +++ b/src/Service/SiteDetector.php @@ -19,7 +19,7 @@ class SiteDetector { public function __construct( DrupalFinder $drupalFinder, - SiteAliasManagerInterface $siteAliasManager + SiteAliasManagerInterface $siteAliasManager, ) { $this->setDrupalFinder($drupalFinder); $this->setSiteAliasManager($siteAliasManager); @@ -37,7 +37,7 @@ public function __construct( * Site directory names. */ public function getSiteDirNames( - string $group = NULL, + ?string $group = NULL, ?string $filter = NULL, ): array { if (!$sitesFile = $this->getSitesFile($group)) { @@ -66,7 +66,7 @@ public function getSiteDirNames( * Keys from the $sites array. */ public function getSiteKeys( - string $group = NULL, + ?string $group = NULL, ?string $filter = NULL, bool $unique = FALSE, ): array { @@ -190,7 +190,7 @@ private function getSitesFile($group = NULL): ?SitesFile { private function filter( array $data, string $expression, - string $default_filter_field = 'value' + string $default_filter_field = 'value', ): array { if (empty($data)) { return $data;