Passed
Branch master (a3e60c)
by Richan
03:25
created
Category
database/factories/UserFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
database/factories/CommentFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
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
     ];
Please login to merge, or discard this patch.
database/factories/PostFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
database/migrations/2017_06_30_000000_create_posts_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
database/migrations/2017_06_30_000000_create_users_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
database/migrations/2017_06_30_000000_create_comments_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/BlameableService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.