Completed
Branch mediarss-wip (08f167)
by Éloi
01:28
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/Media.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@  discard block
 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;
@@ -395,6 +398,7 @@  discard block
 block discarded – undo
395 398
 
396 399
     /**
397 400
      * @param  string currency
401
+     * @param string|null $currency
398 402
      * @return MediaPrice
399 403
      */
400 404
     public function setCurrency(? string $currency) : MediaPrice
@@ -458,6 +462,7 @@  discard block
 block discarded – undo
458 462
 
459 463
     /**
460 464
      * @param  string url
465
+     * @param string|null $url
461 466
      * @return MediaSubtitle
462 467
      */
463 468
     public function setUrl(? string $url) : MediaSubtitle
@@ -1080,7 +1085,7 @@  discard block
 block discarded – undo
1080 1085
     }
1081 1086
 
1082 1087
     /**
1083
-     * @return float
1088
+     * @return integer
1084 1089
      */
1085 1090
     public function getContentSamplingrate() : ?float
1086 1091
     {
@@ -1213,7 +1218,7 @@  discard block
 block discarded – undo
1213 1218
     }
1214 1219
 
1215 1220
     /**
1216
-     * @return int
1221
+     * @return string
1217 1222
      */
1218 1223
     public function getRights() : ?int
1219 1224
     {
@@ -1464,7 +1469,7 @@  discard block
 block discarded – undo
1464 1469
     }
1465 1470
 
1466 1471
     /**
1467
-     * @return int
1472
+     * @return string
1468 1473
      */
1469 1474
     public function getHashAlgo() : ?int
1470 1475
     {
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.