@@ 508-528 (lines=21) @@ | ||
505 | continue; |
|
506 | } |
|
507 | } elseif (substr_count($value, "ad:") > 0) { |
|
508 | if (substr_count($value, ',') > 0) { |
|
509 | $ranges = explode(',', trim(str_replace("ad:", "", $value))); |
|
510 | $rangesData = []; |
|
511 | foreach ($ranges as $range) { |
|
512 | list($min, $max) = explode('-', $range); |
|
513 | $rangesData[] = [ |
|
514 | 'min' => $min, |
|
515 | 'max' => $max |
|
516 | ]; |
|
517 | } |
|
518 | $chunksByList['delete_added_ranges'] = $rangesData; |
|
519 | } else { |
|
520 | $range = trim(str_replace("sd:", "", $value)); |
|
521 | list($min, $max) = explode('-', $range); |
|
522 | $chunksByList['delete_added_ranges'] = [ |
|
523 | [ |
|
524 | 'min' => $min, |
|
525 | 'max' => $max |
|
526 | ] |
|
527 | ]; |
|
528 | } |
|
529 | } elseif (substr_count($value, "sd:") > 0) { |
|
530 | if (substr_count($value, ',') > 0) { |
|
531 | $ranges = explode(',', trim(str_replace("sd:", "", $value))); |
|
@@ 530-550 (lines=21) @@ | ||
527 | ]; |
|
528 | } |
|
529 | } elseif (substr_count($value, "sd:") > 0) { |
|
530 | if (substr_count($value, ',') > 0) { |
|
531 | $ranges = explode(',', trim(str_replace("sd:", "", $value))); |
|
532 | $rangesData = []; |
|
533 | foreach ($ranges as $range) { |
|
534 | list($min, $max) = explode('-', $range); |
|
535 | $rangesData[] = [ |
|
536 | 'min' => $min, |
|
537 | 'max' => $max |
|
538 | ]; |
|
539 | } |
|
540 | $chunksByList['delete_removed_ranges'] = $rangesData; |
|
541 | } else { |
|
542 | $range = trim(str_replace("sd:", "", $value)); |
|
543 | list($min, $max) = explode('-', $range); |
|
544 | $chunksByList['delete_removed_ranges'] = [ |
|
545 | [ |
|
546 | 'min' => $min, |
|
547 | 'max' => $max |
|
548 | ] |
|
549 | ]; |
|
550 | } |
|
551 | } |
|
552 | } |
|
553 |