class BytesFormatter (View source)

The BytesFormatter class is responsible for converting a bytes integer to a more human readable string.

This class is used to format the memory used for display purposes when executing migrations.

Methods

static 
formatBytes(int $size, int $precision = 2)

No description

Details

static formatBytes(int $size, int $precision = 2)

Parameters

int $size
int $precision