From 7467a96750dd01dada2a7183ac8af16736886d75 Mon Sep 17 00:00:00 2001 From: overtrue Date: Wed, 29 Aug 2018 12:08:08 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Calendar.php | 2 +- tests/CalendarTest.php | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Calendar.php b/src/Calendar.php index 8665564..effd1b3 100644 --- a/src/Calendar.php +++ b/src/Calendar.php @@ -359,7 +359,7 @@ public function ganZhiYear($lunarYear, $termIndex = null) /** * 据维基百科干支词条:『在西历新年后,华夏新年或干支历新年之前,则续用上一年之干支』 * 所以干支年份应该不需要根据节气校正,为免影响现有系统,此处暂时保留原有逻辑 - * https://zh.wikipedia.org/wiki/%E5%B9%B2%E6%94%AF + * https://zh.wikipedia.org/wiki/%E5%B9%B2%E6%94%AF. * * 即使考虑节气,有的年份没有立春,有的年份有两个立春,此处逻辑仍不能处理该特殊情况 */ diff --git a/tests/CalendarTest.php b/tests/CalendarTest.php index c053f84..928f495 100644 --- a/tests/CalendarTest.php +++ b/tests/CalendarTest.php @@ -12,8 +12,7 @@ class CalendarTest extends TestCase { - - #region ganZhiYear + //region ganZhiYear public function testJiaZiGanZhiYear() { @@ -29,8 +28,7 @@ public function testKuiHaiGanZhiYear() $this->assertEquals('癸亥', $ganZhi); } - #endregion ganZhiYear - + //endregion ganZhiYear public function testSameNormalDateDiffInYears() { @@ -4893,9 +4891,9 @@ public function testSubDaysOverYears() $this->assertEquals(false, $newLunar['is_leap']); } - #endregion subDays + //endregion subDays - #region getAnimal + //region getAnimal public function testMouseGetAnimal() {