File tree Expand file tree Collapse file tree 22 files changed +37
-37
lines changed Expand file tree Collapse file tree 22 files changed +37
-37
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Contracts ;
13
13
14
- use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
15
14
use Illuminate \Database \Eloquent \Builder ;
15
+ use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
16
16
17
17
/**
18
18
* Interface HasOwner.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Exceptions ;
13
13
14
- use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
15
- use Cog \Ownership \Contracts \HasOwner ;
16
14
use Exception ;
15
+ use Cog \Ownership \Contracts \HasOwner ;
16
+ use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
17
17
18
18
class InvalidOwnerType extends Exception
19
19
{
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Observers ;
13
13
14
- use Cog \Ownership \Contracts \HasOwner as HasOwnerContract ;
15
14
use Illuminate \Support \Facades \Auth ;
15
+ use Cog \Ownership \Contracts \HasOwner as HasOwnerContract ;
16
16
17
17
/**
18
18
* Class ModelObserver.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Providers ;
13
13
14
- use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
15
14
use Illuminate \Support \ServiceProvider ;
15
+ use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
16
16
17
17
/**
18
18
* Class OwnershipServiceProvider.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Traits ;
13
13
14
- use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
15
- use Cog \Ownership \Observers \ModelObserver ;
16
14
use Illuminate \Database \Eloquent \Builder ;
15
+ use Cog \Ownership \Observers \ModelObserver ;
16
+ use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
17
17
18
18
/**
19
19
* Class HasMorphOwner.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Traits ;
13
13
14
- use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
15
- use Cog \Ownership \Exceptions \InvalidOwnerType ;
16
- use Cog \Ownership \Observers \ModelObserver ;
17
14
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 ;
18
18
19
19
/**
20
20
* Class HasOwner.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Tests ;
13
13
14
- use Cog \Ownership \Tests \Stubs \Models \Character ;
15
14
use Cog \Ownership \Tests \Stubs \Models \User ;
16
- use Illuminate \Database \Eloquent \Relations \Relation ;
17
15
use Orchestra \Testbench \TestCase as Orchestra ;
16
+ use Cog \Ownership \Tests \Stubs \Models \Character ;
17
+ use Illuminate \Database \Eloquent \Relations \Relation ;
18
18
19
19
/**
20
20
* Class TestCase.
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- use Illuminate \Database \Migrations \Migration ;
13
- use Illuminate \Database \Schema \Blueprint ;
14
12
use Illuminate \Support \Facades \Schema ;
13
+ use Illuminate \Database \Schema \Blueprint ;
14
+ use Illuminate \Database \Migrations \Migration ;
15
15
16
16
/**
17
17
* Class CreateCharacterTable.
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- use Illuminate \Database \Migrations \Migration ;
13
- use Illuminate \Database \Schema \Blueprint ;
14
12
use Illuminate \Support \Facades \Schema ;
13
+ use Illuminate \Database \Schema \Blueprint ;
14
+ use Illuminate \Database \Migrations \Migration ;
15
15
16
16
/**
17
17
* Class CreateGroupTable.
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- use Illuminate \Database \Migrations \Migration ;
13
- use Illuminate \Database \Schema \Blueprint ;
14
12
use Illuminate \Support \Facades \Schema ;
13
+ use Illuminate \Database \Schema \Blueprint ;
14
+ use Illuminate \Database \Migrations \Migration ;
15
15
16
16
/**
17
17
* Class CreateUserTable.
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- use Illuminate \Database \Migrations \Migration ;
13
- use Illuminate \Database \Schema \Blueprint ;
14
12
use Illuminate \Support \Facades \Schema ;
13
+ use Illuminate \Database \Schema \Blueprint ;
14
+ use Illuminate \Database \Migrations \Migration ;
15
15
16
16
/**
17
17
* Class CreateEntityWithCustomizedOwnerTable.
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- use Illuminate \Database \Migrations \Migration ;
13
- use Illuminate \Database \Schema \Blueprint ;
14
12
use Illuminate \Support \Facades \Schema ;
13
+ use Illuminate \Database \Schema \Blueprint ;
14
+ use Illuminate \Database \Migrations \Migration ;
15
15
16
16
/**
17
17
* Class CreateEntityWithMorphOwnerTable.
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
- use Illuminate \Database \Migrations \Migration ;
13
- use Illuminate \Database \Schema \Blueprint ;
14
12
use Illuminate \Support \Facades \Schema ;
13
+ use Illuminate \Database \Schema \Blueprint ;
14
+ use Illuminate \Database \Migrations \Migration ;
15
15
16
16
/**
17
17
* Class CreateEntityWithOwnerTable.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Tests \Stubs \Models ;
13
13
14
- use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
15
14
use Illuminate \Database \Eloquent \Model ;
15
+ use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
16
16
17
17
/**
18
18
* Class Character.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Tests \Stubs \Models ;
13
13
14
- use Cog \Ownership \Contracts \HasOwner as HasOwnerContract ;
15
14
use Cog \Ownership \Traits \HasOwner ;
16
15
use Illuminate \Database \Eloquent \Model ;
16
+ use Cog \Ownership \Contracts \HasOwner as HasOwnerContract ;
17
17
18
18
/**
19
19
* Class EntityWithCustomizedOwner.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Tests \Stubs \Models ;
13
13
14
- use Cog \Ownership \Contracts \HasOwner as HasOwnerContract ;
15
14
use Cog \Ownership \Traits \HasMorphOwner ;
16
15
use Illuminate \Database \Eloquent \Model ;
16
+ use Cog \Ownership \Contracts \HasOwner as HasOwnerContract ;
17
17
18
18
/**
19
19
* Class EntityWithMorphOwner.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Tests \Stubs \Models ;
13
13
14
- use Cog \Ownership \Contracts \HasOwner as HasOwnerContract ;
15
14
use Cog \Ownership \Traits \HasOwner ;
16
15
use Illuminate \Database \Eloquent \Model ;
16
+ use Cog \Ownership \Contracts \HasOwner as HasOwnerContract ;
17
17
18
18
/**
19
19
* Class EntityWithOwner.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Tests \Stubs \Models ;
13
13
14
- use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
15
14
use Illuminate \Database \Eloquent \Model ;
15
+ use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
16
16
17
17
/**
18
18
* Class Group.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Tests \Stubs \Models ;
13
13
14
- use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
15
14
use Illuminate \Foundation \Auth \User as Authenticatable ;
15
+ use Cog \Ownership \Contracts \CanBeOwner as CanBeOwnerContract ;
16
16
17
17
/**
18
18
* Class User.
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Tests \Unit \Traits ;
13
13
14
- use Cog \Ownership \Exceptions \InvalidOwnerType ;
15
- use Cog \Ownership \Tests \Stubs \Models \Group ;
16
- use Cog \Ownership \Tests \Stubs \Models \User ;
17
14
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 ;
18
18
use Cog \Ownership \Tests \Stubs \Models \EntityWithCustomizedOwner ;
19
19
20
20
/**
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Tests \Unit \Traits ;
13
13
14
+ use Cog \Ownership \Tests \TestCase ;
14
15
use Cog \Ownership \Observers \ModelObserver ;
15
- use Cog \Ownership \Tests \Stubs \Models \Character ;
16
16
use Cog \Ownership \Tests \Stubs \Models \User ;
17
- use Cog \Ownership \Tests \TestCase ;
17
+ use Cog \Ownership \Tests \Stubs \ Models \ Character ;
18
18
use Cog \Ownership \Tests \Stubs \Models \EntityWithMorphOwner ;
19
19
20
20
/**
Original file line number Diff line number Diff line change 11
11
12
12
namespace Cog \Ownership \Tests \Unit \Traits ;
13
13
14
+ use Cog \Ownership \Tests \TestCase ;
15
+ use Cog \Ownership \Tests \Stubs \Models \User ;
14
16
use Cog \Ownership \Exceptions \InvalidOwnerType ;
15
17
use Cog \Ownership \Tests \Stubs \Models \Character ;
16
- use Cog \Ownership \Tests \Stubs \Models \User ;
17
- use Cog \Ownership \Tests \TestCase ;
18
18
use Cog \Ownership \Tests \Stubs \Models \EntityWithOwner ;
19
19
20
20
/**
You can’t perform that action at this time.
0 commit comments