Skip to content

Commit 2bfbcb9

Browse files
YatharthVyasPhil E. Taylor
andcommitted
Apply suggestions from code review
Co-authored-by: Phil E. Taylor <[email protected]>
1 parent 0884e75 commit 2bfbcb9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

administrator/components/com_modules/src/Extension/ModulesComponent.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ class ModulesComponent extends MVCComponent implements BootableExtensionInterfac
3232
use HTMLRegistryAwareTrait;
3333
use WorkflowServiceTrait;
3434

35-
/** @var array Supported functionality */
35+
/**
36+
* @since __DEPLOY_VERSION_
37+
* @var array
38+
*/
3639
protected $supportedFunctionality = [
3740
'core.state' => true,
3841
];
@@ -99,9 +102,9 @@ public function getWorkflowContexts(): array
99102
{
100103
Factory::getLanguage()->load('com_modules', JPATH_ADMINISTRATOR);
101104

102-
$contexts = array(
105+
$contexts = [
103106
'com_modules.module' => Text::_('COM_MODULES')
104-
);
107+
];
105108

106109
return $contexts;
107110
}
@@ -146,8 +149,6 @@ public function filterTransitions(array $transitions, int $pk): array
146149
*/
147150
public function getCategoryWorkflowContext(?string $section = null): string
148151
{
149-
$context = $this->getWorkflowContexts();
150-
151-
return array_key_first($context);
152+
return array_key_first($this->getWorkflowContexts());
152153
}
153154
}

0 commit comments

Comments
 (0)