@@ -51,6 +51,7 @@ public function __construct(
51
51
* @param \Magento\Webapi\Model\Cache\Type\Webapi $subject
52
52
* @param string $identifier
53
53
* @return null|string
54
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
54
55
*/
55
56
public function beforeLoad (\Magento \Webapi \Model \Cache \Type \Webapi $ subject , $ identifier )
56
57
{
@@ -65,14 +66,20 @@ public function beforeLoad(\Magento\Webapi\Model\Cache\Type\Webapi $subject, $id
65
66
* Change identifier in case if Async request before cache save
66
67
*
67
68
* @param \Magento\Webapi\Model\Cache\Type\Webapi $subject
68
- * @param $data
69
+ * @param string $data
69
70
* @param string $identifier
70
71
* @param array $tags
71
- * @param null $lifeTime
72
+ * @param int|bool| null $lifeTime
72
73
* @return array|null
74
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
73
75
*/
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
+ ) {
76
83
if ($ this ->asynchronousSchemaRequestProcessor ->canProcess ($ this ->request )
77
84
&& $ identifier === \Magento \Webapi \Model \ServiceMetadata::ROUTES_CONFIG_CACHE_ID ) {
78
85
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
86
93
* @param \Magento\Webapi\Model\Cache\Type\Webapi $subject
87
94
* @param string $identifier
88
95
* @return null|string
96
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
89
97
*/
90
98
public function beforeRemove (\Magento \Webapi \Model \Cache \Type \Webapi $ subject , $ identifier )
91
99
{
0 commit comments