examples/AdWords/v201809/Optimization/EstimateKeywordTraffic.php
private static function calculateMean($min, $max)
    {
        if ($min === null || $max === null) {
            return null;
        }

        return ($min + $max) / 2;
    }
private static function calculateMean($min, $max)
    {
        if ($min === null || $max === null) {
            return null;
        }

        return ($min + $max) / 2;
    }
private static function calculateMean ( $ min , $ max ) { if ( $ min === null || $ max === null ) { return null ; } return ( $ min + $ max ) / 2 ; }
Returns the mean of the two numbers if neither is null, else returns null.
Returns the mean of the two numbers if neither is null else returns null .