Skip to content

Commit 0f4d61f

Browse files
committed
Code style fix. Prepare for stable release.
1 parent f7feed6 commit 0f4d61f

22 files changed

+37
-37
lines changed

src/Contracts/HasOwner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Cog\Ownership\Contracts;
1313

14-
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1514
use Illuminate\Database\Eloquent\Builder;
15+
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1616

1717
/**
1818
* Interface HasOwner.

src/Exceptions/InvalidOwnerType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Cog\Ownership\Exceptions;
1313

14-
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
15-
use Cog\Ownership\Contracts\HasOwner;
1614
use Exception;
15+
use Cog\Ownership\Contracts\HasOwner;
16+
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1717

1818
class InvalidOwnerType extends Exception
1919
{

src/Observers/ModelObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Cog\Ownership\Observers;
1313

14-
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
1514
use Illuminate\Support\Facades\Auth;
15+
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
1616

1717
/**
1818
* Class ModelObserver.

src/Providers/OwnershipServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Cog\Ownership\Providers;
1313

14-
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1514
use Illuminate\Support\ServiceProvider;
15+
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1616

1717
/**
1818
* Class OwnershipServiceProvider.

src/Traits/HasMorphOwner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Cog\Ownership\Traits;
1313

14-
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
15-
use Cog\Ownership\Observers\ModelObserver;
1614
use Illuminate\Database\Eloquent\Builder;
15+
use Cog\Ownership\Observers\ModelObserver;
16+
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1717

1818
/**
1919
* Class HasMorphOwner.

src/Traits/HasOwner.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Cog\Ownership\Traits;
1313

14-
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
15-
use Cog\Ownership\Exceptions\InvalidOwnerType;
16-
use Cog\Ownership\Observers\ModelObserver;
1714
use Illuminate\Database\Eloquent\Builder;
15+
use Cog\Ownership\Observers\ModelObserver;
16+
use Cog\Ownership\Exceptions\InvalidOwnerType;
17+
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1818

1919
/**
2020
* Class HasOwner.

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Cog\Ownership\Tests;
1313

14-
use Cog\Ownership\Tests\Stubs\Models\Character;
1514
use Cog\Ownership\Tests\Stubs\Models\User;
16-
use Illuminate\Database\Eloquent\Relations\Relation;
1715
use Orchestra\Testbench\TestCase as Orchestra;
16+
use Cog\Ownership\Tests\Stubs\Models\Character;
17+
use Illuminate\Database\Eloquent\Relations\Relation;
1818

1919
/**
2020
* Class TestCase.

tests/database/migrations/2016_09_02_173301_create_character_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Illuminate\Database\Migrations\Migration;
13-
use Illuminate\Database\Schema\Blueprint;
1412
use Illuminate\Support\Facades\Schema;
13+
use Illuminate\Database\Schema\Blueprint;
14+
use Illuminate\Database\Migrations\Migration;
1515

1616
/**
1717
* Class CreateCharacterTable.

tests/database/migrations/2016_09_02_173301_create_group_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Illuminate\Database\Migrations\Migration;
13-
use Illuminate\Database\Schema\Blueprint;
1412
use Illuminate\Support\Facades\Schema;
13+
use Illuminate\Database\Schema\Blueprint;
14+
use Illuminate\Database\Migrations\Migration;
1515

1616
/**
1717
* Class CreateGroupTable.

tests/database/migrations/2016_09_02_173301_create_user_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Illuminate\Database\Migrations\Migration;
13-
use Illuminate\Database\Schema\Blueprint;
1412
use Illuminate\Support\Facades\Schema;
13+
use Illuminate\Database\Schema\Blueprint;
14+
use Illuminate\Database\Migrations\Migration;
1515

1616
/**
1717
* Class CreateUserTable.

tests/database/migrations/2016_12_15_000000_create_entity_with_customized_owner_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Illuminate\Database\Migrations\Migration;
13-
use Illuminate\Database\Schema\Blueprint;
1412
use Illuminate\Support\Facades\Schema;
13+
use Illuminate\Database\Schema\Blueprint;
14+
use Illuminate\Database\Migrations\Migration;
1515

1616
/**
1717
* Class CreateEntityWithCustomizedOwnerTable.

tests/database/migrations/2016_12_15_000000_create_entity_with_morph_owner_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Illuminate\Database\Migrations\Migration;
13-
use Illuminate\Database\Schema\Blueprint;
1412
use Illuminate\Support\Facades\Schema;
13+
use Illuminate\Database\Schema\Blueprint;
14+
use Illuminate\Database\Migrations\Migration;
1515

1616
/**
1717
* Class CreateEntityWithMorphOwnerTable.

tests/database/migrations/2016_12_15_000000_create_entity_with_owner_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Illuminate\Database\Migrations\Migration;
13-
use Illuminate\Database\Schema\Blueprint;
1412
use Illuminate\Support\Facades\Schema;
13+
use Illuminate\Database\Schema\Blueprint;
14+
use Illuminate\Database\Migrations\Migration;
1515

1616
/**
1717
* Class CreateEntityWithOwnerTable.

tests/stubs/Models/Character.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Cog\Ownership\Tests\Stubs\Models;
1313

14-
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1514
use Illuminate\Database\Eloquent\Model;
15+
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1616

1717
/**
1818
* Class Character.

tests/stubs/Models/EntityWithCustomizedOwner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Cog\Ownership\Tests\Stubs\Models;
1313

14-
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
1514
use Cog\Ownership\Traits\HasOwner;
1615
use Illuminate\Database\Eloquent\Model;
16+
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
1717

1818
/**
1919
* Class EntityWithCustomizedOwner.

tests/stubs/Models/EntityWithMorphOwner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Cog\Ownership\Tests\Stubs\Models;
1313

14-
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
1514
use Cog\Ownership\Traits\HasMorphOwner;
1615
use Illuminate\Database\Eloquent\Model;
16+
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
1717

1818
/**
1919
* Class EntityWithMorphOwner.

tests/stubs/Models/EntityWithOwner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Cog\Ownership\Tests\Stubs\Models;
1313

14-
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
1514
use Cog\Ownership\Traits\HasOwner;
1615
use Illuminate\Database\Eloquent\Model;
16+
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
1717

1818
/**
1919
* Class EntityWithOwner.

tests/stubs/Models/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Cog\Ownership\Tests\Stubs\Models;
1313

14-
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1514
use Illuminate\Database\Eloquent\Model;
15+
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1616

1717
/**
1818
* Class Group.

tests/stubs/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Cog\Ownership\Tests\Stubs\Models;
1313

14-
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1514
use Illuminate\Foundation\Auth\User as Authenticatable;
15+
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
1616

1717
/**
1818
* Class User.

tests/unit/Traits/HasCustomizedOwnerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Cog\Ownership\Tests\Unit\Traits;
1313

14-
use Cog\Ownership\Exceptions\InvalidOwnerType;
15-
use Cog\Ownership\Tests\Stubs\Models\Group;
16-
use Cog\Ownership\Tests\Stubs\Models\User;
1714
use Cog\Ownership\Tests\TestCase;
15+
use Cog\Ownership\Tests\Stubs\Models\User;
16+
use Cog\Ownership\Tests\Stubs\Models\Group;
17+
use Cog\Ownership\Exceptions\InvalidOwnerType;
1818
use Cog\Ownership\Tests\Stubs\Models\EntityWithCustomizedOwner;
1919

2020
/**

tests/unit/Traits/HasMorphOwnerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Cog\Ownership\Tests\Unit\Traits;
1313

14+
use Cog\Ownership\Tests\TestCase;
1415
use Cog\Ownership\Observers\ModelObserver;
15-
use Cog\Ownership\Tests\Stubs\Models\Character;
1616
use Cog\Ownership\Tests\Stubs\Models\User;
17-
use Cog\Ownership\Tests\TestCase;
17+
use Cog\Ownership\Tests\Stubs\Models\Character;
1818
use Cog\Ownership\Tests\Stubs\Models\EntityWithMorphOwner;
1919

2020
/**

tests/unit/Traits/HasOwnerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Cog\Ownership\Tests\Unit\Traits;
1313

14+
use Cog\Ownership\Tests\TestCase;
15+
use Cog\Ownership\Tests\Stubs\Models\User;
1416
use Cog\Ownership\Exceptions\InvalidOwnerType;
1517
use Cog\Ownership\Tests\Stubs\Models\Character;
16-
use Cog\Ownership\Tests\Stubs\Models\User;
17-
use Cog\Ownership\Tests\TestCase;
1818
use Cog\Ownership\Tests\Stubs\Models\EntityWithOwner;
1919

2020
/**

0 commit comments

Comments
 (0)