Lines Matching refs:part
119 foreach ($parts as $part) {
120 … $matches[$part] = isset($matches[$part]) && $matches[$part] ? (int) $matches[$part] : 0;
175 foreach ($parts as $part) {
176 if (isset($matches[$part]) && $matches[$part]) {
177 $newDur .= ' '.$matches[$part].' '.$part.'s';
329 foreach ($parts as $part) {
330 if (empty($matches[$part])) {
331 $result[$part] = null;
332 } elseif ('-' === $matches[$part] || '--' === $matches[$part]) {
333 $result[$part] = null;
335 $result[$part] = $matches[$part];
426 foreach ($parts as $part) {
427 if (empty($matches[$part])) {
428 $result[$part] = null;
429 } elseif ('-' === $matches[$part]) {
430 $result[$part] = null;
432 $result[$part] = $matches[$part];
545 foreach ($parts as $part => &$value) {
546 if (!empty($matches[$part])) {
547 $value = $matches[$part];