Lines Matching refs:part
122 foreach ($parts as $part) {
123 … $matches[$part] = isset($matches[$part]) && $matches[$part] ? (int)$matches[$part] : 0;
181 foreach ($parts as $part) {
182 if (isset($matches[$part]) && $matches[$part]) {
183 $newDur .= ' ' . $matches[$part] . ' ' . $part . 's';
339 foreach ($parts as $part) {
341 if (empty($matches[$part])) {
342 $result[$part] = null;
343 } elseif ($matches[$part] === '-' || $matches[$part] === '--') {
344 $result[$part] = null;
346 $result[$part] = $matches[$part];
442 foreach ($parts as $part) {
444 if (empty($matches[$part])) {
445 $result[$part] = null;
446 } elseif ($matches[$part] === '-') {
447 $result[$part] = null;
449 $result[$part] = $matches[$part];
564 foreach ($parts as $part => &$value) {
565 if (!empty($matches[$part])) {
566 $value = $matches[$part];