diff --git a/administrator/components/com_scheduler/src/Field/WebcronLinkField.php b/administrator/components/com_scheduler/src/Field/WebcronLinkField.php index 77ebbe77376ae..772b8899fcdf0 100644 --- a/administrator/components/com_scheduler/src/Field/WebcronLinkField.php +++ b/administrator/components/com_scheduler/src/Field/WebcronLinkField.php @@ -47,7 +47,7 @@ protected function getLayoutPaths(): array $s = DIRECTORY_SEPARATOR; return array_merge( - [JPATH_ADMINISTRATOR . "${s}/components${s}com_scheduler${s}layouts${s}"], + [JPATH_ADMINISTRATOR . "{$s}/components{$s}com_scheduler{$s}layouts{$s}"], parent::getLayoutPaths() ); } diff --git a/administrator/components/com_scheduler/src/Task/TaskOption.php b/administrator/components/com_scheduler/src/Task/TaskOption.php index 02dbf8997f33b..c085e23c0546b 100644 --- a/administrator/components/com_scheduler/src/Task/TaskOption.php +++ b/administrator/components/com_scheduler/src/Task/TaskOption.php @@ -73,8 +73,8 @@ class TaskOption public function __construct(string $type, string $langConstPrefix) { $this->id = $type; - $this->title = Text::_("${langConstPrefix}_TITLE"); - $this->desc = Text::_("${langConstPrefix}_DESC"); + $this->title = Text::_("{$langConstPrefix}_TITLE"); + $this->desc = Text::_("{$langConstPrefix}_DESC"); $this->langConstPrefix = $langConstPrefix; } diff --git a/libraries/src/Console/TasksStateCommand.php b/libraries/src/Console/TasksStateCommand.php index 384edeb1c943c..5b23a63c78400 100644 --- a/libraries/src/Console/TasksStateCommand.php +++ b/libraries/src/Console/TasksStateCommand.php @@ -130,14 +130,14 @@ protected function doExecute(InputInterface $input, OutputInterface $output): in // We couldn't fetch that task :( if (empty($task->id)) { - $this->ioStyle->error("Task ID '${id}' does not exist!"); + $this->ioStyle->error("Task ID '{$id}' does not exist!"); return 1; } // If the item is checked-out we need a check in (currently not possible through the CLI) if ($taskModel->isCheckedOut($task)) { - $this->ioStyle->error("Task ID '${id}' is checked out!"); + $this->ioStyle->error("Task ID '{$id}' is checked out!"); return 1; } @@ -148,12 +148,12 @@ protected function doExecute(InputInterface $input, OutputInterface $output): in $action = Task::STATE_MAP[$state]; if (!$table->publish($id, $state)) { - $this->ioStyle->error("Can't ${action} Task ID '${id}'"); + $this->ioStyle->error("Can't {$action} Task ID '{$id}'"); return 3; } - $this->ioStyle->success("Task ID ${id} ${action}."); + $this->ioStyle->success("Task ID {$id} {$action}."); return 0; } diff --git a/libraries/src/Installer/Adapter/PluginAdapter.php b/libraries/src/Installer/Adapter/PluginAdapter.php index a98e7a7d14668..f5b96b7b6fa47 100644 --- a/libraries/src/Installer/Adapter/PluginAdapter.php +++ b/libraries/src/Installer/Adapter/PluginAdapter.php @@ -295,7 +295,7 @@ public function loadLanguage($path = null) } if ($name) { - $extension = "plg_${group}_${name}"; + $extension = "plg_{$group}_{$name}"; $source = $path ?: JPATH_PLUGINS . "/$group/$name"; $folder = (string) $element->attributes()->folder;