From becce6b7520912257c3d72697a3aefec9923a467 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Thu, 29 Nov 2018 20:59:46 +0100 Subject: Define an official codestyle and adhere to it. --- lib/Db/MapperFactory.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'lib/Db/MapperFactory.php') diff --git a/lib/Db/MapperFactory.php b/lib/Db/MapperFactory.php index 679d2a934..635003c64 100644 --- a/lib/Db/MapperFactory.php +++ b/lib/Db/MapperFactory.php @@ -19,7 +19,6 @@ use OCP\IDBConnection; use OCA\News\Db\Mysql\ItemMapper as MysqlItemMapper; use OCA\News\DependencyInjection\IFactory; - class MapperFactory implements IFactory { @@ -30,21 +29,20 @@ class MapperFactory implements IFactory */ private $time; - public function __construct(IDBConnection $db, $databaseType, Time $time) + public function __construct(IDBConnection $db, $databaseType, Time $time) { $this->dbType = $databaseType; $this->db = $db; $this->time = $time; } - public function build() + public function build() { - switch($this->dbType) { - case 'mysql': - return new MysqlItemMapper($this->db, $this->time); - default: - return new ItemMapper($this->db, $this->time); + switch ($this->dbType) { + case 'mysql': + return new MysqlItemMapper($this->db, $this->time); + default: + return new ItemMapper($this->db, $this->time); } } - } -- cgit v1.2.3