Skip to content

Commit

Permalink
Code style fix. Prepare for stable release.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Dec 17, 2016
1 parent f7feed6 commit 0f4d61f
Show file tree
Hide file tree
Showing 22 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion src/Contracts/HasOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace Cog\Ownership\Contracts;

use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
use Illuminate\Database\Eloquent\Builder;
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;

/**
* Interface HasOwner.
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/InvalidOwnerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace Cog\Ownership\Exceptions;

use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
use Cog\Ownership\Contracts\HasOwner;
use Exception;
use Cog\Ownership\Contracts\HasOwner;
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;

class InvalidOwnerType extends Exception
{
Expand Down
2 changes: 1 addition & 1 deletion src/Observers/ModelObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace Cog\Ownership\Observers;

use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
use Illuminate\Support\Facades\Auth;
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;

/**
* Class ModelObserver.
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/OwnershipServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace Cog\Ownership\Providers;

use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
use Illuminate\Support\ServiceProvider;
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;

/**
* Class OwnershipServiceProvider.
Expand Down
4 changes: 2 additions & 2 deletions src/Traits/HasMorphOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace Cog\Ownership\Traits;

use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
use Cog\Ownership\Observers\ModelObserver;
use Illuminate\Database\Eloquent\Builder;
use Cog\Ownership\Observers\ModelObserver;
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;

/**
* Class HasMorphOwner.
Expand Down
6 changes: 3 additions & 3 deletions src/Traits/HasOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

namespace Cog\Ownership\Traits;

use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
use Cog\Ownership\Exceptions\InvalidOwnerType;
use Cog\Ownership\Observers\ModelObserver;
use Illuminate\Database\Eloquent\Builder;
use Cog\Ownership\Observers\ModelObserver;
use Cog\Ownership\Exceptions\InvalidOwnerType;
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;

/**
* Class HasOwner.
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

namespace Cog\Ownership\Tests;

use Cog\Ownership\Tests\Stubs\Models\Character;
use Cog\Ownership\Tests\Stubs\Models\User;
use Illuminate\Database\Eloquent\Relations\Relation;
use Orchestra\Testbench\TestCase as Orchestra;
use Cog\Ownership\Tests\Stubs\Models\Character;
use Illuminate\Database\Eloquent\Relations\Relation;

/**
* Class TestCase.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
* Class CreateCharacterTable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
* Class CreateGroupTable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
* Class CreateUserTable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
* Class CreateEntityWithCustomizedOwnerTable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
* Class CreateEntityWithMorphOwnerTable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
* Class CreateEntityWithOwnerTable.
Expand Down
2 changes: 1 addition & 1 deletion tests/stubs/Models/Character.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace Cog\Ownership\Tests\Stubs\Models;

use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
use Illuminate\Database\Eloquent\Model;
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;

/**
* Class Character.
Expand Down
2 changes: 1 addition & 1 deletion tests/stubs/Models/EntityWithCustomizedOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace Cog\Ownership\Tests\Stubs\Models;

use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
use Cog\Ownership\Traits\HasOwner;
use Illuminate\Database\Eloquent\Model;
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;

/**
* Class EntityWithCustomizedOwner.
Expand Down
2 changes: 1 addition & 1 deletion tests/stubs/Models/EntityWithMorphOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace Cog\Ownership\Tests\Stubs\Models;

use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
use Cog\Ownership\Traits\HasMorphOwner;
use Illuminate\Database\Eloquent\Model;
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;

/**
* Class EntityWithMorphOwner.
Expand Down
2 changes: 1 addition & 1 deletion tests/stubs/Models/EntityWithOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

namespace Cog\Ownership\Tests\Stubs\Models;

use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;
use Cog\Ownership\Traits\HasOwner;
use Illuminate\Database\Eloquent\Model;
use Cog\Ownership\Contracts\HasOwner as HasOwnerContract;

/**
* Class EntityWithOwner.
Expand Down
2 changes: 1 addition & 1 deletion tests/stubs/Models/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace Cog\Ownership\Tests\Stubs\Models;

use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
use Illuminate\Database\Eloquent\Model;
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;

/**
* Class Group.
Expand Down
2 changes: 1 addition & 1 deletion tests/stubs/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

namespace Cog\Ownership\Tests\Stubs\Models;

use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Cog\Ownership\Contracts\CanBeOwner as CanBeOwnerContract;

/**
* Class User.
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/Traits/HasCustomizedOwnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

namespace Cog\Ownership\Tests\Unit\Traits;

use Cog\Ownership\Exceptions\InvalidOwnerType;
use Cog\Ownership\Tests\Stubs\Models\Group;
use Cog\Ownership\Tests\Stubs\Models\User;
use Cog\Ownership\Tests\TestCase;
use Cog\Ownership\Tests\Stubs\Models\User;
use Cog\Ownership\Tests\Stubs\Models\Group;
use Cog\Ownership\Exceptions\InvalidOwnerType;
use Cog\Ownership\Tests\Stubs\Models\EntityWithCustomizedOwner;

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Traits/HasMorphOwnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

namespace Cog\Ownership\Tests\Unit\Traits;

use Cog\Ownership\Tests\TestCase;
use Cog\Ownership\Observers\ModelObserver;
use Cog\Ownership\Tests\Stubs\Models\Character;
use Cog\Ownership\Tests\Stubs\Models\User;
use Cog\Ownership\Tests\TestCase;
use Cog\Ownership\Tests\Stubs\Models\Character;
use Cog\Ownership\Tests\Stubs\Models\EntityWithMorphOwner;

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Traits/HasOwnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

namespace Cog\Ownership\Tests\Unit\Traits;

use Cog\Ownership\Tests\TestCase;
use Cog\Ownership\Tests\Stubs\Models\User;
use Cog\Ownership\Exceptions\InvalidOwnerType;
use Cog\Ownership\Tests\Stubs\Models\Character;
use Cog\Ownership\Tests\Stubs\Models\User;
use Cog\Ownership\Tests\TestCase;
use Cog\Ownership\Tests\Stubs\Models\EntityWithOwner;

/**
Expand Down

0 comments on commit 0f4d61f

Please sign in to comment.