From db7d25eeb5ba43cdc3662cbee9ceabb8d61c7ab5 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Fri, 25 Sep 2015 08:00:55 +0100 Subject: Refactor census assistant, add unit tests --- app/Census/CensusOfEngland1881.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'app/Census/CensusOfEngland1881.php') diff --git a/app/Census/CensusOfEngland1881.php b/app/Census/CensusOfEngland1881.php index 1f91258a8b..f40cfe99b8 100644 --- a/app/Census/CensusOfEngland1881.php +++ b/app/Census/CensusOfEngland1881.php @@ -16,8 +16,6 @@ namespace Fisharebest\Webtrees\Census; use Fisharebest\Webtrees\Date; -use Fisharebest\Webtrees\Individual; -use Fisharebest\Webtrees\Place; /** * Definitions for a census @@ -35,16 +33,11 @@ class CensusOfEngland1881 extends CensusOfEngland implements CensusInterface { /** * The columns of the census. * - * @param Individual $individual - * * @return CensusColumnInterface[] */ - public function columns(Individual $individual) { - $place = new Place($this->censusPlace(), $individual->getTree()); - $date = new Date($this->censusDate()); - + public function columns() { return array( - new CensusColumnFullName($individual, $place, $date), + new CensusColumnFullName($this), ); } } -- cgit v1.3