Skip to content

Commit 3819438

Browse files
Lars Roettiggabrieldagama
andauthored
Apply suggestions from code review
Co-authored-by: Gabriel da Gama <gabriel@gabrielgama.com.br>
1 parent bb07bc0 commit 3819438

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/code/Magento/Cms/Model/Page/DataProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ public function __construct(
7878
?CustomLayoutManagerInterface $customLayoutManager = null,
7979
?PageRepositoryInterface $pageRepository = null
8080
) {
81-
8281
parent::__construct($name, $primaryFieldName, $requestFieldName, $meta, $data, $pool);
83-
8482
$this->collection = $pageCollectionFactory->create();
8583
$this->dataPersistor = $dataPersistor;
8684
$this->auth = $auth ?? ObjectManager::getInstance()->get(AuthorizationInterface::class);
@@ -145,7 +143,7 @@ public function getData(): array
145143
* Loads the current page by current request params.
146144
* @return Page|null
147145
*/
148-
public function getCurrentPage(): ?Page
146+
private function getCurrentPage(): ?Page
149147
{
150148
if (!$this->getRequestFieldName()) {
151149
return null;

0 commit comments

Comments
 (0)