diff --git a/composer.json b/composer.json
index 7678d7b87..b28404e3c 100644
--- a/composer.json
+++ b/composer.json
@@ -46,6 +46,7 @@
"ext-iconv": "*",
"ext-tokenizer": "*",
"ext-pdo": "*",
+ "ext-tidy": "*",
"symfony/symfony": "3.4.*",
"doctrine/orm": "^2.6",
"doctrine/doctrine-bundle": "^1.9",
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig
index e7d42b3dc..e87ba201a 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig
@@ -38,7 +38,7 @@
{% if craue_setting('export_epub') %}
EPUB{% endif %}
{% if craue_setting('export_mobi') %}MOBI{% endif %}
{% if craue_setting('export_pdf') %}PDF{% endif %}
- {{ 'entry.view.left_menu.problem.label'|trans }}
+ {{ 'entry.view.left_menu.problem.label'|trans }}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig
index c6c19de6b..15b4d82f6 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig
@@ -209,7 +209,7 @@
-
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php
index f2e591834..a39d81568 100644
--- a/src/Wallabag/ImportBundle/Import/PocketImport.php
+++ b/src/Wallabag/ImportBundle/Import/PocketImport.php
@@ -206,10 +206,10 @@ class PocketImport extends AbstractImport
$this->fetchContent($entry, $url);
// 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted
- $entry->updateArchived(1 === $importedEntry['status'] || $this->markAsRead);
+ $entry->updateArchived(1 === (int) $importedEntry['status'] || $this->markAsRead);
- // 0 or 1 - 1 If the item is starred
- $entry->setStarred(1 === $importedEntry['favorite']);
+ // 0 or 1 - 1 if the item is starred
+ $entry->setStarred(1 === (int) $importedEntry['favorite']);
$title = 'Untitled';
if (isset($importedEntry['resolved_title']) && '' !== $importedEntry['resolved_title']) {
diff --git a/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig b/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig
index ecc1d79a2..cd5aaf407 100644
--- a/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig
+++ b/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig
@@ -74,7 +74,7 @@
- |
+ |
wallabag
{{ "auth_code.on"|trans({}, 'wallabag_user') }} {{ wallabag_url }}
diff --git a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php
index baa5d9057..8083f1a88 100644
--- a/tests/Wallabag/ImportBundle/Import/PocketImportTest.php
+++ b/tests/Wallabag/ImportBundle/Import/PocketImportTest.php
@@ -226,6 +226,13 @@ class PocketImportTest extends TestCase
->method('getRepository')
->willReturn($entryRepo);
+ $this->em
+ ->expects($this->any())
+ ->method('persist')
+ ->with($this->callback(function ($persistedEntry) {
+ return $persistedEntry->isArchived() && $persistedEntry->isStarred();
+ }));
+
$entry = new Entry($this->user);
$this->contentProxy
|