diff options
| author | Scrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com> | 2016-04-12 10:04:57 +0000 |
|---|---|---|
| committer | Scrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com> | 2016-04-12 10:04:57 +0000 |
| commit | 52941f1ccf7bda03ec514365a4599a882c40a895 (patch) | |
| tree | 83594bbb7ffcaf820aab6bc38ee74f5cdfc7bdbc /app/Controller/LifespanController.php | |
| parent | bd5618f5a04079bfd696c9bc3cd8de7f0bc5ae84 (diff) | |
| download | webtrees-52941f1ccf7bda03ec514365a4599a882c40a895.tar.gz webtrees-52941f1ccf7bda03ec514365a4599a882c40a895.tar.bz2 webtrees-52941f1ccf7bda03ec514365a4599a882c40a895.zip | |
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
Diffstat (limited to 'app/Controller/LifespanController.php')
| -rw-r--r-- | app/Controller/LifespanController.php | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/app/Controller/LifespanController.php b/app/Controller/LifespanController.php index 38fa590e2a..15f0210600 100644 --- a/app/Controller/LifespanController.php +++ b/app/Controller/LifespanController.php @@ -41,12 +41,12 @@ class LifespanController extends PageController { // Base color parameters const RANGE = 120; // degrees const SATURATION = 100; // percent - const LIGHTNESS = 30; // percent + const LIGHTNESS = 30; // percent const ALPHA = 0.25; const CHART_TOP = 10; // pixels const BAR_SPACING = 22; // pixels const YEAR_SPAN = 10; // Number of years per scale section - const PIXELS_PER_YEAR = 7; // Number of pixels to shift per year + const PIXELS_PER_YEAR = 7; // Number of pixels to shift per year const SESSION_DATA = 'lifespan_data'; /** @var string|null Chart parameter */ @@ -457,8 +457,8 @@ class LifespanController extends PageController { } echo '</div>' . // class="popup" - '</div>' . // class="itr" - '</div>'; // class=$popupclass + '</div>' . // class="itr" + '</div>'; // class=$popupclass $maxY = max($maxY, $Y); } @@ -506,23 +506,23 @@ class LifespanController extends PageController { */ public function getCalendarDate($date) { switch ($this->calendar) { - case 'julian': - $caldate = new JulianDate($date); - break; - case 'french': - $caldate = new FrenchDate($date); - break; - case 'jewish': - $caldate = new JewishDate($date); - break; - case 'hijri': - $caldate = new HijriDate($date); - break; - case 'jalali': - $caldate = new JalaliDate($date); - break; - default: - $caldate = new GregorianDate($date); + case 'julian': + $caldate = new JulianDate($date); + break; + case 'french': + $caldate = new FrenchDate($date); + break; + case 'jewish': + $caldate = new JewishDate($date); + break; + case 'hijri': + $caldate = new HijriDate($date); + break; + case 'jalali': + $caldate = new JalaliDate($date); + break; + default: + $caldate = new GregorianDate($date); } return $caldate; |
