Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel da Gama <[email protected]>
  • Loading branch information
Lars Roettig and gabrieldagama authored Dec 3, 2020
1 parent bb07bc0 commit 3819438
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/code/Magento/Cms/Model/Page/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ public function __construct(
?CustomLayoutManagerInterface $customLayoutManager = null,
?PageRepositoryInterface $pageRepository = null
) {

parent::__construct($name, $primaryFieldName, $requestFieldName, $meta, $data, $pool);

$this->collection = $pageCollectionFactory->create();
$this->dataPersistor = $dataPersistor;
$this->auth = $auth ?? ObjectManager::getInstance()->get(AuthorizationInterface::class);
Expand Down Expand Up @@ -145,7 +143,7 @@ public function getData(): array
* Loads the current page by current request params.
* @return Page|null
*/
public function getCurrentPage(): ?Page
private function getCurrentPage(): ?Page
{
if (!$this->getRequestFieldName()) {
return null;
Expand Down

0 comments on commit 3819438

Please sign in to comment.