diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/FirefoxImport.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/FirefoxImport.php | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/Wallabag/ImportBundle/Import/FirefoxImport.php b/src/Wallabag/ImportBundle/Import/FirefoxImport.php index cbf10b87..351cbef1 100644 --- a/src/Wallabag/ImportBundle/Import/FirefoxImport.php +++ b/src/Wallabag/ImportBundle/Import/FirefoxImport.php | |||
@@ -2,13 +2,6 @@ | |||
2 | 2 | ||
3 | namespace Wallabag\ImportBundle\Import; | 3 | namespace Wallabag\ImportBundle\Import; |
4 | 4 | ||
5 | use Psr\Log\LoggerInterface; | ||
6 | use Psr\Log\NullLogger; | ||
7 | use Doctrine\ORM\EntityManager; | ||
8 | use Wallabag\CoreBundle\Entity\Entry; | ||
9 | use Wallabag\UserBundle\Entity\User; | ||
10 | use Wallabag\CoreBundle\Helper\ContentProxy; | ||
11 | |||
12 | class FirefoxImport extends BrowserImport | 5 | class FirefoxImport extends BrowserImport |
13 | { | 6 | { |
14 | protected $filepath; | 7 | protected $filepath; |
@@ -42,7 +35,7 @@ class FirefoxImport extends BrowserImport | |||
42 | */ | 35 | */ |
43 | protected function prepareEntry($entry = []) | 36 | protected function prepareEntry($entry = []) |
44 | { | 37 | { |
45 | $data = [ | 38 | $data = [ |
46 | 'title' => $entry['name'], | 39 | 'title' => $entry['name'], |
47 | 'html' => '', | 40 | 'html' => '', |
48 | 'url' => $entry['url'], | 41 | 'url' => $entry['url'], |
@@ -51,13 +44,12 @@ class FirefoxImport extends BrowserImport | |||
51 | 'created_at' => $entry['date_added'], | 44 | 'created_at' => $entry['date_added'], |
52 | ]; | 45 | ]; |
53 | 46 | ||
54 | if (array_key_exists('tags', $entry) && $entry['tags'] != '') { | 47 | if (array_key_exists('tags', $entry) && $entry['tags'] != '') { |
55 | $data['tags'] = $entry['tags']; | 48 | $data['tags'] = $entry['tags']; |
56 | } | 49 | } |
57 | |||
58 | return $data; | ||
59 | } | ||
60 | 50 | ||
51 | return $data; | ||
52 | } | ||
61 | 53 | ||
62 | /** | 54 | /** |
63 | * {@inheritdoc} | 55 | * {@inheritdoc} |