@@ -103,10 +103,11 @@ protected function _getWinProcessMemoryUsage($pid)
103
103
* @return int
104
104
* @throws \InvalidArgumentException
105
105
* @throws \OutOfBoundsException
106
- * phpcs:ignore Magento2.Functions.StaticFunction
106
+ * phpcs:disable Magento2.Functions.StaticFunction
107
107
*/
108
108
public static function convertToBytes ($ number )
109
109
{
110
+ // phpcs:enable Magento2.Functions.StaticFunction
110
111
if (!preg_match ('/^(.*\d)\h*(\D)$/ ' , $ number , $ matches )) {
111
112
throw new \InvalidArgumentException ("Number format ' {$ number }' is not recognized. " );
112
113
}
@@ -139,10 +140,11 @@ public static function convertToBytes($number)
139
140
* @param string $number
140
141
* @return string
141
142
* @throws \InvalidArgumentException
142
- * phpcs:ignore Magento2.Functions.StaticFunction
143
+ * phpcs:disable Magento2.Functions.StaticFunction
143
144
*/
144
145
protected static function _convertToNumber ($ number )
145
146
{
147
+ // phpcs:enable Magento2.Functions.StaticFunction
146
148
preg_match_all ('/(\D+)/ ' , $ number , $ matches );
147
149
if (count (array_unique ($ matches [0 ])) > 1 ) {
148
150
throw new \InvalidArgumentException (
@@ -157,10 +159,11 @@ protected static function _convertToNumber($number)
157
159
*
158
160
* @link http://php.net/manual/en/function.php-uname.php
159
161
* @return boolean
160
- * phpcs:ignore Magento2.Functions.StaticFunction
162
+ * phpcs:disable Magento2.Functions.StaticFunction
161
163
*/
162
164
public static function isMacOs ()
163
165
{
166
+ // phpcs:enable Magento2.Functions.StaticFunction
164
167
return strtoupper (PHP_OS ) === 'DARWIN ' ;
165
168
}
166
169
}
0 commit comments