original_string: public function increaseMemoryLimit($additionalKb)
      {
          $limit = ini_get('memory_limit');
          if (!strlen($limit) || $limit === '-1') {
              return;
          }
          $limit = trim($limit);
          $units = strtoupper(substr($limit, -1));
          $current = (int)substr($limit, 0, strlen($limit) - 1);
          if ($units === 'M') {
              $current *= 1024;
              $units = 'K';
          }
          if ($units === 'G') {
              $current = $current * 1024 * 1024;
              $units = 'K';
          }
  
          if ($units === 'K') {
              ini_set('memory_limit', ceil($current + $additionalKb) . 'K');
          }
      }
code: public function increaseMemoryLimit($additionalKb)
      {
          $limit = ini_get('memory_limit');
          if (!strlen($limit) || $limit === '-1') {
              return;
          }
          $limit = trim($limit);
          $units = strtoupper(substr($limit, -1));
          $current = (int)substr($limit, 0, strlen($limit) - 1);
          if ($units === 'M') {
              $current *= 1024;
              $units = 'K';
          }
          if ($units === 'G') {
              $current = $current * 1024 * 1024;
              $units = 'K';
          }
  
          if ($units === 'K') {
              ini_set('memory_limit', ceil($current + $additionalKb) . 'K');
          }
      }
code_tokens: public function increaseMemoryLimit ( $ additionalKb ) { $ limit = ini_get ( 'memory_limit' ) ; if ( ! strlen ( $ limit ) || $ limit === '-1' ) { return ; } $ limit = trim ( $ limit ) ; $ units = strtoupper ( substr ( $ limit , - 1 ) ) ; $ current = ( int ) substr ( $ limit , 0 , strlen ( $ limit ) - 1 ) ; if ( $ units === 'M' ) { $ current *= 1024 ; $ units = 'K' ; } if ( $ units === 'G' ) { $ current = $ current * 1024 * 1024 ; $ units = 'K' ; } if ( $ units === 'K' ) { ini_set ( 'memory_limit' , ceil ( $ current + $ additionalKb ) . 'K' ) ; } }
docstring: Increases the PHP "memory_limit" ini setting by the specified amount
  in kilobytes
  
  @param int $additionalKb Number in kilobytes
  @return void
docstring_tokens: Increases the PHP memory_limit ini setting by the specified amount in kilobytes