src/AbstractUpload.php
private static function parseIniSize($sizeStr) {
		$sizeStr = \trim($sizeStr);

		$unitPrefix = \strtoupper(
			\substr($sizeStr, -1)
		);

		$sizeInt = (int) $sizeStr;

		switch ($unitPrefix) {
			case 'K':
				$sizeInt *= 1024;
				break;
			case 'M':
				$sizeInt *= 1024 * 1024;
				break;
			case 'G':
				$sizeInt *= 1024 * 1024 * 1024;
				break;
		}

		return $sizeInt;
	}
private static function parseIniSize($sizeStr) {
		$sizeStr = \trim($sizeStr);

		$unitPrefix = \strtoupper(
			\substr($sizeStr, -1)
		);

		$sizeInt = (int) $sizeStr;

		switch ($unitPrefix) {
			case 'K':
				$sizeInt *= 1024;
				break;
			case 'M':
				$sizeInt *= 1024 * 1024;
				break;
			case 'G':
				$sizeInt *= 1024 * 1024 * 1024;
				break;
		}

		return $sizeInt;
	}
private static function parseIniSize ( $ sizeStr ) { $ sizeStr = \ trim ( $ sizeStr ) ; $ unitPrefix = \ strtoupper ( \ substr ( $ sizeStr , - 1 ) ) ; $ sizeInt = ( int ) $ sizeStr ; switch ( $ unitPrefix ) { case 'K' : $ sizeInt *= 1024 ; break ; case 'M' : $ sizeInt *= 1024 * 1024 ; break ; case 'G' : $ sizeInt *= 1024 * 1024 * 1024 ; break ; } return $ sizeInt ; }
Parses a memory or storage size as found in the `php.ini` configuration file

@param string $sizeStr the representation found in `php.ini`
@return int the effective memory or storage size
Parses a memory or storage size as found in the php . ini configuration file