aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import/FirefoxImport.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-09-21 18:00:08 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-25 12:29:19 +0200
commit2c61db30b737685ae9102ec10f2371778fb13f1a (patch)
treeeb5d963e6c0609cf7371ab0d1625e4dd03359f4b /src/Wallabag/ImportBundle/Import/FirefoxImport.php
parent59201088b4fc13fd361238396f630dabd9bd1990 (diff)
downloadwallabag-2c61db30b737685ae9102ec10f2371778fb13f1a.tar.gz
wallabag-2c61db30b737685ae9102ec10f2371778fb13f1a.tar.zst
wallabag-2c61db30b737685ae9102ec10f2371778fb13f1a.zip
cs & fixes
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/FirefoxImport.php')
-rw-r--r--src/Wallabag/ImportBundle/Import/FirefoxImport.php20
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
3namespace Wallabag\ImportBundle\Import; 3namespace Wallabag\ImportBundle\Import;
4 4
5use Psr\Log\LoggerInterface;
6use Psr\Log\NullLogger;
7use Doctrine\ORM\EntityManager;
8use Wallabag\CoreBundle\Entity\Entry;
9use Wallabag\UserBundle\Entity\User;
10use Wallabag\CoreBundle\Helper\ContentProxy;
11
12class FirefoxImport extends BrowserImport 5class 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}