]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
CS 3858/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 18 Jan 2019 15:05:20 +0000 (16:05 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 18 Jan 2019 15:05:20 +0000 (16:05 +0100)
src/Wallabag/CoreBundle/Helper/PreparePagerForEntries.php
src/Wallabag/CoreBundle/Repository/SiteCredentialRepository.php
src/Wallabag/ImportBundle/Import/InstapaperImport.php

index 1c2c509316bd49fafb2d8eb7ed608c3c13182033..183d394a08a3a19bdded9b59ea3b10762d060012 100644 (file)
@@ -23,7 +23,7 @@ class PreparePagerForEntries
      * @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)
     {
index 36906761243616bd458c5f83682a0be92c165751..b2e212a41438cc32d7e3bbab212aed78382b76fd 100644 (file)
@@ -22,7 +22,7 @@ class SiteCredentialRepository extends \Doctrine\ORM\EntityRepository
      * @param string $host
      * @param int    $userId
      *
-     * @return null|array
+     * @return array|null
      */
     public function findOneByHostAndUser($host, $userId)
     {
index e113ba00824a75c07f07f142fea311a415a07c34..a12af75829a8db6c345e0740f31cb5e8efdf8094 100644 (file)
@@ -62,7 +62,7 @@ class InstapaperImport extends AbstractImport
         }
 
         $entries = [];
-        $handle = fopen($this->filepath, 'rb');
+        $handle = fopen($this->filepath, 'r');
         while (false !== ($data = fgetcsv($handle, 10240))) {
             if ('URL' === $data[0]) {
                 continue;