@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | $userClass = \RichanFongdasen\EloquentBlameableTest\Models\User::class; |
| 4 | 4 | |
| 5 | -$factory->define($userClass, function (\Faker\Generator $faker) { |
|
| 5 | +$factory->define($userClass, function(\Faker\Generator $faker) { |
|
| 6 | 6 | return [ |
| 7 | 7 | 'name' => $faker->name, |
| 8 | 8 | 'email' => $faker->email, |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | $commentClass = \RichanFongdasen\EloquentBlameableTest\Models\Comment::class; |
| 4 | 4 | |
| 5 | -$factory->define($commentClass, function (\Faker\Generator $faker) { |
|
| 5 | +$factory->define($commentClass, function(\Faker\Generator $faker) { |
|
| 6 | 6 | return [ |
| 7 | 7 | 'content' => $faker->paragraph, |
| 8 | 8 | ]; |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | $postClass = \RichanFongdasen\EloquentBlameableTest\Models\Post::class; |
| 4 | 4 | |
| 5 | -$factory->define($postClass, function (\Faker\Generator $faker) { |
|
| 5 | +$factory->define($postClass, function(\Faker\Generator $faker) { |
|
| 6 | 6 | return [ |
| 7 | 7 | 'title' => $faker->sentence, |
| 8 | 8 | 'content' => $faker->paragraph, |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('posts', function (Blueprint $table) { |
|
| 16 | + Schema::create('posts', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('title'); |
| 19 | 19 | $table->text('content'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 16 | + Schema::create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('email')->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('comments', function (Blueprint $table) { |
|
| 16 | + Schema::create('comments', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->bigInteger('post_id'); |
| 19 | 19 | $table->bigInteger('user_id')->nullable(); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | private function getConfigurations(Model $model) |
| 32 | 32 | { |
| 33 | 33 | $modelConfigurations = method_exists($model, 'blameable') ? |
| 34 | - $model->blameable() : []; |
|
| 34 | + $model->blameable() : [ ]; |
|
| 35 | 35 | |
| 36 | 36 | return array_merge($this->globalConfig, $modelConfigurations); |
| 37 | 37 | } |
@@ -27,11 +27,11 @@ |
||
| 27 | 27 | { |
| 28 | 28 | $this->mergeConfigFrom(realpath(__DIR__.'/../config/blameable.php'), 'blameable'); |
| 29 | 29 | |
| 30 | - $this->app->singleton(BlameableObserver::class, function () { |
|
| 30 | + $this->app->singleton(BlameableObserver::class, function() { |
|
| 31 | 31 | return new BlameableObserver(); |
| 32 | 32 | }); |
| 33 | 33 | |
| 34 | - $this->app->singleton(BlameableService::class, function () { |
|
| 34 | + $this->app->singleton(BlameableService::class, function() { |
|
| 35 | 35 | return new BlameableService(); |
| 36 | 36 | }); |
| 37 | 37 | } |