Lines Matching refs:null

42     protected $timezone = null;
72 public function setDateFormat($format = null, $dateIntervalFormat = null)
74 if (null !== $format) {
78 if (null !== $dateIntervalFormat) {
110 if (null === $this->timezone) {
238 new TwigTest('even', null, ['node_class' => '\Twig\Node\Expression\Test\EvenTest']),
239 new TwigTest('odd', null, ['node_class' => '\Twig\Node\Expression\Test\OddTest']),
240 … new TwigTest('defined', null, ['node_class' => '\Twig\Node\Expression\Test\DefinedTest']),
241 …new TwigTest('sameas', null, ['node_class' => '\Twig\Node\Expression\Test\SameasTest', 'deprecated…
242 … new TwigTest('same as', null, ['node_class' => '\Twig\Node\Expression\Test\SameasTest']),
243 new TwigTest('none', null, ['node_class' => '\Twig\Node\Expression\Test\NullTest']),
244 new TwigTest('null', null, ['node_class' => '\Twig\Node\Expression\Test\NullTest']),
245 …new TwigTest('divisibleby', null, ['node_class' => '\Twig\Node\Expression\Test\DivisiblebyTest', '…
246 …new TwigTest('divisible by', null, ['node_class' => '\Twig\Node\Expression\Test\DivisiblebyTest']),
247 … new TwigTest('constant', null, ['node_class' => '\Twig\Node\Expression\Test\ConstantTest']),
342 function twig_random(Environment $env, $values = null, $max = null)
344 if (null === $values) {
345 return null === $max ? mt_rand() : mt_rand(0, $max);
349 if (null === $max) {
369 if (null !== $charset = $env->getCharset()) {
412 function twig_date_format_filter(Environment $env, $date, $format = null, $timezone = null)
414 if (null === $format) {
444 return null === $resultDate ? $date : $resultDate;
459 function twig_date_converter(Environment $env, $date = null, $timezone = null)
463 if (null === $timezone) {
484 if (null === $date || 'now' === $date) {
511 function twig_replace_filter($str, $from, $to = null)
560 …_format_filter(Environment $env, $number, $decimal = null, $decimalPoint = null, $thousandSep = nu…
563 if (null === $decimal) {
567 if (null === $decimalPoint) {
571 if (null === $thousandSep) {
661 function twig_slice(Environment $env, $item, $start, $length = null, $preserveKeys = false)
670 …return iterator_to_array(new \LimitIterator($item, $start, null === $length ? -1 : $length), $pres…
685 if (\function_exists('mb_get_info') && null !== $charset = $env->getCharset()) {
686 …return (string) mb_substr($item, $start, null === $length ? mb_strlen($item, $charset) - $start : …
689 return (string) (null === $length ? substr($item, $start) : substr($item, $start, $length));
740 function twig_join_filter($value, $glue = '', $and = null)
748 if (null === $and || $and === $glue) {
780 function twig_split_filter(Environment $env, $value, $delimiter, $limit = null)
783 return null === $limit ? explode($delimiter, $value) : explode($delimiter, $value, $limit);
786 if (!\function_exists('mb_get_info') || null === $charset = $env->getCharset()) {
787 return str_split($value, null === $limit ? 1 : $limit);
886 if (null !== $charset = $env->getCharset()) {
964 function twig_trim_filter($string, $characterMask = null, $side = 'both')
966 if (null === $characterMask) {
1002 function twig_escape_filter(Environment $env, $string, $strategy = 'html', $charset = null, $autoes…
1020 if (null === $charset) {
1123 if (null === $escapers) {
1296 if (null === $thing) {
1332 if (null !== $charset = $env->getCharset()) {
1348 if (null !== $charset = $env->getCharset()) {
1364 if (null !== $charset = $env->getCharset()) {
1380 if (null !== $charset = $env->getCharset()) {
1398 if (null === $thing) {
1504 return '' === $value || false === $value || null === $value || [] === $value;
1539 $sandbox = null;
1615 function twig_constant($constant, $object = null)
1617 if (null !== $object) {
1632 function twig_constant_is_defined($constant, $object = null)
1634 if (null !== $object) {
1650 function twig_array_batch($items, $size, $fill = null, $preserveKeys = true)
1656 if (null !== $fill && $result) {