Skip to content

Commit 2b12036

Browse files
committed
Added @param, private, : bool
1 parent b185332 commit 2b12036

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Newsletter/Model/Config.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Config
1717
/**
1818
* Configuration path to newsletter active setting
1919
*/
20-
const XML_PATH_NEWSLETTER_ACTIVE = 'newsletter/general/active';
20+
private const XML_PATH_NEWSLETTER_ACTIVE = 'newsletter/general/active';
2121

2222
/**
2323
* @var ScopeConfigInterface
@@ -38,9 +38,10 @@ public function __construct(
3838
/**
3939
* Returns newsletter's enabled status
4040
*
41+
* @param string $scopeType
4142
* @return bool
4243
*/
43-
public function isActive($scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT)
44+
public function isActive($scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT): bool
4445
{
4546
return $this->scopeConfig->isSetFlag(self::XML_PATH_NEWSLETTER_ACTIVE, $scopeType);
4647
}

0 commit comments

Comments
 (0)