From 4cd86706ba7adccdda3378e254e4ad3e49917d7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 18 Nov 2022 10:12:36 +0100 Subject: [PATCH] Shorten overly long line in PackageInstallationNodeBuilder --- .../system/package/PackageInstallationNodeBuilder.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php index 4aa4f60b99..22ef62fd5b 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php @@ -616,7 +616,10 @@ class PackageInstallationNodeBuilder $pluginNodes = []; $this->emptyNode = true; - $instructions = ($this->installation->getAction() == 'install') ? $this->installation->getArchive()->getInstallInstructions() : $this->installation->getArchive()->getUpdateInstructions(); + $instructions = match ($this->installation->getAction()) { + 'install' => $this->installation->getArchive()->getInstallInstructions(), + 'update' => $this->installation->getArchive()->getUpdateInstructions(), + }; $count = \count($instructions); if ($count === 0) { -- 2.20.1