Skip to content

Commit cdcad5c

Browse files
committed
Static check fixes
1 parent ac5ef07 commit cdcad5c

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

app/code/Magento/Cms/Block/BlockByIdentifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
class BlockByIdentifier extends AbstractBlock implements IdentityInterface
2424
{
25-
const CACHE_KEY_PREFIX = 'CMS_BLOCK';
25+
public const CACHE_KEY_PREFIX = 'CMS_BLOCK';
2626

2727
/**
2828
* @var GetBlockByIdentifierInterface

app/code/Magento/Cms/Test/Unit/Block/BlockByIdentifierTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -203,18 +203,6 @@ private function getPassthroughFilterMock(): Template
203203
return $filterMock;
204204
}
205205

206-
/**
207-
* Returns stub of Identity based on `$identifier` and `$storeId`
208-
*
209-
* @param string $identifier
210-
* @param int $storeId
211-
* @return string
212-
*/
213-
private function getIdentityStubByIdentifier(string $identifier, int $storeId = self::STUB_DEFAULT_STORE): string
214-
{
215-
return BlockByIdentifier::CACHE_KEY_PREFIX . '_' . $identifier . '_' . $storeId;
216-
}
217-
218206
/**
219207
* Returns stub of Identity based on `$cmsBlockId`
220208
*

0 commit comments

Comments
 (0)