* @param AdapterInterface $adapter
* @param User $user If user isn't logged in, we can force it (like for rss)
*
- * @return null|Pagerfanta
+ * @return Pagerfanta|null
*/
public function prepare(AdapterInterface $adapter, User $user = null)
{
}
$entries = [];
- $handle = fopen($this->filepath, 'rb');
+ $handle = fopen($this->filepath, 'r');
while (false !== ($data = fgetcsv($handle, 10240))) {
if ('URL' === $data[0]) {
continue;