From b7e49f8024d9fdcff9870c1bc089a544ab9f31c9 Mon Sep 17 00:00:00 2001 From: Samson Endale <4sam21@gmail.com> Date: Fri, 2 Sep 2016 20:42:23 +0000 Subject: [PATCH] Applied fixes from StyleCI --- src/Calender.php | 2 +- tests/IsEthiopicLeapYearTest.php | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Calender.php b/src/Calender.php index 821a783..370422a 100644 --- a/src/Calender.php +++ b/src/Calender.php @@ -109,6 +109,6 @@ public static function jdToEthiopian($jdn, $array = false) $month = (int) ($n / 30) + 1; $day = ($n % 30) + 1; - return ($array ? compact('day', 'month', 'year') : "$month/$day/$year"); + return $array ? compact('day', 'month', 'year') : "$month/$day/$year"; } } diff --git a/tests/IsEthiopicLeapYearTest.php b/tests/IsEthiopicLeapYearTest.php index 2fd67ab..f345dc9 100644 --- a/tests/IsEthiopicLeapYearTest.php +++ b/tests/IsEthiopicLeapYearTest.php @@ -14,20 +14,20 @@ public function testMethodExists() public function methodDataProvider() { return [ - [-1 , true], // 1 A.D - [0 , false], - [1 , false], - [1998 , false], - [1999 , true], - [2000 , false], - [2001 , false], - [2002 , false], - [2003 , true], - [2004 , false], - [2005 , false], - [2006 , false], - [2007 , true], - [2008 , false], + [-1, true], // 1 A.D + [0, false], + [1, false], + [1998, false], + [1999, true], + [2000, false], + [2001, false], + [2002, false], + [2003, true], + [2004, false], + [2005, false], + [2006, false], + [2007, true], + [2008, false], ]; }