aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-04-25 14:12:56 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-04-26 12:53:21 +0200
commitf277bc042c8e805aab14b31b5b51e2878d80c6f4 (patch)
treeaf75f475af7bb2d0f8c3a44a404f90e2d93dfa2b /src
parent531c8d0a5c55fa93438e227a7d349235fbd31d28 (diff)
downloadwallabag-f277bc042c8e805aab14b31b5b51e2878d80c6f4.tar.gz
wallabag-f277bc042c8e805aab14b31b5b51e2878d80c6f4.tar.zst
wallabag-f277bc042c8e805aab14b31b5b51e2878d80c6f4.zip
Fix tests & cs & migration
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Command/InstallCommand.php2
-rw-r--r--src/Wallabag/CoreBundle/Controller/FeedController.php27
-rw-r--r--src/Wallabag/CoreBundle/Entity/Config.php4
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml16
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.th.yml16
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig2
-rw-r--r--src/Wallabag/CoreBundle/Twig/WallabagExtension.php2
-rw-r--r--src/Wallabag/UserBundle/Repository/UserRepository.php2
9 files changed, 36 insertions, 37 deletions
diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php
index 49c84178..c58ae2b5 100644
--- a/src/Wallabag/CoreBundle/Command/InstallCommand.php
+++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php
@@ -254,7 +254,7 @@ class InstallCommand extends ContainerAwareCommand
254 $question->setHidden(true); 254 $question->setHidden(true);
255 $user->setPlainPassword($this->io->askQuestion($question)); 255 $user->setPlainPassword($this->io->askQuestion($question));
256 256
257 $user->setEmail($this->io->ask('Email', '')); 257 $user->setEmail($this->io->ask('Email', 'wallabag@wallabag.io'));
258 258
259 $user->setEnabled(true); 259 $user->setEnabled(true);
260 $user->addRole('ROLE_SUPER_ADMIN'); 260 $user->addRole('ROLE_SUPER_ADMIN');
diff --git a/src/Wallabag/CoreBundle/Controller/FeedController.php b/src/Wallabag/CoreBundle/Controller/FeedController.php
index 9d55a9b7..8d422a90 100644
--- a/src/Wallabag/CoreBundle/Controller/FeedController.php
+++ b/src/Wallabag/CoreBundle/Controller/FeedController.php
@@ -8,7 +8,6 @@ use Pagerfanta\Exception\OutOfRangeCurrentPageException;
8use Pagerfanta\Pagerfanta; 8use Pagerfanta\Pagerfanta;
9use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; 9use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
10use Symfony\Bundle\FrameworkBundle\Controller\Controller; 10use Symfony\Bundle\FrameworkBundle\Controller\Controller;
11use Symfony\Component\HttpFoundation\Request;
12use Symfony\Component\HttpFoundation\Response; 11use Symfony\Component\HttpFoundation\Response;
13use Symfony\Component\Routing\Annotation\Route; 12use Symfony\Component\Routing\Annotation\Route;
14use Symfony\Component\Routing\Generator\UrlGeneratorInterface; 13use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
@@ -20,8 +19,8 @@ class FeedController extends Controller
20 /** 19 /**
21 * Shows unread entries for current user. 20 * Shows unread entries for current user.
22 * 21 *
23 * @Route("/feed/{username}/{token}/unread/{page}", name="unread_feed", defaults={"page": 1}) 22 * @Route("/feed/{username}/{token}/unread/{page}", name="unread_feed", defaults={"page"=1, "_format"="xml"})
24 * @Route("/{username}/{token}/unread.xml", defaults={"page": 1}) 23 *
25 * @ParamConverter("user", class="WallabagUserBundle:User", converter="username_feed_token_converter") 24 * @ParamConverter("user", class="WallabagUserBundle:User", converter="username_feed_token_converter")
26 * 25 *
27 * @param User $user 26 * @param User $user
@@ -37,8 +36,8 @@ class FeedController extends Controller
37 /** 36 /**
38 * Shows read entries for current user. 37 * Shows read entries for current user.
39 * 38 *
40 * @Route("/feed/{username}/{token}/archive/{page}", name="archive_feed", defaults={"page": 1}) 39 * @Route("/feed/{username}/{token}/archive/{page}", name="archive_feed", defaults={"page"=1, "_format"="xml"})
41 * @Route("/{username}/{token}/archive.xml", defaults={"page": 1}) 40 *
42 * @ParamConverter("user", class="WallabagUserBundle:User", converter="username_feed_token_converter") 41 * @ParamConverter("user", class="WallabagUserBundle:User", converter="username_feed_token_converter")
43 * 42 *
44 * @param User $user 43 * @param User $user
@@ -54,8 +53,8 @@ class FeedController extends Controller
54 /** 53 /**
55 * Shows starred entries for current user. 54 * Shows starred entries for current user.
56 * 55 *
57 * @Route("/feed/{username}/{token}/starred/{page}", name="starred_feed", defaults={"page": 1}) 56 * @Route("/feed/{username}/{token}/starred/{page}", name="starred_feed", defaults={"page"=1, "_format"="xml"})
58 * @Route("/{username}/{token}/starred.xml", defaults={"page": 1}) 57 *
59 * @ParamConverter("user", class="WallabagUserBundle:User", converter="username_feed_token_converter") 58 * @ParamConverter("user", class="WallabagUserBundle:User", converter="username_feed_token_converter")
60 * 59 *
61 * @param User $user 60 * @param User $user
@@ -71,29 +70,29 @@ class FeedController extends Controller
71 /** 70 /**
72 * Shows all entries for current user. 71 * Shows all entries for current user.
73 * 72 *
74 * @Route("/{username}/{token}/all.xml", name="all_feed", defaults={"_format"="xml"}) 73 * @Route("/feed/{username}/{token}/all/{page}", name="all_feed", defaults={"page"=1, "_format"="xml"})
74 *
75 * @ParamConverter("user", class="WallabagUserBundle:User", converter="username_feed_token_converter") 75 * @ParamConverter("user", class="WallabagUserBundle:User", converter="username_feed_token_converter")
76 * 76 *
77 * @return \Symfony\Component\HttpFoundation\Response 77 * @return \Symfony\Component\HttpFoundation\Response
78 */ 78 */
79 public function showAllFeedAction(Request $request, User $user) 79 public function showAllFeedAction(User $user, $page)
80 { 80 {
81 return $this->showEntries('all', $user, $request->query->get('page', 1)); 81 return $this->showEntries('all', $user, $page);
82 } 82 }
83 83
84 /** 84 /**
85 * Shows entries associated to a tag for current user. 85 * Shows entries associated to a tag for current user.
86 * 86 *
87 * @Route("/{username}/{token}/tags/{slug}.xml", name="tag_feed", defaults={"_format"="xml"}) 87 * @Route("/feed/{username}/{token}/tags/{slug}/{page}", name="tag_feed", defaults={"page"=1, "_format"="xml"})
88 *
88 * @ParamConverter("user", class="WallabagUserBundle:User", converter="username_feed_token_converter") 89 * @ParamConverter("user", class="WallabagUserBundle:User", converter="username_feed_token_converter")
89 * @ParamConverter("tag", options={"mapping": {"slug": "slug"}}) 90 * @ParamConverter("tag", options={"mapping": {"slug": "slug"}})
90 * 91 *
91 * @return \Symfony\Component\HttpFoundation\Response 92 * @return \Symfony\Component\HttpFoundation\Response
92 */ 93 */
93 public function showTagsFeedAction(Request $request, User $user, Tag $tag) 94 public function showTagsFeedAction(User $user, Tag $tag, $page)
94 { 95 {
95 $page = $request->query->get('page', 1);
96
97 $url = $this->generateUrl( 96 $url = $this->generateUrl(
98 'tag_feed', 97 'tag_feed',
99 [ 98 [
diff --git a/src/Wallabag/CoreBundle/Entity/Config.php b/src/Wallabag/CoreBundle/Entity/Config.php
index 7458f757..c6e65d66 100644
--- a/src/Wallabag/CoreBundle/Entity/Config.php
+++ b/src/Wallabag/CoreBundle/Entity/Config.php
@@ -60,14 +60,14 @@ class Config
60 /** 60 /**
61 * @var string 61 * @var string
62 * 62 *
63 * @ORM\Column(name="rss_token", type="string", nullable=true) 63 * @ORM\Column(name="feed_token", type="string", nullable=true)
64 */ 64 */
65 private $feedToken; 65 private $feedToken;
66 66
67 /** 67 /**
68 * @var int 68 * @var int
69 * 69 *
70 * @ORM\Column(name="rss_limit", type="integer", nullable=true) 70 * @ORM\Column(name="feed_limit", type="integer", nullable=true)
71 * @Assert\Range( 71 * @Assert\Range(
72 * min = 1, 72 * min = 1,
73 * max = 100000, 73 * max = 100000,
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml
index 92746631..2ee2d83a 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ru.yml
@@ -53,7 +53,7 @@ config:
53 page_title: 'Настройки' 53 page_title: 'Настройки'
54 tab_menu: 54 tab_menu:
55 settings: 'Настройки' 55 settings: 'Настройки'
56 rss: 'RSS' 56 feed: 'RSS'
57 user_info: 'Информация о пользователе' 57 user_info: 'Информация о пользователе'
58 password: 'Пароль' 58 password: 'Пароль'
59 rules: 'Правила настройки простановки тегов' 59 rules: 'Правила настройки простановки тегов'
@@ -83,18 +83,18 @@ config:
83 help_reading_speed: "wallabag посчитает сколько времени занимает чтение каждой записи. Вы можете определить здесь, как быстро вы читаете. wallabag пересчитает время чтения для каждой записи." 83 help_reading_speed: "wallabag посчитает сколько времени занимает чтение каждой записи. Вы можете определить здесь, как быстро вы читаете. wallabag пересчитает время чтения для каждой записи."
84 help_language: "Вы можете изменить язык интерфейса wallabag." 84 help_language: "Вы можете изменить язык интерфейса wallabag."
85 help_pocket_consumer_key: "Обязательно для импорта из Pocket. Вы можете создать это в Вашем аккаунте на Pocket." 85 help_pocket_consumer_key: "Обязательно для импорта из Pocket. Вы можете создать это в Вашем аккаунте на Pocket."
86 form_rss: 86 form_feed:
87 description: 'RSS фид созданный с помощью wallabag позволяет читать Ваши записи через Ваш любимый RSS агрегатор. Для начала Вам потребуется создать ключ.' 87 description: 'RSS фид созданный с помощью wallabag позволяет читать Ваши записи через Ваш любимый RSS агрегатор. Для начала Вам потребуется создать ключ.'
88 token_label: 'RSS ключ' 88 token_label: 'RSS ключ'
89 no_token: 'Ключ не задан' 89 no_token: 'Ключ не задан'
90 token_create: 'Создать ключ' 90 token_create: 'Создать ключ'
91 token_reset: 'Пересоздать ключ' 91 token_reset: 'Пересоздать ключ'
92 rss_links: 'ссылка на RSS' 92 feed_links: 'ссылка на RSS'
93 rss_link: 93 feed_link:
94 unread: 'непрочитанные' 94 unread: 'непрочитанные'
95 starred: 'помеченные' 95 starred: 'помеченные'
96 archive: 'архивные' 96 archive: 'архивные'
97 rss_limit: 'Количество записей в фиде' 97 feed_limit: 'Количество записей в фиде'
98 form_user: 98 form_user:
99 # two_factor_description: "Enabling two factor authentication means you'll receive an email with a code OR need to use an OTP app (like Google Authenticator, Authy or FreeOTP) to get a one time code on every new untrusted connection. You can't choose both option." 99 # two_factor_description: "Enabling two factor authentication means you'll receive an email with a code OR need to use an OTP app (like Google Authenticator, Authy or FreeOTP) to get a one time code on every new untrusted connection. You can't choose both option."
100 name_label: 'Имя' 100 name_label: 'Имя'
@@ -359,7 +359,7 @@ quickstart:
359 title: 'Настроить приложение' 359 title: 'Настроить приложение'
360 description: 'Чтобы иметь приложение, которое вам подходит, ознакомьтесь с конфигурацией wallabag.' 360 description: 'Чтобы иметь приложение, которое вам подходит, ознакомьтесь с конфигурацией wallabag.'
361 language: 'Выбрать язык и дизайн' 361 language: 'Выбрать язык и дизайн'
362 rss: 'Включить RSS фид' 362 feed: 'Включить RSS фид'
363 tagging_rules: 'Создать правило для автоматической установки тегов' 363 tagging_rules: 'Создать правило для автоматической установки тегов'
364 admin: 364 admin:
365 title: 'Администрирование' 365 title: 'Администрирование'
@@ -554,10 +554,10 @@ flashes:
554 password_updated: 'Пароль обновлен' 554 password_updated: 'Пароль обновлен'
555 password_not_updated_demo: "В режиме демонстрации нельзя изменять пароль для этого пользователя." 555 password_not_updated_demo: "В режиме демонстрации нельзя изменять пароль для этого пользователя."
556 user_updated: 'Информация обновлена' 556 user_updated: 'Информация обновлена'
557 rss_updated: 'RSS информация обновлена' 557 feed_updated: 'RSS информация обновлена'
558 tagging_rules_updated: 'Правила тегировния обновлены' 558 tagging_rules_updated: 'Правила тегировния обновлены'
559 tagging_rules_deleted: 'Правила тегировния удалены' 559 tagging_rules_deleted: 'Правила тегировния удалены'
560 rss_token_updated: 'RSS ключ обновлен' 560 feed_token_updated: 'RSS ключ обновлен'
561 annotations_reset: "Аннотации сброшены" 561 annotations_reset: "Аннотации сброшены"
562 tags_reset: "Теги сброшены" 562 tags_reset: "Теги сброшены"
563 entries_reset: "Записи сброшены" 563 entries_reset: "Записи сброшены"
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml
index 1fe4fa0e..e04eee68 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.th.yml
@@ -54,7 +54,7 @@ config:
54 page_title: 'กำหนดค่า' 54 page_title: 'กำหนดค่า'
55 tab_menu: 55 tab_menu:
56 settings: 'ตั้งค่า' 56 settings: 'ตั้งค่า'
57 rss: 'RSS' 57 feed: 'RSS'
58 user_info: 'ข้อมูลผู้ใช้' 58 user_info: 'ข้อมูลผู้ใช้'
59 password: 'รหัสผ่าน' 59 password: 'รหัสผ่าน'
60 rules: 'การแท็กข้อบังคับ' 60 rules: 'การแท็กข้อบังคับ'
@@ -85,19 +85,19 @@ config:
85 help_reading_speed: "wallabag จะคำนวณเวลาการอ่านในแต่ละรายการซึ่งคุณสามารถกำหนดได้ที่นี้,ต้องขอบคุณรายการนี้,หากคุณเป็นนักอ่านที่เร็วหรือช้า wallabag จะทำการคำนวณเวลาที่อ่านใหม่ในแต่ละรายการ" 85 help_reading_speed: "wallabag จะคำนวณเวลาการอ่านในแต่ละรายการซึ่งคุณสามารถกำหนดได้ที่นี้,ต้องขอบคุณรายการนี้,หากคุณเป็นนักอ่านที่เร็วหรือช้า wallabag จะทำการคำนวณเวลาที่อ่านใหม่ในแต่ละรายการ"
86 help_language: "คุณสามารถเปลี่ยภาษาของ wallabag interface ได้" 86 help_language: "คุณสามารถเปลี่ยภาษาของ wallabag interface ได้"
87 help_pocket_consumer_key: "การ้องขอการเก็บการนำข้อมูลเข้า คุณสามารถสร้างบัญชีการเก็บของคุณ" 87 help_pocket_consumer_key: "การ้องขอการเก็บการนำข้อมูลเข้า คุณสามารถสร้างบัญชีการเก็บของคุณ"
88 form_rss: 88 form_feed:
89 description: 'RSS จะเก็บเงื่อนไขโดย wallabag ต้องยอมรับการอ่านรายการของคุณกับผู้อ่านที่ชอบ RSS คุณต้องทำเครื่องหมายก่อน' 89 description: 'RSS จะเก็บเงื่อนไขโดย wallabag ต้องยอมรับการอ่านรายการของคุณกับผู้อ่านที่ชอบ RSS คุณต้องทำเครื่องหมายก่อน'
90 token_label: 'เครื่องหมาย RSS' 90 token_label: 'เครื่องหมาย RSS'
91 no_token: 'ไม่มีเครื่องหมาย' 91 no_token: 'ไม่มีเครื่องหมาย'
92 token_create: 'สร้างเครื่องหมาย' 92 token_create: 'สร้างเครื่องหมาย'
93 token_reset: 'ทำเครื่องหมาย' 93 token_reset: 'ทำเครื่องหมาย'
94 rss_links: 'ลิงค์ RSS' 94 feed_links: 'ลิงค์ RSS'
95 rss_link: 95 feed_link:
96 unread: 'ยังไมได้่อ่าน' 96 unread: 'ยังไมได้่อ่าน'
97 starred: 'ทำการแสดง' 97 starred: 'ทำการแสดง'
98 archive: 'เอกสาร' 98 archive: 'เอกสาร'
99 all: 'ทั้งหมด' 99 all: 'ทั้งหมด'
100 rss_limit: 'จำนวนไอเทมที่เก็บ' 100 feed_limit: 'จำนวนไอเทมที่เก็บ'
101 form_user: 101 form_user:
102 # two_factor_description: "Enabling two factor authentication means you'll receive an email with a code OR need to use an OTP app (like Google Authenticator, Authy or FreeOTP) to get a one time code on every new untrusted connection. You can't choose both option." 102 # two_factor_description: "Enabling two factor authentication means you'll receive an email with a code OR need to use an OTP app (like Google Authenticator, Authy or FreeOTP) to get a one time code on every new untrusted connection. You can't choose both option."
103 name_label: 'ชื่อ' 103 name_label: 'ชื่อ'
@@ -369,7 +369,7 @@ quickstart:
369 title: 'กำหนดค่าแอพพลิเคชั่น' 369 title: 'กำหนดค่าแอพพลิเคชั่น'
370 description: 'ภายใน order จะมี application suit ของคุณ, จะมองหาองค์ประกอบของ wallabag' 370 description: 'ภายใน order จะมี application suit ของคุณ, จะมองหาองค์ประกอบของ wallabag'
371 language: 'เปลี่ยนภาษาและออกแบบ' 371 language: 'เปลี่ยนภาษาและออกแบบ'
372 rss: 'เปิดใช้ RSS' 372 feed: 'เปิดใช้ RSS'
373 tagging_rules: 'เขียนข้อบังคับการแท็กอัตโนมัติของบทความของคุณ' 373 tagging_rules: 'เขียนข้อบังคับการแท็กอัตโนมัติของบทความของคุณ'
374 admin: 374 admin:
375 title: 'ผู้ดูแลระบบ' 375 title: 'ผู้ดูแลระบบ'
@@ -586,10 +586,10 @@ flashes:
586 password_updated: 'อัปเดตรหัสผ่าน' 586 password_updated: 'อัปเดตรหัสผ่าน'
587 password_not_updated_demo: "In demonstration mode, you can't change password for this user." 587 password_not_updated_demo: "In demonstration mode, you can't change password for this user."
588 user_updated: 'อัปเดตข้อมูล' 588 user_updated: 'อัปเดตข้อมูล'
589 rss_updated: 'อัปเดตข้อมูล RSS' 589 feed_updated: 'อัปเดตข้อมูล RSS'
590 tagging_rules_updated: 'อัปเดตการแท็กข้อบังคับ' 590 tagging_rules_updated: 'อัปเดตการแท็กข้อบังคับ'
591 tagging_rules_deleted: 'การลบข้อบังคับของแท็ก' 591 tagging_rules_deleted: 'การลบข้อบังคับของแท็ก'
592 rss_token_updated: 'อัปเดตเครื่องหมาย RSS ' 592 feed_token_updated: 'อัปเดตเครื่องหมาย RSS '
593 annotations_reset: รีเซ็ตหมายเหตุ 593 annotations_reset: รีเซ็ตหมายเหตุ
594 tags_reset: รีเซ็ตแท็ก 594 tags_reset: รีเซ็ตแท็ก
595 entries_reset: รีเซ็ตรายการ 595 entries_reset: รีเซ็ตรายการ
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig
index 142668c0..ae8403bd 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig
@@ -21,7 +21,7 @@
21 <i class="material-icons">mode_edit</i> 21 <i class="material-icons">mode_edit</i>
22 </a> 22 </a>
23 {% endif %} 23 {% endif %}
24 {% if app.user.config.rssToken %} 24 {% if app.user.config.feedToken %}
25 <a rel="alternate" type="application/atom+xml" href="{{ path('tag_feed', {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': tag.slug}) }}" class="right"> 25 <a rel="alternate" type="application/atom+xml" href="{{ path('tag_feed', {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': tag.slug}) }}" class="right">
26 <i class="material-icons md-24">rss_feed</i> 26 <i class="material-icons md-24">rss_feed</i>
27 </a> 27 </a>
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig
index 737ef5fe..79907bbb 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig
@@ -25,7 +25,7 @@
25 <i class="material-icons">mode_edit</i> 25 <i class="material-icons">mode_edit</i>
26 </a> 26 </a>
27 {% endif %} 27 {% endif %}
28 {% if app.user.config.rssToken %} 28 {% if app.user.config.feedToken %}
29 <a rel="alternate" type="application/atom+xml" href="{{ path('tag_feed', {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': tag.slug}) }}" class="card-tag-rss"><i class="material-icons">rss_feed</i></a> 29 <a rel="alternate" type="application/atom+xml" href="{{ path('tag_feed', {'username': app.user.username, 'token': app.user.config.feedToken, 'slug': tag.slug}) }}" class="card-tag-rss"><i class="material-icons">rss_feed</i></a>
30 {% endif %} 30 {% endif %}
31 </li> 31 </li>
diff --git a/src/Wallabag/CoreBundle/Twig/WallabagExtension.php b/src/Wallabag/CoreBundle/Twig/WallabagExtension.php
index 61107ce7..536185d4 100644
--- a/src/Wallabag/CoreBundle/Twig/WallabagExtension.php
+++ b/src/Wallabag/CoreBundle/Twig/WallabagExtension.php
@@ -54,7 +54,7 @@ class WallabagExtension extends \Twig_Extension implements \Twig_Extension_Globa
54 54
55 public function removeSchemeAndWww($url) 55 public function removeSchemeAndWww($url)
56 { 56 {
57 return $this->removeWww($this->removeScheme($url) 57 return $this->removeWww($this->removeScheme($url));
58 } 58 }
59 59
60 /** 60 /**
diff --git a/src/Wallabag/UserBundle/Repository/UserRepository.php b/src/Wallabag/UserBundle/Repository/UserRepository.php
index 80391109..4abd55f1 100644
--- a/src/Wallabag/UserBundle/Repository/UserRepository.php
+++ b/src/Wallabag/UserBundle/Repository/UserRepository.php
@@ -14,7 +14,7 @@ class UserRepository extends EntityRepository
14 * @param string $username 14 * @param string $username
15 * @param string $feedToken 15 * @param string $feedToken
16 * 16 *
17 * @return null|User 17 * @return User|null
18 */ 18 */
19 public function findOneByUsernameAndFeedtoken($username, $feedToken) 19 public function findOneByUsernameAndFeedtoken($username, $feedToken)
20 { 20 {