Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/chart/PhabricatorHigherOrderChartFunction.php
<?php | <?php | ||||
abstract class PhabricatorHigherOrderChartFunction | abstract class PhabricatorHigherOrderChartFunction | ||||
extends PhabricatorChartFunction { | extends PhabricatorChartFunction { | ||||
public function getDomain() { | public function getDomain() { | ||||
$minv = array(); | $minv = array(); | ||||
$maxv = array(); | $maxv = array(); | ||||
foreach ($this->getFunctionArguments() as $function) { | foreach ($this->getFunctionArguments() as $function) { | ||||
$domain = $function->getDomain(); | $domain = $function->getDomain(); | ||||
if ($domain !== null) { | if ($domain !== null) { | ||||
list($min, $max) = $domain; | list($min, $max) = $domain; | ||||
if ($min !== null) { | |||||
$minv[] = $min; | $minv[] = $min; | ||||
} | |||||
if ($max !== null) { | |||||
$maxv[] = $max; | $maxv[] = $max; | ||||
} | } | ||||
} | } | ||||
} | |||||
if (!$minv && !$maxv) { | if (!$minv && !$maxv) { | ||||
return null; | return null; | ||||
} | } | ||||
$min = null; | $min = null; | ||||
$max = null; | $max = null; | ||||
Show All 32 Lines |