From 362f455d033d3c569967d415e7dfd8446febeb7b Mon Sep 17 00:00:00 2001 From: Hafiq Date: Wed, 2 Oct 2019 16:29:49 +0800 Subject: [PATCH 1/2] restructure code --- .idea/MalaysiaHoliday.iml | 4 +- .idea/workspace.xml | 453 ++++-------------------------- README.md | 107 ++++--- composer.json | 2 +- composer.lock | 297 ++++++++++++-------- example/index.php | 4 +- src/Holiday.php | 271 ++++++++++-------- src/exception/RegionException.php | 12 + tests/HolidayTest.php | 32 ++- 9 files changed, 495 insertions(+), 687 deletions(-) create mode 100644 src/exception/RegionException.php diff --git a/.idea/MalaysiaHoliday.iml b/.idea/MalaysiaHoliday.iml index 81080d8..abacd4b 100644 --- a/.idea/MalaysiaHoliday.iml +++ b/.idea/MalaysiaHoliday.iml @@ -9,7 +9,6 @@ - @@ -22,6 +21,7 @@ + @@ -33,12 +33,10 @@ - - diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 6838bad..eb1737c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,7 +1,17 @@ - + + + + + + + + + + + $PROJECT_DIR$/composer.json - composer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -70,122 +31,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - json_encode($this->result, JSON_PRETTY_PRINT); - json_encode($this->result, JSON_PRETTY_PRINT - header('Content-Type: application/json'); - json_encode($this->result); - $this->result; - (object) $this->result; - (object) - - - $this->result - $this->result; - array_map(__FUNCTION__, $this->result); - $this-response($this->result); - $this->getResult(); - - - - - - - - - true - DEFINITION_ORDER - @@ -225,16 +73,10 @@ - - - + - - + @@ -254,44 +96,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -