Completed
Branch mediarss-wip (ce9795)
by Éloi
02:04
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/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
 class DiscoverCommand extends Command
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/Feed/Item/MediaConstants.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
 
13 13
 abstract class MediaConstant
14 14
 {
15
+    /**
16
+     * @param string|null $value
17
+     */
15 18
     public static function fromXML(?string $value) : ?int
16 19
     {
17 20
         return static::VALUES[$value ? strtolower($value) : $value] ?? null;
Please login to merge, or discard this patch.
src/FeedIo/Feed/Item/MediaInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,6 @@
 block discarded – undo
231 231
     public function getRights() : ?int;
232 232
 
233 233
     /**
234
-     * @param  int $rights
235 234
      * @return MediaInterface
236 235
      */
237 236
     public function setRights(int $rating) : MediaInterface;
Please login to merge, or discard this patch.
src/FeedIo/Rule/Media.php 2 patches
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.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,12 +10,10 @@
 block discarded – undo
10 10
 
11 11
 namespace FeedIo\Rule;
12 12
 
13
-use FeedIo\Feed\Item;
14 13
 use FeedIo\Feed\Item\MediaInterface;
15 14
 use FeedIo\Feed\ItemInterface;
16 15
 use FeedIo\Feed\Item\MediaContentMedium;
17 16
 use FeedIo\Feed\Item\MediaContentExpression;
18
-use FeedIo\Feed\Item\MediaSimpleRating;
19 17
 use FeedIo\Feed\Item\MediaDescriptionType;
20 18
 use FeedIo\Feed\Item\MediaTitleType;
21 19
 use FeedIo\Feed\Item\MediaHashAlgo;
Please login to merge, or discard this patch.
src/FeedIo/Feed/Item/Media.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -231,6 +231,7 @@  discard block
 block discarded – undo
231 231
 
232 232
     /**
233 233
      * @param  string currency
234
+     * @param string|null $currency
234 235
      * @return MediaPrice
235 236
      */
236 237
     public function setCurrency(? string $currency) : MediaPrice
@@ -294,6 +295,7 @@  discard block
 block discarded – undo
294 295
 
295 296
     /**
296 297
      * @param  string url
298
+     * @param string|null $url
297 299
      * @return MediaSubtitle
298 300
      */
299 301
     public function setUrl(? string $url) : MediaSubtitle
@@ -916,7 +918,7 @@  discard block
 block discarded – undo
916 918
     }
917 919
 
918 920
     /**
919
-     * @return float
921
+     * @return integer
920 922
      */
921 923
     public function getContentSamplingrate() : ?float
922 924
     {
@@ -1049,7 +1051,7 @@  discard block
 block discarded – undo
1049 1051
     }
1050 1052
 
1051 1053
     /**
1052
-     * @return int
1054
+     * @return string
1053 1055
      */
1054 1056
     public function getRights() : ?int
1055 1057
     {
@@ -1300,7 +1302,7 @@  discard block
 block discarded – undo
1300 1302
     }
1301 1303
 
1302 1304
     /**
1303
-     * @return int
1305
+     * @return string
1304 1306
      */
1305 1307
     public function getHashAlgo() : ?int
1306 1308
     {
Please login to merge, or discard this patch.