Skip to content

Commit 737ba4b

Browse files
author
Hayder Sharhan
committed
Merge remote-tracking branch 'api/bug-fixes' into bug-fixes
2 parents afaefb3 + 26e7dc0 commit 737ba4b

File tree

9 files changed

+23
-9
lines changed

9 files changed

+23
-9
lines changed

app/code/Magento/Integration/Model/Oauth/Token/RequestLog/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ public function getLockTimeout()
4646
{
4747
return (int)$this->storeConfig->getValue('oauth/authentication_lock/timeout');
4848
}
49-
}
49+
}

app/code/Magento/Integration/Model/Oauth/Token/RequestLog/WriterInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ interface WriterInterface
1717
* @param string $userName
1818
* @param int $userType
1919
* @param return void
20+
* @return void
2021
*/
2122
public function resetFailuresCount($userName, $userType);
2223

@@ -26,6 +27,7 @@ public function resetFailuresCount($userName, $userType);
2627
* @param string $userName
2728
* @param int $userType
2829
* @param return void
30+
* @return void
2931
*/
3032
public function incrementFailuresCount($userName, $userType);
3133

app/code/Magento/Integration/Model/ResourceModel/Oauth/Token/RequestLog.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
/**
1313
* Resource model for failed authentication attempts to retrieve admin/customer token.
1414
*/
15-
class RequestLog extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
16-
implements ReaderInterface, WriterInterface
15+
class RequestLog extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb implements
16+
ReaderInterface,
17+
WriterInterface
1718
{
1819
/**
1920
* @var \Magento\Framework\Stdlib\DateTime\DateTime

app/code/Magento/WebapiSecurity/Model/Plugin/AnonymousResourceSecurity.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
class AnonymousResourceSecurity
1111
{
12+
/**
13+
* Config path
14+
*/
1215
const XML_ALLOW_INSECURE = 'webapi/webapisecurity/allow_insecure';
1316

1417
/**
@@ -34,9 +37,12 @@ public function __construct(\Magento\Framework\App\Config\ReinitableConfigInterf
3437
}
3538

3639
/**
40+
* Filter config values.
41+
*
3742
* @param Converter $subject
3843
* @param array $nodes
3944
* @return array
45+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4046
*/
4147
public function afterConvert(Converter $subject, $nodes)
4248
{
@@ -67,6 +73,8 @@ public function afterConvert(Converter $subject, $nodes)
6773
}
6874

6975
/**
76+
* Get node by path.
77+
*
7078
* @param string $route
7179
* @param string $requestType
7280
* @param array $source

app/code/Magento/WebapiSecurity/Model/Plugin/CacheInvalidator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ public function __construct(\Magento\Framework\App\Cache\TypeListInterface $cach
2323
}
2424

2525
/**
26+
* Invalidate WebApi cache if needed.
27+
*
2628
* @param \Magento\Framework\App\Config\Value $subject
2729
* @param \Magento\Framework\App\Config\Value $result
28-
*
2930
* @return \Magento\Framework\App\Config\Value
31+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3032
*/
3133
public function afterAfterSave(
3234
\Magento\Framework\App\Config\Value $subject,

app/code/Magento/WebapiSecurity/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"require": {
55
"php": "~5.5.22|~5.6.0|~7.0.0",
66
"magento/module-backend": "100.0.*",
7+
"magento/module-webapi": "100.0.*",
78
"magento/framework": "100.0.*"
89
},
910
"type": "magento2-module",
10-
"version": "100.0.2",
11+
"version": "100.0.0",
1112
"license": [
1213
"OSL-3.0",
1314
"AFL-3.0"

app/code/Magento/WebapiSecurity/registration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2015 Magento. All rights reserved.
3+
* Copyright © 2016 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
"magento/module-vault": "100.0.2",
173173
"magento/module-version": "100.0.2",
174174
"magento/module-webapi": "100.0.2",
175-
"magento/module-webapisecurity": "100.0.2",
175+
"magento/module-webapisecurity": "100.0.0",
176176
"magento/module-weee": "100.0.2",
177177
"magento/module-widget": "100.0.2",
178178
"magento/module-wishlist": "100.0.2",

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)