src/Chippyash/Math/Type/Traits/CheckRationalTypes.php
protected function checkRationalTypes(NumericTypeInterface $a, NumericTypeInterface $b)
    {
        $a1 = ($a instanceof RationalType ? $a : $a->asRational());
        $b1 = ($b instanceof RationalType ? $b : $b->asRational());

        return [$a1, $b1];
    }
protected function checkRationalTypes(NumericTypeInterface $a, NumericTypeInterface $b)
    {
        $a1 = ($a instanceof RationalType ? $a : $a->asRational());
        $b1 = ($b instanceof RationalType ? $b : $b->asRational());

        return [$a1, $b1];
    }
protected function checkRationalTypes ( NumericTypeInterface $ a , NumericTypeInterface $ b ) { $ a1 = ( $ a instanceof RationalType ? $ a : $ a -> asRational ( ) ) ; $ b1 = ( $ b instanceof RationalType ? $ b : $ b -> asRational ( ) ) ; return [ $ a1 , $ b1 ] ; }
Check for rational type, converting if necessary

@param  NumericTypeInterface $a
@param  NumericTypeInterface $b
@return array [RationalType, RationalType]
Check for rational type converting if necessary