aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-02-27 14:59:50 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-02-27 15:01:03 +0100
commit8c0ba953070dca22e9a06999cfe355ea01847c64 (patch)
tree994fc7fa9e96ef9f15ef311cbc103fab41746e0f /src/Wallabag/ImportBundle
parentea925bb112ab99efbb29d8e7113e80357a70bd18 (diff)
downloadwallabag-8c0ba953070dca22e9a06999cfe355ea01847c64.tar.gz
wallabag-8c0ba953070dca22e9a06999cfe355ea01847c64.tar.zst
wallabag-8c0ba953070dca22e9a06999cfe355ea01847c64.zip
Adding more tests
Diffstat (limited to 'src/Wallabag/ImportBundle')
-rw-r--r--src/Wallabag/ImportBundle/Import/AbstractImport.php2
-rw-r--r--src/Wallabag/ImportBundle/Import/BrowserImport.php6
-rw-r--r--src/Wallabag/ImportBundle/Import/InstapaperImport.php2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/Wallabag/ImportBundle/Import/AbstractImport.php b/src/Wallabag/ImportBundle/Import/AbstractImport.php
index 5ae4aa8d..d39d71b6 100644
--- a/src/Wallabag/ImportBundle/Import/AbstractImport.php
+++ b/src/Wallabag/ImportBundle/Import/AbstractImport.php
@@ -169,7 +169,7 @@ abstract class AbstractImport implements ImportInterface
169 $entry = $this->parseEntry($importedEntry); 169 $entry = $this->parseEntry($importedEntry);
170 170
171 if (null === $entry) { 171 if (null === $entry) {
172 break; 172 continue;
173 } 173 }
174 174
175 // store each entry to be flushed so we can trigger the entry.saved event for each of them 175 // store each entry to be flushed so we can trigger the entry.saved event for each of them
diff --git a/src/Wallabag/ImportBundle/Import/BrowserImport.php b/src/Wallabag/ImportBundle/Import/BrowserImport.php
index 99717beb..3987e80f 100644
--- a/src/Wallabag/ImportBundle/Import/BrowserImport.php
+++ b/src/Wallabag/ImportBundle/Import/BrowserImport.php
@@ -158,13 +158,13 @@ abstract class BrowserImport extends AbstractImport
158 158
159 foreach ($entries as $importedEntry) { 159 foreach ($entries as $importedEntry) {
160 if ((array) $importedEntry !== $importedEntry) { 160 if ((array) $importedEntry !== $importedEntry) {
161 break; 161 continue;
162 } 162 }
163 163
164 $entry = $this->parseEntry($importedEntry); 164 $entry = $this->parseEntry($importedEntry);
165 165
166 if (null === $entry) { 166 if (null === $entry) {
167 break; 167 continue;
168 } 168 }
169 169
170 // @see AbstractImport 170 // @see AbstractImport
@@ -206,7 +206,7 @@ abstract class BrowserImport extends AbstractImport
206 { 206 {
207 foreach ($entries as $importedEntry) { 207 foreach ($entries as $importedEntry) {
208 if ((array) $importedEntry !== $importedEntry) { 208 if ((array) $importedEntry !== $importedEntry) {
209 break; 209 continue;
210 } 210 }
211 211
212 // set userId for the producer (it won't know which user is connected) 212 // set userId for the producer (it won't know which user is connected)
diff --git a/src/Wallabag/ImportBundle/Import/InstapaperImport.php b/src/Wallabag/ImportBundle/Import/InstapaperImport.php
index 6b6b35af..439c978c 100644
--- a/src/Wallabag/ImportBundle/Import/InstapaperImport.php
+++ b/src/Wallabag/ImportBundle/Import/InstapaperImport.php
@@ -65,7 +65,7 @@ class InstapaperImport extends AbstractImport
65 $handle = fopen($this->filepath, 'r'); 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 break; 68 continue;
69 } 69 }
70 70
71 // last element in the csv is the folder where the content belong 71 // last element in the csv is the folder where the content belong