diff options
| author | Greg Roach <fisharebest@gmail.com> | 2016-12-23 21:15:42 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2016-12-23 21:15:42 +0000 |
| commit | 13abd6f3a37322f885d85df150e105d27ad81f8d (patch) | |
| tree | f023015b458c95273afe5876246adf141de169ca /app/Controller/PedigreeController.php | |
| parent | 2c55bacfbfed3c49d3f2ac181fb519d24ffe2803 (diff) | |
| download | webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.gz webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.bz2 webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.zip | |
Code style - short array syntax
Diffstat (limited to 'app/Controller/PedigreeController.php')
| -rw-r--r-- | app/Controller/PedigreeController.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Controller/PedigreeController.php b/app/Controller/PedigreeController.php index 3bed00bb8b..91495ae075 100644 --- a/app/Controller/PedigreeController.php +++ b/app/Controller/PedigreeController.php @@ -46,7 +46,7 @@ class PedigreeController extends ChartController { public $generations; /** @var array data pertaining to each chart node */ - public $nodes = array(); + public $nodes = []; /** @var int Number of nodes in the chart */ public $treesize; @@ -58,7 +58,7 @@ class PedigreeController extends ChartController { public $arrows; /** @var array Holds results of chart dimension calculations */ - public $chartsize = array(); + public $chartsize = []; /** * Create a pedigree controller @@ -72,7 +72,7 @@ class PedigreeController extends ChartController { $bxspacing = Theme::theme()->parameter('chart-spacing-x'); $byspacing = Theme::theme()->parameter('chart-spacing-y'); $curgen = 1; // -- track which generation the algorithm is currently working on - $addoffset = array(); + $addoffset = []; // With more than 8 generations, we run out of pixels on the <canvas> if ($this->generations > 8) { @@ -92,7 +92,7 @@ class PedigreeController extends ChartController { // sosaAncestors() starts array at index 1 we need to start at 0 $this->nodes = array_map(function ($item) { - return array('indi' => $item, 'x' => 0, 'y' => 0); + return ['indi' => $item, 'x' => 0, 'y' => 0]; }, array_values($this->sosaAncestors($this->generations))); //check earliest generation for any ancestors |
