| @@ -156,12 +156,9 @@ | ||
| 156 | 156 | * @param int $size_in_bytes The size in bytes. |
| 157 | 157 | * |
| 158 | 158 | * @return float The size in megabytes. |
| 159 | 159 | */ |
| 160 | - private function convert_to_megabytes( $size_in_bytes ) { | |
| 161 | - if ( empty( $size_in_bytes ) ) { | |
| 162 | - return 0; | |
| 163 | - } | |
| 160 | + private function convert_to_megabytes( int $size_in_bytes ) { | |
| 164 | 161 | $unit_mb = pow( 1024, 2 ); |
| 165 | 162 | |
| 166 | 163 | return round( $size_in_bytes / $unit_mb, 2 ); |
| 167 | 164 | } |