original_string: protected function toBase($value, array $unit)
      {
          if (is_callable($unit['conversion'])) {
              return $unit['conversion']($value, false);
          }
  
          return $value * $unit['conversion'];
      }
code: protected function toBase($value, array $unit)
      {
          if (is_callable($unit['conversion'])) {
              return $unit['conversion']($value, false);
          }
  
          return $value * $unit['conversion'];
      }
code_tokens: protected function toBase ( $ value , array $ unit ) { if ( is_callable ( $ unit [ 'conversion' ] ) ) { return $ unit [ 'conversion' ] ( $ value , false ) ; } return $ value * $ unit [ 'conversion' ] ; }
docstring: Convert from value to its base unit
  @param number $value
  @param array $unit
  @return number
docstring_tokens: Convert from value to its base unit