Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit eecb01f

Browse files
committed
Fix static tests
1 parent cbcc5e8 commit eecb01f

File tree

1 file changed

+12
-4
lines changed
  • app/code/Magento/WebapiAsync/Plugin/Cache

1 file changed

+12
-4
lines changed

app/code/Magento/WebapiAsync/Plugin/Cache/Webapi.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function __construct(
5151
* @param \Magento\Webapi\Model\Cache\Type\Webapi $subject
5252
* @param string $identifier
5353
* @return null|string
54+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5455
*/
5556
public function beforeLoad(\Magento\Webapi\Model\Cache\Type\Webapi $subject, $identifier)
5657
{
@@ -65,14 +66,20 @@ public function beforeLoad(\Magento\Webapi\Model\Cache\Type\Webapi $subject, $id
6566
* Change identifier in case if Async request before cache save
6667
*
6768
* @param \Magento\Webapi\Model\Cache\Type\Webapi $subject
68-
* @param $data
69+
* @param string $data
6970
* @param string $identifier
7071
* @param array $tags
71-
* @param null $lifeTime
72+
* @param int|bool|null $lifeTime
7273
* @return array|null
74+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
7375
*/
74-
public function beforeSave(\Magento\Webapi\Model\Cache\Type\Webapi $subject, $data, $identifier, array $tags = [], $lifeTime = null)
75-
{
76+
public function beforeSave(
77+
\Magento\Webapi\Model\Cache\Type\Webapi $subject,
78+
$data,
79+
$identifier,
80+
array $tags = [],
81+
$lifeTime = null
82+
) {
7683
if ($this->asynchronousSchemaRequestProcessor->canProcess($this->request)
7784
&& $identifier === \Magento\Webapi\Model\ServiceMetadata::ROUTES_CONFIG_CACHE_ID) {
7885
return [$data, self::ASYNC_ROUTES_CONFIG_CACHE_ID, $tags, $lifeTime];
@@ -86,6 +93,7 @@ public function beforeSave(\Magento\Webapi\Model\Cache\Type\Webapi $subject, $da
8693
* @param \Magento\Webapi\Model\Cache\Type\Webapi $subject
8794
* @param string $identifier
8895
* @return null|string
96+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
8997
*/
9098
public function beforeRemove(\Magento\Webapi\Model\Cache\Type\Webapi $subject, $identifier)
9199
{

0 commit comments

Comments
 (0)