Skip to content

Commit 06a2e31

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-32710: Code micro-optimizations
static test fixes
1 parent 922d412 commit 06a2e31

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

app/code/Magento/Sales/Model/Order/Status/History.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* @method \Magento\Sales\Model\Resource\Order\Status\History _getResource()
1616
* @method \Magento\Sales\Model\Resource\Order\Status\History getResource()
1717
* @method \Magento\Sales\Model\Order\Status\History setCreatedAt(string $value)
18+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1819
*/
1920
class History extends AbstractModel implements OrderStatusHistoryInterface
2021
{

dev/tests/functional/lib/Magento/Mtf/Util/Protocol/CurlTransport.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public function setConfig($config = [])
116116
* @param array $headers
117117
* @param array $params
118118
* @return void
119+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
119120
*/
120121
public function write($method, $url, $httpVer = '1.1', $headers = [], $params = [])
121122
{

lib/internal/Magento/Framework/App/Area.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
/**
1212
* Application area model
13+
*
14+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1315
*/
1416
class Area implements \Magento\Framework\App\AreaInterface
1517
{

lib/internal/Magento/Framework/Filesystem/Io/Ftp.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ public function close()
153153
* @param int $mode
154154
* @param bool $recursive
155155
* @return bool
156+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
156157
*/
157158
public function mkdir($dir, $mode = 0777, $recursive = true)
158159
{
@@ -165,6 +166,7 @@ public function mkdir($dir, $mode = 0777, $recursive = true)
165166
* @param string $dir
166167
* @param bool $recursive
167168
* @return bool
169+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
168170
*/
169171
public function rmdir($dir, $recursive = false)
170172
{
@@ -234,6 +236,7 @@ public function read($filename, $dest = null)
234236
* @param string|resource $src filename, string data or source stream
235237
* @param null $mode
236238
* @return bool
239+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
237240
*/
238241
public function write($filename, $src, $mode = null)
239242
{
@@ -300,6 +303,7 @@ public function chmod($filename, $mode)
300303
* @param null $grep ignored parameter
301304
* @return array
302305
* @SuppressWarnings(PHPMD.ShortMethodName)
306+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
303307
*/
304308
public function ls($grep = null)
305309
{

0 commit comments

Comments
 (0)