Completed
Pull Request — master (#257)
by
unknown
01:43
created
src/FeedIo/Feed/Item/MediaInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,6 @@
 block discarded – undo
243 243
     public function getRights() : ?int;
244 244
 
245 245
     /**
246
-     * @param  int $rights
247 246
      * @return MediaInterface
248 247
      */
249 248
     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   -3 removed lines patch added patch discarded remove patch
@@ -10,19 +10,16 @@
 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;
22 20
 use FeedIo\Feed\Item\MediaCreditScheme;
23 21
 use FeedIo\Feed\Item\MediaPriceType;
24 22
 use FeedIo\Feed\Item\MediaTextType;
25
-use FeedIo\Feed\Item\MediaRestrictionRelationship;
26 23
 use FeedIo\Feed\Item\MediaRestrictionType;
27 24
 use FeedIo\Feed\Item\MediaRightsStatus;
28 25
 use FeedIo\Feed\Item\MediaStatus;
Please login to merge, or discard this patch.
src/FeedIo/Feed/Item/Media.php 1 patch
Doc Comments   +38 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
18 18
     const Document = 3;
19 19
     const Executable = 4;
20 20
 
21
+    /**
22
+     * @param string|null $value
23
+     */
21 24
     public static function fromXML(?string $value) : ?int
22 25
     {
23 26
         switch (strtolower($value ?: "")) {
@@ -43,6 +46,9 @@  discard block
 block discarded – undo
43 46
     const Full = 1;
44 47
     const NonStop = 2;
45 48
 
49
+    /**
50
+     * @param string|null $value
51
+     */
46 52
     public static function fromXML(?string $value) : ?int
47 53
     {
48 54
         switch (strtolower($value ?: "")) {
@@ -63,6 +69,9 @@  discard block
 block discarded – undo
63 69
     const Plain = 0;
64 70
     const HTML = 1;
65 71
 
72
+    /**
73
+     * @param string|null $value
74
+     */
66 75
     public static function fromXML(?string $value) : ?int
67 76
     {
68 77
         switch (strtolower($value ?: "")) {
@@ -81,6 +90,9 @@  discard block
 block discarded – undo
81 90
     const Plain = 0;
82 91
     const HTML = 1;
83 92
 
93
+    /**
94
+     * @param string|null $value
95
+     */
84 96
     public static function fromXML(?string $value) : ?int
85 97
     {
86 98
         switch (strtolower($value ?: "")) {
@@ -99,6 +111,9 @@  discard block
 block discarded – undo
99 111
     const MD5 = 0;
100 112
     const SHA1 = 1;
101 113
 
114
+    /**
115
+     * @param string|null $value
116
+     */
102 117
     public static function fromXML(?string $value) : ?int
103 118
     {
104 119
         switch (strtolower($value ?: "")) {
@@ -117,6 +132,9 @@  discard block
 block discarded – undo
117 132
     const URN_EBU = 0;
118 133
     const URN_YVS = 1;
119 134
 
135
+    /**
136
+     * @param string|null $value
137
+     */
120 138
     public static function fromXML(?string $value) : ?int
121 139
     {
122 140
         switch (strtolower($value ?: "")) {
@@ -135,6 +153,9 @@  discard block
 block discarded – undo
135 153
     const Plain = 0;
136 154
     const HTML = 1;
137 155
 
156
+    /**
157
+     * @param string|null $value
158
+     */
138 159
     public static function fromXML(?string $value) : ?int
139 160
     {
140 161
         switch (strtolower($value ?: "")) {
@@ -172,6 +193,9 @@  discard block
 block discarded – undo
172 193
     const URI = 1;
173 194
     const Sharing = 2;
174 195
 
196
+    /**
197
+     * @param string|null $value
198
+     */
175 199
     public static function fromXML(?string $value) : ?int
176 200
     {
177 201
         switch (strtolower($value ?: "")) {
@@ -193,6 +217,9 @@  discard block
 block discarded – undo
193 217
     const Blocked = 1;
194 218
     const Deleted = 2;
195 219
 
220
+    /**
221
+     * @param string|null $value
222
+     */
196 223
     public static function fromXML(?string $value) : ?int
197 224
     {
198 225
         switch (strtolower($value ?: "")) {
@@ -216,6 +243,9 @@  discard block
 block discarded – undo
216 243
     const Package = 3;
217 244
     const Subscription = 4;
218 245
 
246
+    /**
247
+     * @param string|null $value
248
+     */
219 249
     public static function fromXML(?string $value) : ?int
220 250
     {
221 251
         switch (strtolower($value ?: "")) {
@@ -240,6 +270,9 @@  discard block
 block discarded – undo
240 270
     const UserCreated = 0;
241 271
     const Official = 1;
242 272
 
273
+    /**
274
+     * @param string|null $value
275
+     */
243 276
     public static function fromXML(?string $value) : ?int
244 277
     {
245 278
         switch (strtolower($value ?: "")) {
@@ -474,6 +507,7 @@  discard block
 block discarded – undo
474 507
 
475 508
     /**
476 509
      * @param  string currency
510
+     * @param string|null $currency
477 511
      * @return MediaPrice
478 512
      */
479 513
     public function setCurrency(? string $currency) : MediaPrice
@@ -537,6 +571,7 @@  discard block
 block discarded – undo
537 571
 
538 572
     /**
539 573
      * @param  string url
574
+     * @param string|null $url
540 575
      * @return MediaSubtitle
541 576
      */
542 577
     public function setUrl(? string $url) : MediaSubtitle
@@ -1164,7 +1199,7 @@  discard block
 block discarded – undo
1164 1199
     }
1165 1200
 
1166 1201
     /**
1167
-     * @return float
1202
+     * @return integer
1168 1203
      */
1169 1204
     public function getContentSamplingrate() : ?float
1170 1205
     {
@@ -1316,7 +1351,7 @@  discard block
 block discarded – undo
1316 1351
     }
1317 1352
 
1318 1353
     /**
1319
-     * @return int
1354
+     * @return string
1320 1355
      */
1321 1356
     public function getRights() : ?int
1322 1357
     {
@@ -1567,7 +1602,7 @@  discard block
 block discarded – undo
1567 1602
     }
1568 1603
 
1569 1604
     /**
1570
-     * @return int
1605
+     * @return string
1571 1606
      */
1572 1607
     public function getHashAlgo() : ?int
1573 1608
     {
Please login to merge, or discard this patch.