original_string: protected function getReadableMemory($size, $percision = 2)
      {
          $unitOptions = array('b', 'k', 'M', 'G');
  
          $base = log($size, 1024);
  
          $memory = round(pow(1024, $base - floor($base)), $percision);
          $unit = $unitOptions[floor($base)];
          return "{$memory} {$unit}";
      }
code: protected function getReadableMemory($size, $percision = 2)
      {
          $unitOptions = array('b', 'k', 'M', 'G');
  
          $base = log($size, 1024);
  
          $memory = round(pow(1024, $base - floor($base)), $percision);
          $unit = $unitOptions[floor($base)];
          return "{$memory} {$unit}";
      }
code_tokens: protected function getReadableMemory ( $ size , $ percision = 2 ) { $ unitOptions = array ( 'b' , 'k' , 'M' , 'G' ) ; $ base = log ( $ size , 1024 ) ; $ memory = round ( pow ( 1024 , $ base - floor ( $ base ) ) , $ percision ) ; $ unit = $ unitOptions [ floor ( $ base ) ] ; return "{$memory} {$unit}" ; }
docstring: Formatter for human-readable memory
  Only handles time up to a few gigs gracefully
  
  @param double  $size
  @param integer $percision
docstring_tokens: Formatter for human - readable memory Only handles time up to a few gigs gracefully