Skip to content

Commit 57b9cd2

Browse files
author
Saurabh Parekh
committed
Correct return type of methods and typo correction.
1 parent f48f78a commit 57b9cd2

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

app/code/Magento/CatalogRule/Controller/Adminhtml/Promo/Widget/CategoriesJson.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
use Magento\Backend\App\Action\Context;
1010
use Magento\Catalog\Model\Category;
11+
use Magento\Customer\Model\Attribute\Data\Boolean;
1112
use Magento\Framework\Registry;
1213

1314
class CategoriesJson extends \Magento\CatalogRule\Controller\Adminhtml\Promo\Widget
@@ -32,7 +33,7 @@ public function __construct(Context $context, Registry $coreRegistry)
3233
/**
3334
* Initialize category object in registry
3435
*
35-
* @return Category
36+
* @return Category|Boolean
3637
*/
3738
protected function _initCategory()
3839
{

app/code/Magento/CatalogSearch/Model/ResourceModel/Engine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function processAttributeValue($attribute, $value)
120120
*
121121
* @param array $index
122122
* @param string $separator
123-
* @return string
123+
* @return array
124124
*/
125125
public function prepareEntityIndex($index, $separator = ' ')
126126
{

app/code/Magento/UrlRewrite/Service/V1/Data/UrlRewrite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function getUrlRewriteId()
7979

8080
/**
8181
* @param int $urlRewriteId
82-
* @return int
82+
* @return $this
8383
*/
8484
public function setUrlRewriteId($urlRewriteId)
8585
{

app/code/Magento/User/Model/Backend/Config/ObserverConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function getAdminPasswordLifetime()
7272
}
7373

7474
/**
75-
* Get admin maxiumum security failures from config
75+
* Get admin maximum security failures from config
7676
*
7777
* @return int
7878
*/

0 commit comments

Comments
 (0)