From d38688ad3d1d889481f7f0c8a54342f92afb3843 Mon Sep 17 00:00:00 2001 From: David Hemphill Date: Wed, 18 Dec 2019 11:52:41 -0600 Subject: [PATCH 1/2] Apply fixes from StyleCI (#45) --- src/Presenter.php | 6 +++--- tests/Fixtures/User.php | 2 +- tests/IntegrationTest.php | 2 +- .../2019_03_07_000000_create_users_table.php | 4 ++-- tests/PresenterTest.php | 10 +++++----- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Presenter.php b/src/Presenter.php index 3c5bd82..23cc81c 100644 --- a/src/Presenter.php +++ b/src/Presenter.php @@ -3,11 +3,11 @@ namespace Hemp\Presenter; use ArrayAccess; +use Illuminate\Contracts\Support\Arrayable; +use Illuminate\Contracts\Support\Jsonable; +use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Arr; use Illuminate\Support\Str; -use Illuminate\Database\Eloquent\Model; -use Illuminate\Contracts\Support\Jsonable; -use Illuminate\Contracts\Support\Arrayable; use Mockery\Exception\BadMethodCallException; abstract class Presenter implements ArrayAccess, Arrayable, Jsonable diff --git a/tests/Fixtures/User.php b/tests/Fixtures/User.php index 16b619b..65d217c 100644 --- a/tests/Fixtures/User.php +++ b/tests/Fixtures/User.php @@ -3,9 +3,9 @@ namespace Hemp\Presenter\Tests\Fixtures; use Hemp\Presenter\Presentable; -use Illuminate\Notifications\Notifiable; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; +use Illuminate\Notifications\Notifiable; class User extends Authenticatable { diff --git a/tests/IntegrationTest.php b/tests/IntegrationTest.php index d1d4db5..bfa0176 100644 --- a/tests/IntegrationTest.php +++ b/tests/IntegrationTest.php @@ -2,9 +2,9 @@ namespace Hemp\Presenter\Tests; -use Orchestra\Testbench\TestCase; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Route; +use Orchestra\Testbench\TestCase; abstract class IntegrationTest extends TestCase { diff --git a/tests/Migrations/2019_03_07_000000_create_users_table.php b/tests/Migrations/2019_03_07_000000_create_users_table.php index 968c470..efa66a9 100644 --- a/tests/Migrations/2019_03_07_000000_create_users_table.php +++ b/tests/Migrations/2019_03_07_000000_create_users_table.php @@ -1,8 +1,8 @@ Date: Wed, 18 Dec 2019 11:54:23 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ba55206..f0e57e4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 🌿 Hemp Presenter -[![Chipper CI Status for davidhemphill/presenter](https://app.chipperci.com/projects/f02344ae-0f4d-4373-9006-d73b692735a1/status/master](https://app.chipperci.com/projects/f062d498-08f7-469a-aece-88c4afbbf516) +[![Chipper CI Status for davidhemphill/presenter](https://app.chipperci.com/projects/f02344ae-0f4d-4373-9006-d73b692735a1/status/master)](https://app.chipperci.com/projects/f062d498-08f7-469a-aece-88c4afbbf516) This package makes it fast, fun, and profitable to decorate your Eloquent models for presentation in views, PDFs, CSV files, or anywhere else in your project.