Permalink
Browse files

Apply fixes from StyleCI (#112)

  • Loading branch information...
1 parent c37b970 commit e3ee54c1eca9a0f646599670b321317a0eb325ee @freekmurze freekmurze committed on GitHub Jan 5, 2017
@@ -3,11 +3,11 @@
namespace Spatie\Activitylog;
use Illuminate\Auth\AuthManager;
-use Illuminate\Contracts\Config\Repository;
use Illuminate\Database\Eloquent\Model;
+use Spatie\Activitylog\Models\Activity;
use Illuminate\Support\Traits\Macroable;
+use Illuminate\Contracts\Config\Repository;
use Spatie\Activitylog\Exceptions\CouldNotLogActivity;
-use Spatie\Activitylog\Models\Activity;
class ActivityLogger
{
@@ -4,8 +4,8 @@
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\ServiceProvider;
-use Spatie\Activitylog\Exceptions\InvalidConfiguration;
use Spatie\Activitylog\Models\Activity;
+use Spatie\Activitylog\Exceptions\InvalidConfiguration;
class ActivitylogServiceProvider extends ServiceProvider
{
@@ -3,10 +3,10 @@
namespace Spatie\Activitylog\Models;
use Eloquent;
-use Illuminate\Database\Eloquent\Builder;
+use Illuminate\Support\Collection;
use Illuminate\Database\Eloquent\Model;
+use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\MorphTo;
-use Illuminate\Support\Collection;
class Activity extends Eloquent
{
@@ -2,9 +2,9 @@
namespace Spatie\Activitylog\Traits;
-use Illuminate\Database\Eloquent\Relations\MorphMany;
-use Spatie\Activitylog\ActivitylogServiceProvider;
use Spatie\Activitylog\Models\Activity;
+use Spatie\Activitylog\ActivitylogServiceProvider;
+use Illuminate\Database\Eloquent\Relations\MorphMany;
trait CausesActivity
{
@@ -2,12 +2,12 @@
namespace Spatie\Activitylog\Traits;
-use Illuminate\Database\Eloquent\Model;
-use Illuminate\Database\Eloquent\Relations\MorphMany;
use Illuminate\Support\Collection;
use Spatie\Activitylog\ActivityLogger;
-use Spatie\Activitylog\ActivitylogServiceProvider;
+use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Models\Activity;
+use Spatie\Activitylog\ActivitylogServiceProvider;
+use Illuminate\Database\Eloquent\Relations\MorphMany;
trait LogsActivity
{
@@ -3,8 +3,8 @@
namespace Spatie\Activitylog\Test;
use Spatie\Activitylog\Models\Activity;
-use Spatie\Activitylog\Test\Models\Article;
use Spatie\Activitylog\Test\Models\User;
+use Spatie\Activitylog\Test\Models\Article;
class ActivityModelTest extends TestCase
{
@@ -4,10 +4,10 @@
use Auth;
use Illuminate\Support\Collection;
-use Spatie\Activitylog\Exceptions\CouldNotLogActivity;
use Spatie\Activitylog\Models\Activity;
-use Spatie\Activitylog\Test\Models\Article;
use Spatie\Activitylog\Test\Models\User;
+use Spatie\Activitylog\Test\Models\Article;
+use Spatie\Activitylog\Exceptions\CouldNotLogActivity;
class ActivityloggerTest extends TestCase
{
@@ -2,10 +2,10 @@
namespace Spatie\Activitylog\Test;
-use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\Activitylog\Models\Activity;
use Spatie\Activitylog\Test\Models\Article;
use Spatie\Activitylog\Traits\LogsActivity;
+use Illuminate\Database\Eloquent\SoftDeletes;
class LogsActivityTest extends TestCase
{
@@ -18,7 +18,6 @@ public function setUp()
$this->article = new class() extends Article {
use LogsActivity;
-
use SoftDeletes;
};
@@ -2,9 +2,9 @@
namespace Spatie\Activitylog\Test\Models;
-use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\CausesActivity;
+use Illuminate\Contracts\Auth\Authenticatable;
class User extends Model implements Authenticatable
{
View
@@ -2,12 +2,12 @@
namespace Spatie\Activitylog\Test;
-use Illuminate\Database\Schema\Blueprint;
-use Orchestra\Testbench\TestCase as OrchestraTestCase;
-use Spatie\Activitylog\ActivitylogServiceProvider;
use Spatie\Activitylog\Models\Activity;
-use Spatie\Activitylog\Test\Models\Article;
use Spatie\Activitylog\Test\Models\User;
+use Illuminate\Database\Schema\Blueprint;
+use Spatie\Activitylog\Test\Models\Article;
+use Spatie\Activitylog\ActivitylogServiceProvider;
+use Orchestra\Testbench\TestCase as OrchestraTestCase;
abstract class TestCase extends OrchestraTestCase
{

0 comments on commit e3ee54c

Please sign in to comment.