diff --git a/src/Member.php b/src/Member.php index 91f7821..e802e61 100644 --- a/src/Member.php +++ b/src/Member.php @@ -105,10 +105,6 @@ class Member extends Model { ]; } - public function __construct($member) { - parent::__construct($member); - } - public function getBirthdayAttribute() { return Carbon::parse($this->attributes['birthday'])->format('Y-m-d'); } diff --git a/src/Membership.php b/src/Membership.php index d5eae8c..a952e8c 100644 --- a/src/Membership.php +++ b/src/Membership.php @@ -40,10 +40,6 @@ class Membership extends Model { return (new self($item)); } - public function __construct($membership) { - parent::__construct($membership); - } - public function setAttribute($key, $value) { if (in_array($key, $this->nullable) && $value === '') { return parent::setAttribute($key, null); diff --git a/tests/Unit/LoginTest.php b/tests/Unit/LoginTest.php index 0740c8b..0cfd524 100644 --- a/tests/Unit/LoginTest.php +++ b/tests/Unit/LoginTest.php @@ -2,10 +2,10 @@ namespace Zoomyboy\LaravelNami\Tests\Unit; -use Zoomyboy\LaravelNami\Nami; -use Zoomyboy\LaravelNami\Tests\TestCase; use Illuminate\Support\Facades\Http; use Zoomyboy\LaravelNami\LoginException; +use Zoomyboy\LaravelNami\Nami; +use Zoomyboy\LaravelNami\Tests\TestCase; class LoginTest extends TestCase {