Completed
Branch mediarss-wip (a2a809)
by Éloi
01:26
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   +2 added lines patch added patch discarded remove patch
@@ -398,6 +398,7 @@  discard block
 block discarded – undo
398 398
 
399 399
     /**
400 400
      * @param  string|null currency
401
+     * @param string|null $currency
401 402
      * @return MediaPrice
402 403
      */
403 404
     public function setCurrency(? string $currency) : MediaPrice
@@ -461,6 +462,7 @@  discard block
 block discarded – undo
461 462
 
462 463
     /**
463 464
      * @param  string|null url
465
+     * @param string|null $url
464 466
      * @return MediaSubtitle
465 467
      */
466 468
     public function setUrl(? string $url) : MediaSubtitle
Please login to merge, or discard this patch.