1 | <?php |
||
40 | class MylinksThumbalizr implements MylinksThumbPlugin |
||
41 | { |
||
42 | private $image_width = 0; |
||
43 | private $site_url = null; |
||
44 | private $key = null; |
||
45 | private $attribution = "<a href=\"http://www.thumbalizr.com\" target=\"_blank\" title=\"Thumbnail Screenshots by Thumbalizr\">Thumbnail Screenshots by Thumbalizr</a>"; |
||
46 | private $provider_url = 'http://api.thumbalizr.com'; |
||
47 | private $provider_name = 'Thumbalizr'; |
||
48 | |||
49 | /** |
||
50 | * MylinksThumbalizr constructor. |
||
51 | */ |
||
52 | public function __construct() |
||
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getProviderUrl() |
||
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | public function getProviderName() |
||
85 | |||
86 | /** |
||
87 | * @param $sz |
||
88 | * @return mixed|void |
||
89 | */ |
||
90 | public function setShotSize($sz) |
||
100 | |||
101 | /** |
||
102 | * @return array |
||
103 | */ |
||
104 | public function getShotSize() |
||
108 | |||
109 | /** |
||
110 | * @param $url |
||
111 | * @return mixed|void |
||
112 | */ |
||
113 | public function setSiteUrl($url) |
||
118 | |||
119 | /** |
||
120 | * @return string |
||
121 | */ |
||
122 | public function getSiteUrl() |
||
126 | |||
127 | /** |
||
128 | * @param null $attr |
||
129 | */ |
||
130 | public function setAttribution($attr = null) |
||
134 | |||
135 | /** |
||
136 | * @param int $allowhtml |
||
137 | * @return string |
||
138 | */ |
||
139 | public function getAttribution($allowhtml = 0) |
||
149 | |||
150 | /** |
||
151 | * @param $key |
||
152 | * @return mixed|void |
||
153 | */ |
||
154 | public function setProviderPublicKey($key) |
||
158 | |||
159 | /** |
||
160 | * @return null |
||
161 | */ |
||
162 | public function getProviderPublicKey() |
||
166 | |||
167 | /** |
||
168 | * @param $key |
||
169 | * @return bool |
||
170 | */ |
||
171 | public function setProviderPrivateKey($key) |
||
175 | |||
176 | /** |
||
177 | * @return bool |
||
178 | */ |
||
179 | public function getProviderPrivateKey() |
||
183 | } |
||
184 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.