Skip to content

Cleanup: don't use void return value from method calls. #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2019 Adobe
* All Rights Reserved.
*/

namespace Magento\PageBuilder\Controller\Adminhtml\Stage;
Expand All @@ -18,7 +17,7 @@
*/
class Render extends \Magento\Backend\App\Action implements HttpGetActionInterface
{
const ADMIN_RESOURCE = 'Magento_Backend::content';
public const ADMIN_RESOURCE = 'Magento_Backend::content';

/**
* @var \Magento\Framework\View\Result\PageFactory
Expand All @@ -36,7 +35,8 @@ public function __construct(
PageFactory $pageFactory
) {
$this->pageFactory = $pageFactory;
return parent::__construct($context);

parent::__construct($context);
}

/**
Expand Down