original_string: protected function getComponent(float $value, float $scale): float
      {
          return ($scale < 0) ? ((1 - $value) * -$scale) : ($value * $scale);
      }
code: protected function getComponent(float $value, float $scale): float
      {
          return ($scale < 0) ? ((1 - $value) * -$scale) : ($value * $scale);
      }
code_tokens: protected function getComponent ( float $ value , float $ scale ) : float { return ( $ scale < 0 ) ? ( ( 1 - $ value ) * - $ scale ) : ( $ value * $ scale ) ; }
docstring: Calculates the value to get a component.
  @param float $value
  @param float $scale
  @return float
docstring_tokens: Calculates the value to get a component .