aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-01-18 16:05:20 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-01-18 16:05:20 +0100
commit963b87362624a39f5443b31a6b3591d70c63493b (patch)
tree491a4ecee1ea86d775ec663031891cf544582894
parent9666fb70fc23f273d137d8d3300c60e24789c73b (diff)
downloadwallabag-963b87362624a39f5443b31a6b3591d70c63493b.tar.gz
wallabag-963b87362624a39f5443b31a6b3591d70c63493b.tar.zst
wallabag-963b87362624a39f5443b31a6b3591d70c63493b.zip
CS
-rw-r--r--src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php2
-rw-r--r--src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php2
-rw-r--r--src/Wallabag/ImportBundle/Import/InstapaperImport.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php b/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php
index 1c2c5093..183d394a 100644
--- a/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php
+++ b/src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php
@@ -23,7 +23,7 @@ class PreparePagerForEntries
23 * @param AdapterInterface $adapter 23 * @param AdapterInterface $adapter
24 * @param User $user If user isn't logged in, we can force it (like for rss) 24 * @param User $user If user isn't logged in, we can force it (like for rss)
25 * 25 *
26 * @return null|Pagerfanta 26 * @return Pagerfanta|null
27 */ 27 */
28 public function prepare(AdapterInterface $adapter, User $user = null) 28 public function prepare(AdapterInterface $adapter, User $user = null)
29 { 29 {
diff --git a/src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php b/src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php
index 36906761..b2e212a4 100644
--- a/src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php
@@ -22,7 +22,7 @@ class SiteCredentialRepository extends \Doctrine\ORM\EntityRepository
22 * @param string $host 22 * @param string $host
23 * @param int $userId 23 * @param int $userId
24 * 24 *
25 * @return null|array 25 * @return array|null
26 */ 26 */
27 public function findOneByHostAndUser($host, $userId) 27 public function findOneByHostAndUser($host, $userId)
28 { 28 {
diff --git a/src/Wallabag/ImportBundle/Import/InstapaperImport.php b/src/Wallabag/ImportBundle/Import/InstapaperImport.php
index e113ba00..a12af758 100644
--- a/src/Wallabag/ImportBundle/Import/InstapaperImport.php
+++ b/src/Wallabag/ImportBundle/Import/InstapaperImport.php
@@ -62,7 +62,7 @@ class InstapaperImport extends AbstractImport
62 } 62 }
63 63
64 $entries = []; 64 $entries = [];
65 $handle = fopen($this->filepath, 'rb'); 65 $handle = fopen($this->filepath, 'r');
66 while (false !== ($data = fgetcsv($handle, 10240))) { 66 while (false !== ($data = fgetcsv($handle, 10240))) {
67 if ('URL' === $data[0]) { 67 if ('URL' === $data[0]) {
68 continue; 68 continue;