This commit is contained in:
Jeremy Benoist 2019-01-15 09:49:22 +01:00
parent 5419a8368e
commit 3afc87426d
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
3 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ class PreparePagerForEntries
* @param AdapterInterface $adapter * @param AdapterInterface $adapter
* @param User $user If user isn't logged in, we can force it (like for rss) * @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) public function prepare(AdapterInterface $adapter, User $user = null)
{ {

View file

@ -22,7 +22,7 @@ class SiteCredentialRepository extends \Doctrine\ORM\EntityRepository
* @param string $host * @param string $host
* @param int $userId * @param int $userId
* *
* @return null|array * @return array|null
*/ */
public function findOneByHostAndUser($host, $userId) public function findOneByHostAndUser($host, $userId)
{ {

View file

@ -62,7 +62,7 @@ class InstapaperImport extends AbstractImport
} }
$entries = []; $entries = [];
$handle = fopen($this->filepath, 'rb'); $handle = fopen($this->filepath, 'r');
while (false !== ($data = fgetcsv($handle, 10240))) { while (false !== ($data = fgetcsv($handle, 10240))) {
if ('URL' === $data[0]) { if ('URL' === $data[0]) {
continue; continue;