Lines Matching refs:Constants
6 use LesserPHP\Constants; alias
42 if ($a) return Constants::TRUE;
43 return Constants::FALSE;
61 if (($from_index = array_search($from, Constants::LENGTH_UNITS)) !== false) {
63 if (in_array($to, Constants::LENGTH_UNITS)) {
65 $to_index = array_search($to, Constants::LENGTH_UNITS);
66 $px = $value * Constants::LENGTH_BASES[$from_index];
67 $result = $px * (1 / Constants::LENGTH_BASES[$to_index]);
75 if (in_array($from, Constants::TIME_UNITS)) {
76 if (in_array($to, Constants::TIME_UNITS)) {
88 if (in_array($from, Constants::ANGLE_UNITS)) {