Changeset 47733 for trunk/src/wp-includes/SimplePie/Enclosure.php
- Timestamp:
- 05/01/2020 02:24:42 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/SimplePie/Enclosure.php
r22798 r47733 6 6 * Takes the hard work out of managing a complete RSS/Atom solution. 7 7 * 8 * Copyright (c) 2004-201 2, Ryan Parman, GeoffreySneddon, Ryan McCue, and contributors8 * Copyright (c) 2004-2016, Ryan Parman, Sam Sneddon, Ryan McCue, and contributors 9 9 * All rights reserved. 10 10 * … … 34 34 * 35 35 * @package SimplePie 36 * @version 1.3.1 37 * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue 36 * @copyright 2004-2016 Ryan Parman, Sam Sneddon, Ryan McCue 38 37 * @author Ryan Parman 39 * @author GeoffreySneddon38 * @author Sam Sneddon 40 39 * @author Ryan McCue 41 40 * @link http://simplepie.org/ SimplePie … … 284 283 return $this->bitrate; 285 284 } 286 else 287 { 288 return null; 289 } 285 286 return null; 290 287 } 291 288 … … 303 300 return $captions[$key]; 304 301 } 305 else 306 { 307 return null; 308 } 302 303 return null; 309 304 } 310 305 … … 320 315 return $this->captions; 321 316 } 322 else 323 { 324 return null; 325 } 317 318 return null; 326 319 } 327 320 … … 339 332 return $categories[$key]; 340 333 } 341 else 342 { 343 return null; 344 } 334 335 return null; 345 336 } 346 337 … … 356 347 return $this->categories; 357 348 } 358 else 359 { 360 return null; 361 } 349 350 return null; 362 351 } 363 352 … … 373 362 return $this->channels; 374 363 } 375 else 376 { 377 return null; 378 } 364 365 return null; 379 366 } 380 367 … … 390 377 return $this->copyright; 391 378 } 392 else 393 { 394 return null; 395 } 379 380 return null; 396 381 } 397 382 … … 409 394 return $credits[$key]; 410 395 } 411 else 412 { 413 return null; 414 } 396 397 return null; 415 398 } 416 399 … … 426 409 return $this->credits; 427 410 } 428 else 429 { 430 return null; 431 } 411 412 return null; 432 413 } 433 414 … … 443 424 return $this->description; 444 425 } 445 else 446 { 447 return null; 448 } 426 427 return null; 449 428 } 450 429 … … 452 431 * Get the duration of the enclosure 453 432 * 454 * @param string$convert Convert seconds into hh:mm:ss433 * @param bool $convert Convert seconds into hh:mm:ss 455 434 * @return string|int|null 'hh:mm:ss' string if `$convert` was specified, otherwise integer (or null if none found) 456 435 */ … … 464 443 return $time; 465 444 } 466 else 467 { 468 return $this->duration; 469 } 470 } 471 else 472 { 473 return null; 474 } 445 446 return $this->duration; 447 } 448 449 return null; 475 450 } 476 451 … … 486 461 return $this->expression; 487 462 } 488 else 489 { 490 return 'full'; 491 } 463 464 return 'full'; 492 465 } 493 466 … … 521 494 return $this->framerate; 522 495 } 523 else 524 { 525 return null; 526 } 496 497 return null; 527 498 } 528 499 … … 551 522 return $hashes[$key]; 552 523 } 553 else 554 { 555 return null; 556 } 524 525 return null; 557 526 } 558 527 … … 568 537 return $this->hashes; 569 538 } 570 else 571 { 572 return null; 573 } 539 540 return null; 574 541 } 575 542 … … 585 552 return $this->height; 586 553 } 587 else 588 { 589 return null; 590 } 554 555 return null; 591 556 } 592 557 … … 603 568 return $this->lang; 604 569 } 605 else 606 { 607 return null; 608 } 570 571 return null; 609 572 } 610 573 … … 622 585 return $keywords[$key]; 623 586 } 624 else 625 { 626 return null; 627 } 587 588 return null; 628 589 } 629 590 … … 639 600 return $this->keywords; 640 601 } 641 else 642 { 643 return null; 644 } 602 603 return null; 645 604 } 646 605 … … 656 615 return $this->length; 657 616 } 658 else 659 { 660 return null; 661 } 617 618 return null; 662 619 } 663 620 … … 673 630 return urldecode($this->link); 674 631 } 675 else 676 { 677 return null; 678 } 632 633 return null; 679 634 } 680 635 … … 691 646 return $this->medium; 692 647 } 693 else 694 { 695 return null; 696 } 648 649 return null; 697 650 } 698 651 … … 709 662 return $this->player; 710 663 } 711 else 712 { 713 return null; 714 } 664 665 return null; 715 666 } 716 667 … … 728 679 return $ratings[$key]; 729 680 } 730 else 731 { 732 return null; 733 } 681 682 return null; 734 683 } 735 684 … … 745 694 return $this->ratings; 746 695 } 747 else 748 { 749 return null; 750 } 696 697 return null; 751 698 } 752 699 … … 764 711 return $restrictions[$key]; 765 712 } 766 else 767 { 768 return null; 769 } 713 714 return null; 770 715 } 771 716 … … 781 726 return $this->restrictions; 782 727 } 783 else 784 { 785 return null; 786 } 728 729 return null; 787 730 } 788 731 … … 798 741 return $this->samplingrate; 799 742 } 800 else 801 { 802 return null; 803 } 743 744 return null; 804 745 } 805 746 … … 816 757 return round($length/1048576, 2); 817 758 } 818 else 819 { 820 return null; 821 } 759 760 return null; 822 761 } 823 762 … … 835 774 return $thumbnails[$key]; 836 775 } 837 else 838 { 839 return null; 840 } 776 777 return null; 841 778 } 842 779 … … 852 789 return $this->thumbnails; 853 790 } 854 else 855 { 856 return null; 857 } 791 792 return null; 858 793 } 859 794 … … 869 804 return $this->title; 870 805 } 871 else 872 { 873 return null; 874 } 806 807 return null; 875 808 } 876 809 … … 887 820 return $this->type; 888 821 } 889 else 890 { 891 return null; 892 } 822 823 return null; 893 824 } 894 825 … … 904 835 return $this->width; 905 836 } 906 else 907 { 908 return null; 909 } 837 838 return null; 910 839 } 911 840 … … 943 872 * numeric pixel value (such as `360`) or `auto`. Defaults to `auto`, 944 873 * and it is recommended that you use this default. 945 * - `loop` (boolean): Do you want the media to loop when it s done?874 * - `loop` (boolean): Do you want the media to loop when it's done? 946 875 * Defaults to `false`. 947 876 * - `mediaplayer` (string): The location of the included … … 1367 1296 return 'mp3'; 1368 1297 } 1369 else 1370 { 1371 return null; 1372 } 1373 } 1374 else 1375 { 1376 return $type; 1377 } 1298 1299 return null; 1300 } 1301 1302 return $type; 1378 1303 } 1379 1304 } 1380
Note: See TracChangeset
for help on using the changeset viewer.