Skip to content

Commit 8d444ca

Browse files
committed
MAGETWO-67503: Fixed coding standard violations in Framework\HTTP namespace: #9260
- Merge Pull Request #9260 from dverkade/magento2:Fix_coding_standard_in_Framework-HTTP
2 parents 1a8dd8c + b2d9f68 commit 8d444ca

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

lib/internal/Magento/Framework/HTTP/Adapter/Curl.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
/**
108
* HTTP CURL Adapter
119
*
@@ -238,7 +236,7 @@ public function close()
238236
*/
239237
protected function _getResource()
240238
{
241-
if (is_null($this->_resource)) {
239+
if ($this->_resource === null) {
242240
$this->_resource = curl_init();
243241
}
244242
return $this->_resource;

lib/internal/Magento/Framework/HTTP/Header.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\HTTP;
108

119
/**
@@ -29,8 +27,10 @@ class Header
2927
* @param \Magento\Framework\App\RequestInterface $httpRequest
3028
* @param \Magento\Framework\Stdlib\StringUtils $converter
3129
*/
32-
public function __construct(\Magento\Framework\App\RequestInterface $httpRequest, \Magento\Framework\Stdlib\StringUtils $converter)
33-
{
30+
public function __construct(
31+
\Magento\Framework\App\RequestInterface $httpRequest,
32+
\Magento\Framework\Stdlib\StringUtils $converter
33+
) {
3434
$this->_request = $httpRequest;
3535
$this->_converter = $converter;
3636
}

0 commit comments

Comments
 (0)