Skip to content

Commit f0bbc19

Browse files
committed
phpcs
1 parent a186247 commit f0bbc19

File tree

9 files changed

+29
-17
lines changed

9 files changed

+29
-17
lines changed

Block/Adminhtml/Action/Edit/BackButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getButtonData(): array
3030
'label' => new Phrase('Back'),
3131
'on_click' => 'location.href = "' . $this->urlBuilder->getUrl('*/*/') . '";',
3232
'class' => 'back',
33-
'sort_order' => 10
33+
'sort_order' => 10,
3434
];
3535
}
3636
}

Block/Adminhtml/Action/Edit/ResetButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function getButtonData(): array
1818
'label' => new Phrase('Reset'),
1919
'class' => 'reset',
2020
'on_click' => 'location.reload();',
21-
'sort_order' => 20
21+
'sort_order' => 20,
2222
];
2323
}
2424
}

Model/Action/Erase/CancelAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function execute(ActionContextInterface $actionContext): ActionResultInte
4848
return $this->createActionResult(
4949
[
5050
ArgumentReader::ERASE_ENTITY => $this->resolveEntity(...$arguments),
51-
'canceled' => $this->eraseManagement->cancel(...$arguments)
51+
'canceled' => $this->eraseManagement->cancel(...$arguments),
5252
]
5353
);
5454
}

Model/Action/Erase/CreateAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function execute(ActionContextInterface $actionContext): ActionResultInte
3737
[
3838
ArgumentReader::ERASE_ENTITY => $this->eraseManagement->create(
3939
...$this->getArguments($actionContext)
40-
)
40+
),
4141
]
4242
);
4343
}

Model/Action/Export/CreateAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function execute(ActionContextInterface $actionContext): ActionResultInte
3737
[
3838
ArgumentReader::EXPORT_ENTITY => $this->exporter->create(
3939
...$this->getArguments($actionContext)
40-
)
40+
),
4141
]
4242
);
4343
}

Model/Action/Export/CreateOrExportAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function execute(ActionContextInterface $actionContext): ActionResultInte
3838
[
3939
ExportArgumentReader::EXPORT_ENTITY => $this->exportEntityData->export(
4040
...$this->getArguments($actionContext)
41-
)
41+
),
4242
]
4343
);
4444
}

Model/Action/PerformedBy/AdminUser.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ public function __construct(
3434

3535
public function get(): string
3636
{
37-
return self::PERFORMED_BY . ($this->authSession->getUser()
38-
? $this->authSession->getUser()->getData($this->attributeName)
39-
: '');
37+
return self::PERFORMED_BY . $this->resolveUserName();
38+
}
39+
40+
private function resolveUserName(): string
41+
{
42+
return $this->authSession->getUser() ? $this->authSession->getUser()->getData($this->attributeName) : 'Unknown';
4043
}
4144
}

Model/Config/PrivacyMessage.php

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,7 @@ public function __construct(
5050

5151
public function getDisclosureInformationHtml(): string
5252
{
53-
return $this->blockHtml ?? $this->blockHtml = $this->blockFactory->createBlock(
54-
Block::class,
55-
['data' => ['block_id' => (string) $this->scopeConfig->getValue(
56-
self::CONFIG_PATH_COOKIE_INFORMATION_BLOCK,
57-
ScopeInterface::SCOPE_STORE
58-
)]]
59-
)->toHtml();
53+
return $this->blockHtml ?? $this->blockHtml = $this->createDisclosureInformationBlockHtml();
6054
}
6155

6256
public function getLearnMoreUrl(): string
@@ -66,4 +60,19 @@ public function getLearnMoreUrl(): string
6660
ScopeInterface::SCOPE_STORE
6761
)) ?? '#';
6862
}
63+
64+
private function createDisclosureInformationBlockHtml(): string
65+
{
66+
return $this->blockFactory->createBlock(
67+
Block::class,
68+
[
69+
'data' => [
70+
'block_id' => (string) $this->scopeConfig->getValue(
71+
self::CONFIG_PATH_COOKIE_INFORMATION_BLOCK,
72+
ScopeInterface::SCOPE_STORE
73+
),
74+
],
75+
]
76+
)->toHtml();
77+
}
6978
}

Model/Entity/EntityTypeList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function getEntityTypes(): array
4040
{
4141
$entityTypes = [];
4242

43-
foreach ($this->getList() as $entity => $types) {
43+
foreach ($this->getList() as $types) {
4444
$entityTypes[] = array_keys($types);
4545
}
4646

0 commit comments

Comments
 (0)