This commit is contained in:
Jeremy Benoist
2017-10-09 16:47:15 +02:00
parent f40c88eb1f
commit 3ef055ced3
27 changed files with 37 additions and 37 deletions

View File

@ -63,7 +63,7 @@ class InstapaperImport extends AbstractImport
$entries = [];
$handle = fopen($this->filepath, 'r');
while (($data = fgetcsv($handle, 10240)) !== false) {
while (false !== ($data = fgetcsv($handle, 10240))) {
if ('URL' === $data[0]) {
continue;
}
@ -80,8 +80,8 @@ class InstapaperImport extends AbstractImport
'url' => $data[0],
'title' => $data[1],
'status' => $data[3],
'is_archived' => $data[3] === 'Archive' || $data[3] === 'Starred',
'is_starred' => $data[3] === 'Starred',
'is_archived' => 'Archive' === $data[3] || 'Starred' === $data[3],
'is_starred' => 'Starred' === $data[3],
'html' => false,
'tags' => $tags,
];