original_string: public function percent($value, $current_pixels)
      {
          if (strpos($value, '%') !== false) {
              $value = str_replace('%', '', $value) * 0.01 * $current_pixels;
          }
  
          return $value;
      }
code: public function percent($value, $current_pixels)
      {
          if (strpos($value, '%') !== false) {
              $value = str_replace('%', '', $value) * 0.01 * $current_pixels;
          }
  
          return $value;
      }
code_tokens: public function percent ( $ value , $ current_pixels ) { if ( strpos ( $ value , '%' ) !== false ) { $ value = str_replace ( '%' , '' , $ value ) * 0.01 * $ current_pixels ; } return $ value ; }
docstring: Accept a percentage and return it in pixels.
  
  @param  string $value
  @param  int $current_pixels
  @return mixed
docstring_tokens: Accept a percentage and return it in pixels .