Completed
Branch mediarss-wip (baed3e)
by Éloi
01:55
created
src/FeedIo/Adapter/Guzzle/Response.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 
74 74
     /**
75 75
      * @param  string       $name
76
-     * @return iterable
76
+     * @return string[]
77 77
      */
78 78
     public function getHeader(string $name) : iterable
79 79
     {
Please login to merge, or discard this patch.
src/FeedIo/Feed/Item.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @return iterable
50
+     * @return \ArrayIterator
51 51
      */
52 52
     public function getMedias() : iterable
53 53
     {
Please login to merge, or discard this patch.
src/FeedIo/Feed/Node.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     /**
74 74
      * returns node's categories
75 75
      *
76
-     * @return iterable
76
+     * @return \ArrayIterator
77 77
      */
78 78
     public function getCategories() : iterable
79 79
     {
Please login to merge, or discard this patch.
src/FeedIo/Rule/Media.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     /**
106
-     * @param \NodeInterface $node
106
+     * @param NodeInterface $node
107 107
      * @param \DomElement $element
108 108
      * @return \MediaInterface
109 109
      */
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     }
118 118
 
119 119
     /**
120
-     * @param \NodeInterface $node
120
+     * @param NodeInterface $node
121 121
      * @param \DomElement $element
122 122
      * @return \MediaInterface
123 123
      */
@@ -165,6 +165,9 @@  discard block
 block discarded – undo
165 165
         $node->addMedia($media);
166 166
     }
167 167
 
168
+    /**
169
+     * @param \DOMElement $element
170
+     */
168 171
     protected function handleMediaContent(?\DOMElement $element, MediaInterface $media) : void
169 172
     {
170 173
         $media->setUrl($this->getAttributeValue($element, "url"));
Please login to merge, or discard this patch.
src/FeedIo/Command/DiscoverCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Symfony\Component\Console\Command\Command;
15 15
 use Symfony\Component\Console\Input\InputArgument;
16 16
 use Symfony\Component\Console\Input\InputInterface;
17
-use Symfony\Component\Console\Input\InputOption;
18 17
 use Symfony\Component\Console\Output\OutputInterface;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.
src/FeedIo/Feed/Item/Media.php 1 patch
Doc Comments   -8 removed lines patch added patch discarded remove patch
@@ -635,7 +635,6 @@  discard block
 block discarded – undo
635 635
     }
636 636
 
637 637
     /**
638
-     * @param  MediaEmbedInterface $hash
639 638
      * @return MediaInterface
640 639
      */
641 640
     public function setEmbed(MediaEmbedInterface $embed) : MediaInterface
@@ -654,7 +653,6 @@  discard block
 block discarded – undo
654 653
     }
655 654
 
656 655
     /**
657
-     * @param  MediaLicenseInterface $hash
658 656
      * @return MediaInterface
659 657
      */
660 658
     public function setLicense(MediaLicenseInterface $license) : MediaInterface
@@ -673,7 +671,6 @@  discard block
 block discarded – undo
673 671
     }
674 672
 
675 673
     /**
676
-     * @param  MediaCommunityInterface $hash
677 674
      * @return MediaInterface
678 675
      */
679 676
     public function setCommunity(MediaCommunityInterface $community) : MediaInterface
@@ -692,7 +689,6 @@  discard block
 block discarded – undo
692 689
     }
693 690
 
694 691
     /**
695
-     * @param  MediaRestrictionInterface $hash
696 692
      * @return MediaInterface
697 693
      */
698 694
     public function setRestriction(MediaRestrictionInterface $restriction) : MediaInterface
@@ -711,7 +707,6 @@  discard block
 block discarded – undo
711 707
     }
712 708
 
713 709
     /**
714
-     * @param  MediaRatingInterface $hash
715 710
      * @return MediaInterface
716 711
      */
717 712
     public function setRating(MediaRatingInterface $rating) : MediaInterface
@@ -730,7 +725,6 @@  discard block
 block discarded – undo
730 725
     }
731 726
 
732 727
     /**
733
-     * @param  MediaCopyrightInterface $hash
734 728
      * @return MediaInterface
735 729
      */
736 730
     public function setCopyright(MediaCopyrightInterface $copyright) : MediaInterface
@@ -749,7 +743,6 @@  discard block
 block discarded – undo
749 743
     }
750 744
 
751 745
     /**
752
-     * @param  MediaStatusInterface $hash
753 746
      * @return MediaInterface
754 747
      */
755 748
     public function setStatus(MediaStatusInterface $status) : MediaInterface
@@ -768,7 +761,6 @@  discard block
 block discarded – undo
768 761
     }
769 762
 
770 763
     /**
771
-     * @param  MediaPeerLinkInterface $hash
772 764
      * @return MediaInterface
773 765
      */
774 766
     public function setPeerLink(MediaPeerLinkInterface $peerLink) : MediaInterface
Please login to merge, or discard this patch.
src/FeedIo/Feed/Item/MediaCategory.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @param  string $category
40 39
      * @return MediaCategoryInterface
41 40
      */
42 41
     public function setText(?string $text) : MediaCategoryInterface
Please login to merge, or discard this patch.
src/FeedIo/Feed/Item/MediaHash.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,6 @@
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-     * @param  string $hash
48 47
      * @return MediaHashInterface
49 48
      */
50 49
     public function setContent(?string $content) : MediaHashInterface
Please login to merge, or discard this patch.
src/FeedIo/Feed/Item/MediaHashInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
     public function getContent() : ?string;
19 19
 
20 20
     /**
21
-     * @param  string $hash
22 21
      * @return MediaHashInterface
23 22
      */
24 23
     public function setContent(?string $content) : MediaHashInterface;
Please login to merge, or discard this patch.