1 | <?php |
||
8 | abstract class AbstractVendor |
||
9 | { |
||
10 | /** |
||
11 | * @param SimpleXMLElement $feed |
||
12 | * |
||
13 | * @return array |
||
14 | */ |
||
15 | public function buildFeed(SimpleXMLElement $feed) |
||
32 | |||
33 | /** |
||
34 | * @param SimpleXMLElement|mixed $channel |
||
35 | * |
||
36 | * @return array |
||
37 | */ |
||
38 | protected function getEpisodes($channel) |
||
56 | |||
57 | /** |
||
58 | * @param SimpleXMLElement $value |
||
59 | * |
||
60 | * @return null|string |
||
61 | */ |
||
62 | protected function getAudioUrl($value) |
||
66 | |||
67 | /** |
||
68 | * @param SimpleXMLElement $value |
||
69 | * |
||
70 | * @return int |
||
71 | */ |
||
72 | protected function getEpisodeSize($value) |
||
76 | |||
77 | /** |
||
78 | * @param SimpleXMLElement $item |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | protected function getPublishedDate($item) |
||
89 | |||
90 | /** |
||
91 | * @param SimpleXMLElement|mixed $item |
||
92 | * @param string $path |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | protected function getValueByPath($item, $path) |
||
101 | |||
102 | /** |
||
103 | * @param SimpleXMLElement|mixed $item |
||
104 | * |
||
105 | * @return int |
||
106 | */ |
||
107 | protected function getEpisodeDuration($item) |
||
120 | |||
121 | /** |
||
122 | * @param SimpleXMLElement $item |
||
123 | * |
||
124 | * @param SimpleXMLElement $channel |
||
125 | * |
||
126 | * @return string |
||
127 | */ |
||
128 | protected function getEpisodeImage($item, $channel) |
||
134 | |||
135 | /** |
||
136 | * @param SimpleXMLElement|mixed $channel |
||
137 | * |
||
138 | * @return array |
||
139 | */ |
||
140 | protected function fetchCategories($channel) |
||
159 | } |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.