Skip to content

Commit 87b626e

Browse files
committed
Update Integration Test Memory helper coding style
1 parent 6aa6bd4 commit 87b626e

File tree

1 file changed

+6
-3
lines changed
  • dev/tests/integration/framework/Magento/TestFramework/Helper

1 file changed

+6
-3
lines changed

dev/tests/integration/framework/Magento/TestFramework/Helper/Memory.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ protected function _getWinProcessMemoryUsage($pid)
103103
* @return int
104104
* @throws \InvalidArgumentException
105105
* @throws \OutOfBoundsException
106-
* phpcs:ignore Magento2.Functions.StaticFunction
106+
* phpcs:disable Magento2.Functions.StaticFunction
107107
*/
108108
public static function convertToBytes($number)
109109
{
110+
// phpcs:enable Magento2.Functions.StaticFunction
110111
if (!preg_match('/^(.*\d)\h*(\D)$/', $number, $matches)) {
111112
throw new \InvalidArgumentException("Number format '{$number}' is not recognized.");
112113
}
@@ -139,10 +140,11 @@ public static function convertToBytes($number)
139140
* @param string $number
140141
* @return string
141142
* @throws \InvalidArgumentException
142-
* phpcs:ignore Magento2.Functions.StaticFunction
143+
* phpcs:disable Magento2.Functions.StaticFunction
143144
*/
144145
protected static function _convertToNumber($number)
145146
{
147+
// phpcs:enable Magento2.Functions.StaticFunction
146148
preg_match_all('/(\D+)/', $number, $matches);
147149
if (count(array_unique($matches[0])) > 1) {
148150
throw new \InvalidArgumentException(
@@ -157,10 +159,11 @@ protected static function _convertToNumber($number)
157159
*
158160
* @link http://php.net/manual/en/function.php-uname.php
159161
* @return boolean
160-
* phpcs:ignore Magento2.Functions.StaticFunction
162+
* phpcs:disable Magento2.Functions.StaticFunction
161163
*/
162164
public static function isMacOs()
163165
{
166+
// phpcs:enable Magento2.Functions.StaticFunction
164167
return strtoupper(PHP_OS) === 'DARWIN';
165168
}
166169
}

0 commit comments

Comments
 (0)